[Bug 2039268] Re: When upgrading to Mantic, it fails to install snap firmware-updater
Samuele Pedroni
2039268 at bugs.launchpad.net
Thu Oct 26 07:11:33 UTC 2023
> It looks like this unit isn't actually generated by the snapd
generator in the snapd deb, but maybe by the copy in the snapd snap?
which could explain why /proc/self/mountinfo is different, but I don't
understand how or why this would be executed.
I'm confused by this part of the report, as I said elsewhere I don't
know of a mechanism that would involve on classic the generator in the
snap.
Indeed if I try bluntly to remove the one outside and leave only the
buggy one from the snap in reproducer I don't get the unit:
$ lxc launch ubuntu:lunar lp-2039268
Creating lp-2039268
Starting lp-2039268
$ lxc exec lp-2039268 bash
root at lp-2039268:~# rm /usr/lib/systemd/system-generators/snapd-generator
root at lp-2039268:~# find / -name "snapd-generator"
... errors
/snap/snapd/20092/lib/systemd/system-generators/snapd-generator
... errors
root at lp-2039268:~# snap version
snap 2.60.3
snapd 2.60.3
series 16
ubuntu 23.04
kernel 6.2.0-35-generic
root at lp-2039268:~# sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install systemd
...
root at lp-2039268:~# ls /usr/lib/systemd/system-generators/snapd*
ls: cannot access '/usr/lib/systemd/system-generators/snapd*': No such file or directory
root at lp-2039268:~# ls -l /run/systemd/generator/snap.mount
ls: cannot access '/run/systemd/generator/snap.mount': No such file or directory
the snap.mount was not created
Also to clarify another aspect many things in snapd support reexec from
the deb into the snap, but the generator is not one of them as can be
seen inspecting its code
--
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
Bug description:
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")
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