Error while updating

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Error while updating

Post by Josin007 »

I use latest edition of Linux Mint 19.

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Error while updating

Post by deepakdeshp »

नमसतें
Sometimes the repositories are off line. Try it at different times.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

It's been happening for a while every time I update. I changed the software source, but still no result.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

Seems similar to the problem here, except there it's error exit status 2:
viewtopic.php?p=2029925#p2029925
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

Nothing worked. I guess mine is some other kind of problem.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

Not sure if you tried this already, but someone posted this as a solution on an Ubuntu site:

Code: Select all

 /var/lib/dpkg/info/ubuntu-advantage-tools.postinst 

Code: Select all

 sudo apt install ubuntu-advantage-tools 
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

/var/lib/dpkg/info/ubuntu-advantage-tools.postinst

this gives

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

this gives

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)
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

This is the result when I tried to do the latest update for something named 'avahi'.

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
Last edited by karlchen on Thu Jul 08, 2021 5:16 pm, edited 1 time in total.
Reason: changed [c] [/c] tags, which are for 1-liners only, to [code] [/code] tags, which format 1 or more lines of terminal output
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

This is way over my head, but saw this as a possible fix:

Code: Select all

 export PYTHONPATH=${PYTHONPATH}:${HOME}:/usr/bin/python:/usr/lib/python3/dist-packages 
Found here: https://askubuntu.com/questions/1336425 ... untu-16-04
User avatar
ricardogroetaers
Level 6
Level 6
Posts: 1374
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: Error while updating

Post by ricardogroetaers »

Josin007 wrote: Wed Jul 07, 2021 10:13 pm This is the result when I tried to do the latest update for something named 'avahi'.
Thank you for the warning.
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

It's the same when I tried to update anything. I think it's not that software's problem.
mikeflan
Level 17
Level 17
Posts: 7143
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Error while updating

Post by mikeflan »

This is the result when I tried to do the latest update for something named 'avahi'.
I just did that 'avahi' update and had no problems.
Before I updated:
ud1.png
Then I updated only that 'avahi' item and it returned normally. I guess the stuff in the black box that disappeared can be obtained in Update Manager by going to View - Information, which gives this:

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
I guess you should post the output of 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.
Please put your long outputs in "Code" tags. The button that inserts these tags is marked </>
If you want you can modify prior posts by pushing the pencil button to the right of the post.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

The problem seems to be ubuntu-advantage-tools (not avahi) & I posted a possible fix in my previous post .
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

I tried that. Will know the result when next update comes.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

Do you still have ubuntu-advantage-tools or avahi updates available if you click Refresh in Update Manager? If so, try them again. If that fix worked, they should install now.
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

Nothing is available after refresh. It was the same till now.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

Not sure what to make of that since you got errors before. Maybe they installed? :?
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Error while updating

Post by sleeper12 »

If Update Manager says 'your system is up to date', I guess you are good. For now anyway.
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

These errors are shown after every update. But, the update manager says my system is up to date after refresh. That's how it is right now.
User avatar
Josin007
Level 1
Level 1
Posts: 37
Joined: Sun Feb 17, 2019 5:32 am

Re: Error while updating

Post by Josin007 »

Maybe it's kind of like 'task failed successfully!'
Locked

Return to “Software & Applications”