Linux error messages and solutions

|

This post is about Linux error messages and solutions I used.

Sub-process /usr/bin/dpkg returned an error code (1)

This error message indicates a problem with the package installer. This can happen in Ubuntu after a failed software installation, or if the installer becomes corrupted.

You can solve the problem by removing unused software packages.

sudo apt autoremove

No space left on device

If you have a separate /boot partition which is full, you need to clean up manually.

Check which kernel you are using

uname -r

List kernel images

dpkg -l linux-headers-\* linux-image-\* | grep ^ii

Delete kernel images which is not used currently

sudo apt-get remove linux-image-{version not currently used}

Reference: [https://askubuntu.com/a/171225]

Comments