You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently get_lsb_information() will only attempt to read $LSB_ETC_LSB_RELEASE or /etc/lsb-release; if that file doesn't exist, it won't return anything at all (see /usr/lib/python3/dist-packages/lsb_release.py). You probably want get_distro_information() instead:
host ~ # diff -u =apt-clone apt-clone2
--- /usr/bin/apt-clone 2015-11-13 21:11:38.000000000 +0100
+++ apt-clone2 2018-04-04 15:32:47.412898874 +0200
@@ -133,7 +133,7 @@
# we are not yet on the new release its fine to remove installed
# pkgs as part of the upgrade
import lsb_release
- codename = lsb_release.get_lsb_information()["CODENAME"]
+ codename = lsb_release.get_distro_information()["CODENAME"]
if (args.new_distro_codename and args.new_distro_codename == codename):
protect_installed = True
else:
The text was updated successfully, but these errors were encountered:
I get the following error message when trying to use restore-new-distro:
Apparently
get_lsb_information()
will only attempt to read$LSB_ETC_LSB_RELEASE
or/etc/lsb-release
; if that file doesn't exist, it won't return anything at all (see/usr/lib/python3/dist-packages/lsb_release.py
). You probably wantget_distro_information()
instead:The text was updated successfully, but these errors were encountered: