LinuxQuestions.org
Review your favorite Linux distribution.
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 01-10-2014, 05:55 PM   #1
maxisbored
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
Question Ubuntu - Can't clear /boot because of dependencies?


Hi guys, forgive me for being a noob, but i've been trying to clear space from /boot (as i'm unable to update) but i'm getting a message that to delete any of the packages, it requires a package that i don't have installed. Obviously, I can't use apt-get to install packages because /boot is full... so i'm stuck

Anyone give me some advice?


Quote:
sudo apt-get remove linux-image-extra-3.8.0-30-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-3.8.0-34-generic : Depends: linux-image-3.8.0-34-generic but it is not going to be installed
linux-image-extra-3.8.0-35-generic : Depends: linux-image-3.8.0-35-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-3.8.0-35-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Of course, I've tried to apt-get -f install:

Quote:
marketa@marketa-Lenovo-G780:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
fcitx-config-common
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
linux-image-3.8.0-34-generic linux-image-3.8.0-35-generic
Suggested packages:
fdutils linux-doc-3.8.0 linux-source-3.8.0 linux-tools
The following NEW packages will be installed:
linux-image-3.8.0-34-generic linux-image-3.8.0-35-generic
0 upgraded, 2 newly installed, 0 to remove and 69 not upgraded.
9 not fully installed or removed.
Need to get 0 B/25,6 MB of archives.
After this operation, 70,5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 478427 files and directories currently installed.)
Unpacking linux-image-3.8.0-35-generic (from .../linux-image-3.8.0-35-generic_3.8.0-35.50_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.8.0-35-generic_3.8.0-35.50_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.8.0-35-generic' to '/boot/System.map-3.8.0-35-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.8.0-33-generic...
P: Writing config for /boot/vmlinuz-3.8.0-32-generic...
P: Writing config for /boot/vmlinuz-3.8.0-31-generic...
P: Writing config for /boot/vmlinuz-3.8.0-30-generic...
P: Writing config for /boot/vmlinuz-3.8.0-27-generic...
P: Writing config for /boot/vmlinuz-3.8.0-26-generic...
P: Writing config for /boot/vmlinuz-3.8.0-25-generic...
P: Writing config for /boot/vmlinuz-3.8.0-23-generic...
P: Writing config for /boot/vmlinuz-3.8.0-22-generic...
P: Writing config for /boot/vmlinuz-3.8.0-19-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-35-generic /boot/vmlinuz-3.8.0-35-generic
Unpacking linux-image-3.8.0-34-generic (from .../linux-image-3.8.0-34-generic_3.8.0-34.49_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.8.0-34-generic_3.8.0-34.49_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-3.8.0-34-generic' to '/boot/vmlinuz-3.8.0-34-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.8.0-34-generic /boot/vmlinuz-3.8.0-34-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.8.0-34-generic /boot/vmlinuz-3.8.0-34-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.8.0-33-generic...
P: Writing config for /boot/vmlinuz-3.8.0-32-generic...
P: Writing config for /boot/vmlinuz-3.8.0-31-generic...
P: Writing config for /boot/vmlinuz-3.8.0-30-generic...
P: Writing config for /boot/vmlinuz-3.8.0-27-generic...
P: Writing config for /boot/vmlinuz-3.8.0-26-generic...
P: Writing config for /boot/vmlinuz-3.8.0-25-generic...
P: Writing config for /boot/vmlinuz-3.8.0-23-generic...
P: Writing config for /boot/vmlinuz-3.8.0-22-generic...
P: Writing config for /boot/vmlinuz-3.8.0-19-generic...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.8.0-34-generic /boot/vmlinuz-3.8.0-34-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.8.0-35-generic_3.8.0-35.50_amd64.deb
/var/cache/apt/archives/linux-image-3.8.0-34-generic_3.8.0-34.49_amd64.deb

I'm not sure why it's asking for dependencies for .34, when uname-r shows 3.8.0.31...


Thanks a bunch in advance!
 
Old 01-11-2014, 03:03 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Could you give us a directory listing of the /boot directory. It seems that you got a lot of unneeded kernels in your /boot directory.

Also tell us please which distro and version you are using.

Cheers
 
Old 01-11-2014, 05:02 AM   #3
maxisbored
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks Gerrard!
I'm on Ubuntu 13.04

Quote:
marketa@marketa-Lenovo-G780:/boot$ dir
abi-3.8.0-19-generic initrd.img-3.8.0-27-generic
abi-3.8.0-22-generic initrd.img-3.8.0-30-generic
abi-3.8.0-23-generic initrd.img-3.8.0-31-generic
abi-3.8.0-25-generic lost+found
abi-3.8.0-26-generic memtest86+.bin
abi-3.8.0-27-generic memtest86+_multiboot.bin
abi-3.8.0-30-generic System.map-3.8.0-19-generic
abi-3.8.0-31-generic System.map-3.8.0-22-generic
abi-3.8.0-32-generic System.map-3.8.0-23-generic
abi-3.8.0-33-generic System.map-3.8.0-25-generic
config-3.8.0-19-generic System.map-3.8.0-26-generic
config-3.8.0-22-generic System.map-3.8.0-27-generic
config-3.8.0-23-generic System.map-3.8.0-30-generic
config-3.8.0-25-generic System.map-3.8.0-31-generic
config-3.8.0-26-generic System.map-3.8.0-32-generic
config-3.8.0-27-generic System.map-3.8.0-33-generic
config-3.8.0-30-generic vmlinuz-3.8.0-19-generic
config-3.8.0-31-generic vmlinuz-3.8.0-22-generic
config-3.8.0-32-generic vmlinuz-3.8.0-23-generic
config-3.8.0-33-generic vmlinuz-3.8.0-25-generic
extlinux vmlinuz-3.8.0-26-generic
grub vmlinuz-3.8.0-27-generic
initrd.img-3.8.0-19-generic vmlinuz-3.8.0-30-generic
initrd.img-3.8.0-22-generic vmlinuz-3.8.0-31-generic
initrd.img-3.8.0-23-generic vmlinuz-3.8.0-32-generic
initrd.img-3.8.0-25-generic vmlinuz-3.8.0-33-generic
initrd.img-3.8.0-26-generic
 
Old 01-11-2014, 11:54 PM   #4
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Looks like you still got about 10 different kernel versions installed.

First try to de-install the older kernels versions with
Code:
apt-get remove linux-image-3.8.0-xx-generic
replace xx with the revision code, like 19, 22, 23 and so on.
Starting with the oldest version and working your way up until you only have the latest 2 or 3 kernels left.

You might still get some error messages because apt-get will try to rebuild the initrd.img files every time and there might still not be enough free space at the beginning.
It should go better after you removed a few of the older kernels.

For people reading this thread. Normally you only need to keep the last 2 kernels. The one you just installed. And the previous one as a fall-back in case the new one gives you problems.
 
  


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
LXer: Ubuntu Phone 13.10: The Runway Is Clear For Mir LXer Syndicated Linux News 0 10-08-2013 10:50 AM
Ubuntu 12.04 fonts not clear due to back ground colour sanjayagayan Linux - Newbie 1 04-28-2012 04:01 AM
clear is hashed (/user/bin/clear) What does it mean? mohammed.hossain Linux - Newbie 1 10-24-2010 07:53 PM
How to clear a std::string buff.clear()? lucky6969b Programming 3 03-17-2006 07:50 AM
How to Clear the Master Boot Record(MBR) hazarcon Linux - Newbie 2 09-15-2004 03:12 AM


All times are GMT -5. The time now is 03:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration