>> This was a fresh Ubuntu image from our cloud provider (IONOS), and we didn't 
>> have the same issues on other servers from the same provider that we 
>> installed a few weeks earlier.
> 
> Is the image they provid the same one provided by Ubuntu Public Cloud team?

Sorry, no idea. We configured a dedicated server and chose "Ubuntu
24.04" as the image, but I couldn't find any further documentation about
it. We just get a server with a running Ubuntu installation and an
initial random root password.

> Can you reinstall the snapd deb manually in that image? The
capabilities are set during postinst.

Hmm, interesting:

root# getcap /usr/lib/snapd/snap-confine
/usr/lib/snapd/snap-confine 
cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_setgid,cap_setuid,cap_sys_chroot,cap_sys_ptrace,cap_sys_admin=p

root# setcap -r /usr/lib/snapd/snap-confine
root#

root# getcap /usr/lib/snapd/snap-confine
root#

root# apt install --reinstall snapd
...

root# getcap /usr/lib/snapd/snap-confine
/usr/lib/snapd/snap-confine 
cap_chown,cap_dac_override,cap_dac_read_search,cap_fowner,cap_setgid,cap_setuid,cap_sys_chroot,cap_sys_ptrace,cap_sys_admin=p

So postinst seems to set the capabilities correctly. Does that mean the
provider image is broken?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2127224

Title:
  all snaps fail to run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2127224/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to