Removing snapd (2.38~14.04) ... rm '/etc/systemd/system/sockets.target.wants/snapd.socket' rm '/etc/systemd/system/multi-user.target.wants/snapd.service' rm '/etc/systemd/system/multi-user.target.wants/snapd.autoimport.service' Removing apparmor (2.10.95-0ubuntu2.6~14.04.4) ... * Clearing AppArmor profiles cache  [ OK ] All profile caches have been cleared, but no profiles have been unloaded. Unloading profiles will leave already running processes permanently unconfined, which can lead to unexpected situations. To set a process to complain mode, use the command line tool 'aa-complain'. To really tear down all profiles, run the init script with the 'teardown' option." Removing apport-gtk (2.14.1-0ubuntu3.29) ... Removing apport (2.14.1-0ubuntu3.29) ... apport stop/waiting Removing software-center (13.10-0ubuntu4.2) ... Removing language-selector-gnome (0.129.3) ... Removing apturl (0.5.2ubuntu4.1) ... Removing apturl-common (0.5.2ubuntu4.1) ... Removing gnome-bluetooth (3.8.2.1-0ubuntu4.2) ... Removing bluez-alsa:amd64 (4.101-0ubuntu13.3) ... Removing bluez (4.101-0ubuntu13.3) ... bluetooth stop/waiting Removing byobu (5.77-0ubuntu1.2) ... Removing checkbox-ng-service (0.3-2) ... Removing checkbox-ng (0.3-2) ... Removing command-not-found (0.3ubuntu12) ... Removing software-properties-gtk (0.92.37.8) ... Removing software-properties-common (0.92.37.8) ... Removing oneconf (0.3.7.14.04.1) ... Removing python3-oneconf (0.3.7.14.04.1) ... Removing firefox (66.0.3+build1-0ubuntu0.14.04.1) ... Removing foomatic-db-compressed-ppds (20140410-0ubuntu1) ... Removing unity-lens-friends (0.1.3+14.04.20140317-0ubuntu1) ... Removing friends-twitter (0.2.0+14.04.20140217.1-0ubuntu1) ... Removing libfriends0:amd64 (0.1.2+14.04.20131108.1-0ubuntu1) ... Removing friends-facebook (0.2.0+14.04.20140217.1-0ubuntu1) ... Removing gdebi (0.9.5.3ubuntu3) ... Removing gdebi-core (0.9.5.3ubuntu3) ... Removing gedit-plugins (3.10.1-1ubuntu2) ... Removing gedit (3.10.4-0ubuntu4) ... Removing gnome-menus (3.10.1-0ubuntu2) ... Removing gnome-orca (3.10.3-0ubuntu1) ... Removing gnome-sudoku (1:3.10.2-0ubuntu3.1) ... Removing idle-python3.4 (3.4.3-1ubuntu1~14.04.7) ... Removing ubuntu-standard (1.325.1) ... Removing language-selector-common (0.129.3) ... Removing libreoffice-script-provider-python (1:4.2.8-0ubuntu5.5) ... Removing python3-software-properties (0.92.37.8) ... Removing xdiagnose (3.6.3build2) ... Removing python3-apport (2.14.1-0ubuntu3.29) ... Removing onboard-data (1.0.1-0ubuntu1) ... Removing onboard (1.0.1-0ubuntu1) ... Removing openprinting-ppds (20140410-0ubuntu1) ... Removing plainbox-provider-resource-generic (0.3-1) ... Removing printer-driver-foo2zjs (20140209dfsg0-1ubuntu1) ... Removing printer-driver-foo2zjs-common (20140209dfsg0-1ubuntu1) ... Removing printer-driver-ptouch (1.3-8) ... Removing printer-driver-pxljr (1.4+repack0-3) ... Removing python3-pip (1.5.4-1ubuntu4) ... Removing python-pip (1.5.4-1ubuntu4) ... Removing python-pip-whl (1.5.4-1ubuntu4) ... Removing python-chardet-whl (2.2.1-2~ubuntu1) ... Removing sessioninstaller (0.20+bzr141-0ubuntu4) ... Removing python-commandnotfound (0.3ubuntu12) ... Removing python3-all (3.4.0-0ubuntu2) ... Removing python3-aptdaemon.pkcompat (1.1.1-1ubuntu5.2) ... Removing python3-aptdaemon.gtk3widgets (1.1.1-1ubuntu5.2) ... Removing unattended-upgrades (0.82.1ubuntu2.5) ... Removing python3-brlapi (5.0-2ubuntu2) ... Removing python3-gi-cairo (3.12.0-1ubuntu1) ... Removing python3-cairo (1.10.0+dfsg-3ubuntu2) ... Removing python3-checkbox-ng (0.3-2) ... Removing python3-requests (2.2.1-1ubuntu0.4) ... Removing usb-creator-gtk (0.2.56.3ubuntu0.1) ... Removing usb-creator-common (0.2.56.3ubuntu0.1) ... Removing python3-debian (0.1.21+nmu2ubuntu2) ... Removing python3-chardet (2.2.1-2~ubuntu1) ... Removing python3-checkbox-support (0.2-1) ... Removing python3-colorama (0.2.5-0.1ubuntu2) ... Removing python3-commandnotfound (0.3ubuntu12) ... Removing unity-lens-photos (1.0+14.04.20140318-0ubuntu1) ... Removing unity-scope-musique (0.1+13.10.20130723-0ubuntu1) ... Removing python3-dev (3.4.0-0ubuntu2) ... Removing python3-distlib (0.1.8-1ubuntu1) ... Removing unity-scope-openclipart (0.1+13.10.20130723-0ubuntu1) ... Removing python3-feedparser (5.1.3-2) ... Removing python3-gdbm:amd64 (3.4.3-1~14.04.2) ... Removing unity-scope-zotero (0.1+13.10.20130723-0ubuntu1) ... Removing unity-scope-yelp (0.1+13.10.20130723-0ubuntu1) ... Removing python3-html5lib (0.999-3~ubuntu1) ... Removing python3-piston-mini-client (0.7.5-0ubuntu2) ... Removing python3-httplib2 (0.8-2build1) ... Removing python3-louis (2.5.3-2ubuntu1.5) ... Removing unity-scope-devhelp (0.1+14.04.20140328-0ubuntu1) ... Removing python3-plainbox (0.5.3-2) ... Removing python3-lxml (3.3.3-1ubuntu0.2) ... Removing rhythmbox-plugins (3.0.2-0ubuntu2) ... Removing python3-mako (0.9.1-1) ... Removing python3-markupsafe (0.18-1build2) ... Removing python3-newt (0.52.15-2ubuntu5) ... Removing ubuntu-minimal (1.325.1) ... Removing ubuntu-advantage-tools (19.6~ubuntu14.04.4) ... Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = 'python3' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/local/bin/python3' sys.base_prefix = '/usr/local' sys.base_exec_prefix = '/usr/local' sys.platlibdir = 'lib' sys.executable = '/usr/local/bin/python3' sys.prefix = '/usr/local' sys.exec_prefix = '/usr/local' sys.path = [ '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00007feb0d63b740 (most recent call first): dpkg: error processing package ubuntu-advantage-tools (--remove): subprocess installed pre-removal script returned error exit status 1