[Bug 2039268] Re: When upgrading to Mantic, it fails to install snap firmware-updater
Brian Murray
2039268 at bugs.launchpad.net
Thu Oct 26 22:49:55 UTC 2023
Hello Giuseppe, or anyone else affected,
Accepted snapd into lunar-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/snapd/2.59.1+23.04ubuntu1.2 in a
few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
lunar to verification-done-lunar. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-lunar. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: snapd (Ubuntu Lunar)
Status: New => Fix Committed
** Tags added: verification-needed-lunar
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2039268
Title:
When upgrading to Mantic, it fails to install snap firmware-updater
Status in snapd package in Ubuntu:
Fix Committed
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Status in snapd source package in Lunar:
Fix Committed
Status in snapd source package in Mantic:
Fix Committed
Bug description:
[Impact]
While upgrading to Mantic the following message is reported:
installing snap firmware-updater
error: cannot perform the following tasks:
- Automatically connect eligible plugs and slots of snap "firmware-updater" (internal error: auto-connect of &{"firmware-updater:desktop-legacy" "snapd:desktop-legacy"} failed: snap "snapd" has no slot named "desktop-legacy")
[Test case]
Confirming the failure:
$ lxc launch ubuntu:lunar lp-2039268
Creating lp-2039268
Starting lp-2039268
$ lxc exec lp-2039268 bash
# sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd
# ls -l /run/systemd/generator/snap.mount
-rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount
# ^D
$ lxc delete --force lp-2039268
Confirming the fix:
$ lxc launch ubuntu:lunar lp-2039268
Creating lp-2039268
Starting lp-2039268
$ lxc exec lp-2039268 bash
# sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install -y systemd
# ls -l /run/systemd/generator/snap.mount
ls: cannot access '/run/systemd/generator/snap.mount': No such file or directory
# ^D
$ lxc delete --force lp-2039268
[Where problems could occur]
This fix changes how snapd detects at boot time whether a bind remount of /snap with different mount options is necessary. In unusual circumstances where the rootfs mount options are not what we expect by default in Ubuntu, AND the systemd generator is blocked by a custom security policy from reading /proc/1/mounts, it would get the wrong answer, fail to generate the mount unit under necessary circumstances, and regress the behavior of snapd.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2039268/+subscriptions
More information about the foundations-bugs
mailing list