My YunoHost server
Hardware: Old laptop
YunoHost version: 11.2.5
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
I get this error whenever I try to update an app:
Error:
"400"
Action:"PUT" /yunohost/api/apps/bookstack/upgrade
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 runningsudo apt install --fix-broken
and/orsudo dpkg --configure -a
and/orsudo dpkg --audit
.
I tried connecting to my server through SSH to run these commands and I get more errors:
admin_name@server_name:~$ sudo apt install --fix-broken
[sudo] password for admin_name:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
fontconfig graphicsmagick gsfonts libgraphicsmagick-q16-3
libjs-highlight.js libnode72 libwebpmux3 libwmf0.2-7
linux-image-5.10.0-16-amd64 linux-image-5.10.0-23-amd64 lua5.1
mongodb-mongosh mongodb-org mongodb-org-database-tools-extra
mongodb-org-mongos mongodb-org-tools nodejs nodejs-doc php8.1 php8.1-curl
php8.1-fpm php8.1-gd php8.1-ldap php8.1-mysql php8.1-tidy php8.1-zip yarn
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-5.10.0-26-amd64 (5.10.197-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-26-amd64
gzip: stdout: No space left on device
E: mkinitramfs failure gzip 1
update-initramfs: failed for /boot/initrd.img-5.10.0-26-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.10.0-26-amd64 (--configure):
installed linux-image-5.10.0-26-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-5.10.0-26-amd64 (= 5.10.197-1); however:
Package linux-image-5.10.0-26-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-5.10.0-26-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
admin_name@server_name:~$ sudo dpkg --configure -a
[sudo] password for admin_name:
Setting up linux-image-5.10.0-26-amd64 (5.10.197-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-26-amd64
gzip: stdout: No space left on device
E: mkinitramfs failure gzip 1
update-initramfs: failed for /boot/initrd.img-5.10.0-26-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.10.0-26-amd64 (--configure):
installed linux-image-5.10.0-26-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-5.10.0-26-amd64 (= 5.10.197-1); however:
Package linux-image-5.10.0-26-amd64 is not configured yet.
dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-5.10.0-26-amd64
linux-image-amd64
and
admin_name@server_name:~$ sudo dpkg --audit
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 <package> or the configure menu option in dselect:
linux-image-5.10.0-26-amd64 Linux 5.10 for 64-bit PCs (signed)
So it seems something went wrong when I updated YNH to 11.2.5.
And I guess don’t have enough space left in my /boot partition by what the errors indicate.
here is: df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 785M 9.6M 775M 2% /run
/dev/sda6 686G 22G 629G 4% /
tmpfs 3.9G 124K 3.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda1 230M 195M 19M 92% /boot
tmpfs 785M 0 785M 0% /run/user/63419
how do I increase the size of /dev/sda1
?
I see that there’s sudo apt autoremove
to clear my unused kernels to maybe free up space from /boot but I am not sure if it’s safe to use.
Here is yunopaste:
https://paste.yunohost.org/raw/gowuyifaxa
Hope someone can guide me through this, ty!