0

I installed and ran byobu to remove my old kernels using these commands

sudo apt install byobu
sudo purge-old-kernels

The kernels are gone, but every time I try to install or update anything, I get this message:

The following packages have unmet dependencies:

 linux-image-extra-4.4.0-101-generic : Depends: linux-image-4.4.0-101-generic but it is not going to be installed

This is repeated for about 20 old kernels. Where can I find and delete or correct whatever Ubuntu is referencing for these linux-image-extra packages?

Outputs of sudo apt-get update and sudo apt-get dist-upgrade -f:

sudo apt-get update 
Ign:1 packages.linuxmint.com sarah InRelease
Hit:2 ppa.launchpad.net/audio-recorder/ppa/ubuntu xenial InRelease    
Hit:3 archive.ubuntu.com/ubuntu xenial InRelease                      
Get:4 security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]   
Hit:5 packages.linuxmint.com sarah Release                            
Hit:6 archive.canonical.com/ubuntu xenial InRelease                   
Get:7 archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]     
Hit:8 ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease  
Hit:10 ppa.launchpad.net/openshot.developers/ppa/ubuntu xenial InRelease
Get:11 archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]  
Hit:12 ppa.launchpad.net/webupd8team/unstable/ubuntu xenial InRelease 
Hit:13 ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial InRelease
Fetched 323 kB in 1s (223 kB/s)                   
Reading package lists... Done

sudo apt-get dist-upgrade -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libllvm5.0 libllvm5.0:i386
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libllvm6.0 libllvm6.0:i386 linux-image-4.4.0-101-generic
  linux-image-4.4.0-103-generic linux-image-4.4.0-104-generic
  linux-image-4.4.0-109-generic linux-image-4.4.0-112-generic
  linux-image-4.4.0-116-generic linux-image-4.4.0-119-generic
  linux-image-4.4.0-121-generic linux-image-4.4.0-122-generic
  linux-image-4.4.0-124-generic linux-image-4.4.0-127-generic
  linux-image-4.4.0-21-generic linux-image-4.4.0-38-generic
  linux-image-4.4.0-47-generic linux-image-4.4.0-59-generic
  linux-image-4.4.0-77-generic linux-image-4.4.0-78-generic
  linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic
  linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic
  linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic
  linux-image-4.4.0-93-generic linux-image-4.4.0-96-generic
  linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic
The following packages will be upgraded:
  bsdutils evolution-data-server evolution-data-server-common
  gir1.2-ebook-1.2 gir1.2-ebookcontacts-1.2 gir1.2-edataserver-1.2
  gir1.2-gdkpixbuf-2.0 gir1.2-packagekitglib-1.0 guile-2.0-libs
  hicolor-icon-theme libblkid1 libcamel-1.2-54 libebackend-1.2-10
  libebook-1.2-16 libebook-contacts-1.2-2 libecal-1.2-19
  libedata-book-1.2-25 libedata-cal-1.2-28 libedataserver-1.2-21
  libegl1-mesa libfdisk1 libgbm1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-0:i386
  libgdk-pixbuf2.0-common libgl1-mesa-dri:i386 libgl1-mesa-dri
  libgl1-mesa-glx libgl1-mesa-glx:i386 libglapi-mesa:i386 libglapi-mesa
  libgles1-mesa libgles2-mesa libglib2.0-0 libglib2.0-0:i386 libglib2.0-bin
  libglib2.0-data libmount1 libpackagekit-glib2-16 libservlet3.1-java
  libslang2 libslang2:i386 libsmartcols1 libuuid1 libuuid1:i386
  libwayland-egl1-mesa libxatracker2 linux-firmware linux-libc-dev mount
  ndiswrapper ndiswrapper-dkms ndiswrapper-utils-1.9 shared-mime-info snapd
  util-linux uuid-runtime
57 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
29 not fully installed or removed.
Need to get 1,510 MB/1,686 MB of archives.
After this operation, 1,920 MB of additional disk space will be used.
Do you want to continue? [Y/n]

If I answer yes, it tries to install all the kernel extras, reports FATAL errors and will not upgrade anything. This happens if I try to install software, either via command line of software manager. *I had to disable links in order to post this edit.

  • Have you tried to remove the linux-image-extra-4xxx packages? ...not sure byobu has anything to do with it. – mikewhatever Jul 28 '18 at 21:47
  • Welcome to Ask Ubuntu! Could you please edit your question to include the full, verbatim output of sudo apt-get update; sudo apt-get dist-upgrade -f? Thanks. – David Foerster Jul 28 '18 at 22:11
  • Found linux headers/extras debs in apt archive. Would deleting them help? – Blue Sky Jul 29 '18 at 7:44
  • deleted all kernel extras and referrals that I could find, yet update still wants to install them. Where do i find whatever is giving this instruction? – Blue Sky Aug 1 '18 at 15:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.