Hi Tariq,

On Thu, Feb 20, 2025 at 08:17:48PM +0000, Tariq Khan wrote:
> Sorry changed my mind. Here is the full output from the Console. Hope it
> helps.
> 
> tariq@debian:~$ sudo apt update
> [sudo] password for tariq:
> Get:1 http://security.debian.org/debian-security bookworm-security InRelease
> [48.0 kB]
> Hit:2 http://deb.debian.org/debian bookworm InRelease
> Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
> Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
> Hit:5 https://updates.signal.org/desktop/apt xenial InRelease
> Hit:6 https://repository.mullvad.net/deb/stable bookworm InRelease
> Hit:7 https://repo.nordvpn.com//deb/nordvpn/debian stable InRelease
> Fetched 48.0 kB in 1s (73.1 kB/s)
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> All packages are up to date.
> tariq@debian:~$ apt upgrade
> E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13:
> Permission denied)
> E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),
> are you root?
> tariq@debian:~$ sudo apt upgrade
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> Calculating upgrade... Done
> The following packages were automatically installed and are no longer
> required:
>  libdbus-glib-1-2 linux-image-6.1.0-25-amd64 linux-image-6.1.0-26-amd64
> linux-image-6.1.0-27-amd64 linux-image-6.1.0-28-amd64
>  linux-image-6.1.0-29-amd64
> 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.
> Do you want to continue? [Y/n] Y
> Setting up linux-image-6.1.0-31-amd64 (6.1.128-1) ...
> /etc/kernel/postinst.d/initramfs-tools:
> update-initramfs: Generating /boot/initrd.img-6.1.0-31-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-31-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-31-amd64 (--configure):
> installed linux-image-6.1.0-31-amd64 package post-installation script
> subprocess returned error exit status 1

Ack here is the problem, you do not have enough free space left on
/boot (it might have been choosen to small and there was a time where
installer did create it too small IIRC).

Remove one of the oldest linux-images packages which you do not
require anymore. Then perform again the update.

For instance you can purge already linux-image-6.1.0-25-amd64,
linux-image-6.1.0-26-amd64, linux-image-6.1.0-27-amd64 and
linux-image-6.1.0-28-amd64 (but keep the current kernel yet as
fallback).

Regards,
Salvatore

Reply via email to