Can't update `fwupd`

PS /home/rokejulianlockhart> sudo snap refresh fwupd                                                                                                                                                        
[sudo] password for root: 
error: cannot perform the following tasks:
- Mount snap "fwupd" (5059) (installation not allowed by "shutdown" plug rule of interface "shutdown" for "fwupd" snap)
NativeCommandExitException: Program "sudo" ended with non-zero exit code: 1.
PS /home/rokejulianlockhart>
PS /home/rokejulianlockhart> snap info fwupd        
name:      fwupd
summary:   Firmware updates for Linux
publisher: Richard Hughes
store-url: https://snapcraft.io/fwupd
contact:   https://github.com/fwupd/fwupd
license:   unset
description: |
  The full fwupd firmware updating stack for Linux.  Can be used to perform updates on all supported
  devices via https://fwupd.org
commands:
  - fwupd.dbxtool
  - fwupd.fwupdmgr
  - fwupd.fwupdtool
services:
  fwupd: dbus, enabled, inactive
snap-id:      HpOj37PuyuaMUZY0NQhtwnp7oS5P8u5R
tracking:     latest/edge
refresh-date: yesterday at 14:15 BST
channels:
  latest/stable:    1.9.3               2023-07-12 (5039) 24MB -
  latest/candidate: 1.9.3               2023-07-11 (5039) 24MB -
  latest/beta:      ↑                                          
  latest/edge:      1.9.3-36-g996507d63 2023-07-18 (5059) 24MB -
installed:          1.9.3-35-g64c41336c            (5058) 24MB -
PS /home/rokejulianlockhart>

Hi. Did you find out what caused this? I have the same error message on my snap

(installation not allowed by "shutdown" plug rule of interface "shutdown")
1 Like

@jeremy, not to my knowledge, because I’ve abandoned the snap (presumably for that reason):

RokeJulianLockhart@sayw4i:~$ sudo dnf install fwupd
[sudo] password for RokeJulianLockhart: 
Last metadata expiration check: 3:05:02 ago on Wed 17 Apr 2024 19:58:31 BST.
Package fwupd-1.9.16-1.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
RokeJulianLockhart@sayw4i:~$

However, a cursory search reveals https://github.com/fwupd/fwupd/issues/6020#issue-1816455720, which appears relevant, and is from exactly the same time period that I reported this at. Perhaps ask there.

At the very least, I’m able to install it now:

RokeJulianLockhart@sayw4i:~$ snap install fwupd --edge
fwupd (edge) 1.9.10-731-g8e1d4d749 from Richard Hughes installed
RokeJulianLockhart@sayw4i:~$

Thanks. Looks like they resolved it by getting permission granted for the shutdown plug. I’ll doublecheck that it’s granted for our snap.

1 Like