Error updating yunohost and appications

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.14
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I have run an update via the webadmin for the latest php8.1-magick and received the following error.
You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state… You can try to solve this issue by connecting through SSH and running sudo apt install --fix-broken and/or sudo dpkg --configure -a and/or sudo dpkg --audit.
I have run the commands as stated above and they have not resolved the issue.

Using the last command, I received the following error:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
linux-image-amd64 Linux for 64-bit PCs (meta-package)

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure or the configure menu option in dselect:
linux-image-6.1.0-33-amd64 Linux 6.1 for 64-bit PCs (signed)

I ran the command from the SSH and received the following:

rayray2012@deadspacerecords:~ $ sudo dpkg --configure linux-image-amd64
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-33-amd64 (= 6.1.133-1); however:
Package linux-image-6.1.0-33-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-amd64

I’m not sure how to proceed at this point.

Share relevant logs or error messages

Upgrade the system
YunoHost encountered an error

Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:
Error: “400”
Action: “PUT” /yunohost/api/upgrade/system

Error message:
You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state… You can try to solve this issue by connecting through SSH and running sudo apt install --fix-broken and/or sudo dpkg --configure -a and/or sudo dpkg --audit.

While processing the action the server said:

Uh… did you check if there is enough dsik space left df -h ?

Here’s the output:

rayray2012@deadspacerecords:~ $ df -h
Filesystem   Size  Used    Avail Use% Mounted on
udev           3.9G        0     3.9G   0% /dev
tmpfs           785M  872K  785M   1% /run
/dev/sda6    116G   28G   83G  25% /
tmpfs           3.9G    1.1M  3.9G   1% /dev/shm
tmpfs           5.0M     0       5.0M   0% /run/lock
/dev/sda1    230M  193M   21M  91% /boot
tmpfs           785M     0      785M   0% /run/user/26614

Apologies for the formatting being off.

Did you try sudo apt-get install -f? And then again sudo apt install --fix-broken and/or sudo dpkg --configure -a

Still getting errors for each command
Linux 6.1.0-32-amd64 #1 SMP
rayray2012@deadspacerecords:~ $ sudo apt-get install -f
[sudo] password for rayray2012:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
debsuryorg-archive-keyring libdaxctl1 libndctl6 libpmem1
linux-image-5.10.0-32-amd64 linux-image-6.1.0-30-amd64
linux-image-6.1.0-31-amd64
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.1.0-33-amd64 (6.1.133-1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-33-amd64
zstd: error 70 : Write error : cannot write block : No space left on device
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-33-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-33-amd64 (–configure):
installed linux-image-6.1.0-33-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-33-amd64 (= 6.1.133-1); however:
Package linux-image-6.1.0-33-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-33-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
rayray2012@deadspacerecords:~ $ sudo apt install --fix-broken
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
debsuryorg-archive-keyring libdaxctl1 libndctl6 libpmem1
linux-image-5.10.0-32-amd64 linux-image-6.1.0-30-amd64
linux-image-6.1.0-31-amd64
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.1.0-33-amd64 (6.1.133-1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-33-amd64
zstd: error 70 : Write error : cannot write block : No space left on device s: [ 20%] [#########…]
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-33-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-33-amd64 (–configure):
installed linux-image-6.1.0-33-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-33-amd64 (= 6.1.133-1); however:
Package linux-image-6.1.0-33-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-33-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
rayray2012@deadspacerecords:~ $ sudo dpkg --configure -a
Setting up linux-image-6.1.0-33-amd64 (6.1.133-1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-33-amd64
zstd: error 70 : Write error : cannot write block : No space left on device
E: mkinitramfs failure zstd -q -9 -T0 70
update-initramfs: failed for /boot/initrd.img-6.1.0-33-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-33-amd64 (–configure):
installed linux-image-6.1.0-33-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-33-amd64 (= 6.1.133-1); however:
Package linux-image-6.1.0-33-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-33-amd64
linux-image-amd64

Did you try sudo apt autoremove ?

1 Like

That fixed it. Thank you so much for your help!