Articles in this section

Cannot upgrade Plesk or install a package: dpkg: error processing package linux-image-generic - error 25 : Write error : No space left on device

Plesk for Linux kb: technical update

Symptoms

  • Unable to upgrade Plesk or install a package.

  • Running the apt-get install -f command results in the following error:

    dpkg: error processing package linux-image-5.15.0-75-generic (--configure):
    update-initramfs: Generating /boot/initrd.img-5.15.0-76-generic
    I: The initramfs will attempt to resume from /dev/dm-0
    I: (/dev/mapper/vg00-lv00)
    I: Set the RESUME variable to override this.
    zstd: error 25 : Write error : No space left on device (cannot write compressed block)
    E: mkinitramfs failure zstd -q -1 -T0 25
    update-initramfs: failed for /boot/initrd.img-5.15.0-76-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.15.0-76-generic (--configure):
    installed linux-image-5.15.0-76-generic package post-installation script subprocess returned error exit status 1
    Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
    Errors were encountered while processing:
    linux-image-5.15.0-75-generic
    linux-image-5.15.0-76-generic
    needrestart is being skipped since dpkg has failed
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Launching component and product checkers...
    Downloading file report-update: 100% was finished.
    Downloading file pool/PSA_18.0.53_12045/examiners/py_launcher.sh: 100% was finished.

  • The boot partition is at 100% of use with zero available size:

    # df -h /boot
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 1G 1G 0G 100% /boot

Cause

The /boot partition has no space left to proceed with the needed installation or upgrade.

Resolution

Resize the /boot mounted partition to add some free space.

Warning: Editing Boot Partitions can be dangerous and cause damage to the Server. Plesk does not manage partitioning.
This should be done by a System Administrator or by the Server Hosting Provider.
Before proceeding further create a Full Server Snapshot.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.