[Bug 1776622] Re: snapd updates on focal never finish installing. Can't install any other updates.
Balázs Börcsök
1776622 at bugs.launchpad.net
Sun Oct 27 11:26:28 UTC 2024
This hit me recently.
I tried doing https://askubuntu.com/a/1039685/985600 but when reinstalling snap it always fails at the same place...
Also, when now I try to reinstall snap it notifies me that the current kernel is not the expected, which is really strange because I have the newest kernel version for one and it expects the generic kernel, but I am running an FIPS system...
I uploaded the update output as attachment, but the relevant part is:
```
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 142.
```
When logging in it also gave me the:
`cannot check or enable FIPS mode: readlink /snap/snapd/current: no such file or directory`
Line 142 in the failing script is:
`system('systemctl', '--quiet', @instance_args, $action, @start_units)
== 0 or die("Could not execute systemctl: $!");`
So I assume the apparmor profile installation fails for some reason.
As of right now I am not in need of snaps, so I will keep the system up
for some time, but soon I will migrate to another OS, because bugs like
this can not be tolerated if my system is supposed to be relaiable... So
if you want feedback from my system to fix this bug contact me soon here
or at swivel-cola-poach at duck.com
** Attachment added: "Error log from the update"
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1776622/+attachment/5832019/+files/update-error.log
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1776622
Title:
snapd updates on focal never finish installing. Can't install any
other updates.
Status in snapd:
Fix Released
Status in snapd package in Ubuntu:
Fix Released
Status in systemd package in Ubuntu:
Invalid
Bug description:
snapd (2.33+18.10ubuntu3) cosmic never finishes installing. Can't
install any other updates.
The first time I gave up waiting and killed it. Then...
$ sudo apt full-upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
$ sudo dpkg --configure -a
Setting up snapd (2.33+18.10ubuntu3) ...
snapd.snap-repair.service is a disabled or a static unit, not starting it.
<< never ends >>
All the while the snap and snapd process use about 0.3% CPU (which is
more than usual).
WORKAROUND:
sudo killall apt dpkg
sudo dpkg -r snapd gnome-software-plugin-snap
sudo apt update
sudo apt full-upgrade
To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1776622/+subscriptions
More information about the foundations-bugs
mailing list