wullig
April 15th, 2021, 12:07 PM
I'm trying to update some packages but I keep getting the message "unmet dependencies".
What I do
sudo apt update // All good here
sudo apt install --only-upgrade certbot
With the apt install I get the following messages (I translated the messages so they will not be correct word by word):
It's useful to run "apt-get -f install" to fix the following issues:
The following packages have unmet dependencies:
certbot : Depends: python3-certbot (= 0.31.0-2~deb10u1+ubuntu16.04.1+certbot+3) but it's not going to be installed
linux-headers-4.4.0-179-generic : Depends: linux-headers-4.4.0-179 but it's not going to be installed
linux-image-4.4.0-179-generic : Depends: linux-modules-4.4.0-179-generic but it's not going to be installed
The kernel right now is:
uname -a
Linux 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
So I try to run `apt-get -f install`
After this operation, 131MB will be occupiede on disk
Continue? Y/n
E: Sub-process /usr/bin/dpkg exited unexpectedly
So I read it might have to do with free space in `/boot`, which indeed has A LOT of old kernels, but following all the guides I can't remove.
With `sudo apt-get autoremove --purge` I get again the unmet dependencies warning as before and suggest to run `apt-get -f install`.
If I try to remove a old kernel with `dpkg` the process get killed almost immediately:
sudo dpkg --force-all -P linux-image-4.4.0-71-generic
Reading database 95%
Killed
With `sudo dpkg --configure -a` I get
So I'm quite stuck and tried almost everything out there
What I do
sudo apt update // All good here
sudo apt install --only-upgrade certbot
With the apt install I get the following messages (I translated the messages so they will not be correct word by word):
It's useful to run "apt-get -f install" to fix the following issues:
The following packages have unmet dependencies:
certbot : Depends: python3-certbot (= 0.31.0-2~deb10u1+ubuntu16.04.1+certbot+3) but it's not going to be installed
linux-headers-4.4.0-179-generic : Depends: linux-headers-4.4.0-179 but it's not going to be installed
linux-image-4.4.0-179-generic : Depends: linux-modules-4.4.0-179-generic but it's not going to be installed
The kernel right now is:
uname -a
Linux 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
So I try to run `apt-get -f install`
After this operation, 131MB will be occupiede on disk
Continue? Y/n
E: Sub-process /usr/bin/dpkg exited unexpectedly
So I read it might have to do with free space in `/boot`, which indeed has A LOT of old kernels, but following all the guides I can't remove.
With `sudo apt-get autoremove --purge` I get again the unmet dependencies warning as before and suggest to run `apt-get -f install`.
If I try to remove a old kernel with `dpkg` the process get killed almost immediately:
sudo dpkg --force-all -P linux-image-4.4.0-71-generic
Reading database 95%
Killed
With `sudo dpkg --configure -a` I get
So I'm quite stuck and tried almost everything out there