Update manager is showing some errors while I try to update. It says not all changes applied.
Code: Select all
E: ubuntu-advantage-tools: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Code: Select all
E: ubuntu-advantage-tools: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Code: Select all
/var/lib/dpkg/info/ubuntu-advantage-tools.postinst
Code: Select all
sudo apt install ubuntu-advantage-tools
/var/lib/dpkg/info/ubuntu-advantage-tools.postinst
Code: Select all
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
Use of uninitialized value $action in string eq at /usr/share/debconf/frontend line 27.
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/uaclient/__pycache__: PermissionError(13, 'Permission denied')
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/uaclient/clouds/__pycache__: PermissionError(13, 'Permission denied')
E: py3compile:183: cannot create directory /usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__: PermissionError(13, 'Permission denied')
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/clouds/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/clouds/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/clouds/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/clouds/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
[Errno 13] Permission denied: '/usr/lib/python3/dist-packages/uaclient/__pycache__'
debconf: DbDriver "templatedb": could not write /var/cache/debconf/templates.dat-new: Permission denied
sudo apt install ubuntu-advantage-tools
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-advantage-tools is already the newest version (27.1~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up ubuntu-advantage-tools (27.1~18.04.1) ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code: Select all
(Reading database ... 339288 files and directories currently installed.)
Preparing to unpack .../libavahi-common-data_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Setting up libavahi-common-data:amd64 (0.7-3.1ubuntu1.3) ...
(Reading database ... 339288 files and directories currently installed.)
Preparing to unpack .../libavahi-common3_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Setting up libavahi-common3:amd64 (0.7-3.1ubuntu1.3) ...
(Reading database ... 339288 files and directories currently installed.)
Preparing to unpack .../libavahi-client3_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Setting up libavahi-client3:amd64 (0.7-3.1ubuntu1.3) ...
(Reading database ... 339288 files and directories currently installed.)
Preparing to unpack .../avahi-autoipd_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking avahi-autoipd (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Preparing to unpack .../libavahi-core7_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking libavahi-core7:amd64 (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Preparing to unpack .../avahi-daemon_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking avahi-daemon (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Preparing to unpack .../avahi-utils_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking avahi-utils (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Preparing to unpack .../libavahi-glib1_0.7-3.1ubuntu1.3_amd64.deb ...
Unpacking libavahi-glib1:amd64 (0.7-3.1ubuntu1.3) over (0.7-3.1ubuntu1.2) ...
Setting up ubuntu-advantage-tools (27.1~18.04.1) ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Setting up avahi-autoipd (0.7-3.1ubuntu1.3) ...
Setting up libavahi-glib1:amd64 (0.7-3.1ubuntu1.3) ...
Setting up libavahi-core7:amd64 (0.7-3.1ubuntu1.3) ...
Setting up avahi-daemon (0.7-3.1ubuntu1.3) ...
Setting up avahi-utils (0.7-3.1ubuntu1.3) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for systemd (237-3ubuntu10.48) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
ubuntu-advantage-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up ubuntu-advantage-tools (27.1~18.04.1) ...
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'uaclient'
dpkg: error processing package ubuntu-advantage-tools (--configure):
installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
ubuntu-advantage-tools
Code: Select all
export PYTHONPATH=${PYTHONPATH}:${HOME}:/usr/bin/python:/usr/lib/python3/dist-packages
I just did that 'avahi' update and had no problems.This is the result when I tried to do the latest update for something named 'avahi'.
Code: Select all
07.08@08:23 ++ Install requested by user
07.08@08:23 ++ Will install libavahi-glib1
07.08@08:23 ++ Will install libavahi-common-data
07.08@08:23 ++ Will install libavahi-common3
07.08@08:23 ++ Will install libavahi-ui-gtk3-0
07.08@08:23 ++ Will install avahi-daemon
07.08@08:23 ++ Will install libavahi-core7
07.08@08:23 ++ Will install avahi-autoipd
07.08@08:23 ++ Will install avahi-utils
07.08@08:23 ++ Will install libavahi-client3
07.08@08:23 ++ Ready to launch synaptic
(synaptic:12573): Gtk-CRITICAL **: 08:23:50.601: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
07.08@08:24 ++ Return code:0
07.08@08:24 ++ Install finished
07.08@08:24 ++ Starting refresh (local only)
07.08@08:24 ++ Found 5 software updates
07.08@08:24 ++ Refresh finished
apt update
in a terminal. Mine is this:
Code: Select all
apt update
[sudo] password for mike:
Ign:1 http://dl.google.com/linux/earth/deb stable InRelease
Hit:2 http://dl.google.com/linux/earth/deb stable Release
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease
Hit:7 http://archive.linux.duke.edu/ubuntu bionic InRelease
Ign:8 http://packages.linuxmint.com tricia InRelease
Hit:9 http://archive.linux.duke.edu/ubuntu bionic-updates InRelease
Hit:10 http://ppa.launchpad.net/thomas.tsai/ubuntu-tuxboot/ubuntu bionic InRelease
Hit:11 http://packages.linuxmint.com tricia Release
Hit:12 http://archive.linux.duke.edu/ubuntu bionic-backports InRelease
Hit:13 https://qgis.org/debian bionic InRelease
Fetched 88.7 kB in 2s (50.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
21 packages can be upgraded. Run 'apt list --upgradable' to see them.