LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2017, 06:32 PM   #16
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875

$ sudo dpkg --purge --force-all linux-image-4.4.0-79-generic

Should work even when apt is choking on it's own girth. 400M+ usage in /boot, I salute you. Scary and yet impressive. Once you have at least a little bit of elbow room the apt-get -f install thing should be able to work.

$ sudo apt-get -f install

$ dpkg -l | grep -i linux | grep -i image

With room and apt-get pacified the usual should work.

$ sudo apt-get remove linux-image-4.4.0-81-generic
 
Old 09-13-2017, 12:50 AM   #17
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
To check whick kernel version you last booted (are running): uname -r
Don't delete that one!!! (I'm not sure how you 'collected' all those versions)
Probably most ('weasel words'!!!) other version stuff is ok to get rid of.
And, yes, once you get some free space, hopefully those apt commands will clean it all up.

Does your grub give you a choice of kernel versions (maybe as Advanced boot Options)?
You can peek thru /boot/grub/grub.cfg to see the choices.
(There's a semi-advanced grub update command, which creates that file, based on what it finds on your system, but I think apt may automatically run that, and it may depend on distro, so I'll just mention it, as an fyi in case future needs arise, or you want to do web-research.)

I forgot to give you a hearty "Welcome to LQ!!!" Glad to see you using BB code tags.
Feel free to patiently ask all the questions you need; all the great LQ'ers will get you thru
 
Old 09-13-2017, 03:38 AM   #18
KelsoJIm
LQ Newbie
 
Registered: Sep 2017
Location: Scottish Borders
Distribution: Elementary
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi All,
I have attempted to remove the versions not used to boot my elementary OS as suggested.
and then I ran
Code:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmircommon5 libvala-0.34-0 linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic
  linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic linux-image-4.4.0-72-generic linux-image-4.4.0-75-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-extra-4.4.0-79-generic
  linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-91-generic linux-signed-image-4.4.0-79-generic
  linux-signed-image-4.4.0-81-generic linux-signed-image-4.4.0-83-generic linux-signed-image-4.4.0-87-generic linux-signed-image-4.4.0-91-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-extra-4.4.0-72-generic linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-77-generic linux-image-extra-4.4.0-78-generic
0 upgraded, 0 newly installed, 4 to remove and 213 not upgraded.
30 not fully installed or removed.
After this operation, 609 MB disk space will be freed.
Do you want to continue? [Y/n] Y
I can see that 609MB disk space will be freed but on running the command I ran out of space and it finished with an error code. Also I can still see many versions listed after I had apparently removed them.
Code:
dpkg: error processing package linux-signed-image-4.4.0-87-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-91-generic:
 linux-signed-image-4.4.0-91-generic depends on linux-image-4.4.0-91-generic (= 4.4.0-91.114); however:
  Package linux-image-4.4.0-91-generic is not configured yet.

dpkg: error processing package linux-signed-image-4.4.0-91-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-92-generic:
 linux-signed-image-4.4.0-92-generic depends on linux-image-4.4.0-92-generic (= 4.4.0-92.115); however:
  Package linux-image-4.4.0-92-generic is not configured yet.

dpkg: error processing package linux-signed-image-4.4.0-92-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-93-generic

gzip: stdout: No space left on device
E: mkinitramfs failure find 141 cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-93-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-4.4.0-47-generic
 linux-image-4.4.0-53-generic
 linux-image-4.4.0-57-generic
 linux-image-4.4.0-59-generic
 linux-image-4.4.0-62-generic
 linux-image-4.4.0-63-generic
 linux-image-4.4.0-64-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-extra-4.4.0-79-generic
 linux-image-extra-4.4.0-81-generic
 linux-image-extra-4.4.0-83-generic
 linux-image-extra-4.4.0-87-generic
 linux-image-extra-4.4.0-91-generic
 linux-image-extra-4.4.0-92-generic
 linux-signed-image-4.4.0-79-generic
 linux-signed-image-4.4.0-81-generic
 linux-signed-image-4.4.0-83-generic
 linux-signed-image-4.4.0-87-generic
 linux-signed-image-4.4.0-91-generic
 linux-signed-image-4.4.0-92-generic
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 09-13-2017, 04:18 AM   #19
KelsoJIm
LQ Newbie
 
Registered: Sep 2017
Location: Scottish Borders
Distribution: Elementary
Posts: 10

Original Poster
Rep: Reputation: Disabled
It looks like I still have all these kernels. With the current running one 4.4.0.66
Code:
jim@silver:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)
ii  linux-image-4.4.0-47-generic                                     4.4.0-47.68                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-53-generic                                     4.4.0-53.74                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic                                     4.4.0-57.78                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-59-generic                                     4.4.0-59.80                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-62-generic                                     4.4.0-62.83                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF  linux-image-4.4.0-63-generic                                     4.4.0-63.84                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-64-generic                                     4.4.0-64.85                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-72-generic                                     4.4.0-72.93                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-75-generic                                     4.4.0-75.96                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-77-generic                                     4.4.0-77.98                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-78-generic                                     4.4.0-78.99                                               amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-79-generic                                     4.4.0-79.100                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-81-generic                                     4.4.0-81.104                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-83-generic                                     4.4.0-83.106                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-87-generic                                     4.4.0-87.110                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-91-generic                                     4.4.0-91.114                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-93-generic                                     4.4.0-93.116                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
 
Old 09-13-2017, 04:58 AM   #20
KelsoJIm
LQ Newbie
 
Registered: Sep 2017
Location: Scottish Borders
Distribution: Elementary
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hi All,

For the sake of completeness I removed all kernel versions other than the one im running and now all updated ok and I can install software again.
This command was very useful to show up the versions to remove:

Code:
jim@silver:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)
jim@silver:~$
Its now not showing any versions as I used the other suggested command to remove them.
Code:
sudo dpkg --purge --force-all linux-image-4.4.0-xx-generic
Hope this is of some use to others with this error.

Thanks again.
Jim

Last edited by KelsoJIm; 09-13-2017 at 05:00 AM.
 
1 members found this post helpful.
Old 09-13-2017, 11:06 AM   #21
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ thanks for providing the solution.
if you would please mark your thread solved now (top menu, thread tools).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dependancies DanB_1983 Linux - Software 6 02-20-2007 08:47 PM
Dependancies DIGITAL39 General 5 10-02-2006 06:10 AM
Unmet Dependancies/Broken Packages - Can't apt-get Build-Install??? Xenoman1 Ubuntu 3 08-07-2006 03:38 AM
unmet dependancies upgrading to SID MaTrIx709 Debian 6 08-03-2005 01:17 AM
Dependancies dibblethewrecke Linux - Newbie 3 11-24-2003 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration