Not enough free disk space

Asked by Crystal Schneider

When I try to update my Ubuntu this is what I get:
The upgrade needs a total of 25.2 M free space on disk '/boot'. Please free at least an additional 15.4 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

opened terminal and entered command sudo apt-get clean
password prompt no problem.. but it does nothing after this.. what should I do please.

felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ df -h; lsb_release -a
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 284G 13G 257G 5% /
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 790M 872K 789M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 752K 2.0G 1% /run/shm
/dev/sda1 184M 166M 9.3M 95% /boot
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Crystal Schneider
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of :

uname -a; dpkg - l | grep libux-image

Thanks

Revision history for this message
Crystal Schneider (fortheoverlord) said :
#2

felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ uname -a; dpkg - l | grep libux-image
Linux felix-HP-Pavilion-dv6700-Notebook-PC 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
dpkg: error: need an action option

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ dselect
The program 'dselect' is currently not installed. You can install it by typing:
sudo apt-get install dselect
felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ sudo apt-get install dselect
[sudo] password for felix:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  language-pack-kde-zh-hans-base language-pack-kde-en kde-l10n-engb
  language-pack-zh-hans-base kde-l10n-zhcn language-pack-zh-hans
  language-pack-kde-zh-hans language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  dselect
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 184 kB of archives.
After this operation, 1,217 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main dselect amd64 1.16.1.2ubuntu7 [184 kB]
Fetched 184 kB in 4s (37.5 kB/s)
Selecting previously unselected package dselect.
(Reading database ... 782283 files and directories currently installed.)
Unpacking dselect (from .../dselect_1.16.1.2ubuntu7_amd64.deb) ...
Processing triggers for man-db ...
Setting up dselect (1.16.1.2ubuntu7) ...
felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Sorry:

dpkg -l | grep linux-image

Thanks

Revision history for this message
Crystal Schneider (fortheoverlord) said :
#4

Thanks for all the help, This actually worked for me and I learned what to do for next time :) I truly appreciate you ofering up the time to help me with my OS.
This actually worked for me and now its updating :
felix@felix-HP-Pavilion-dv6700-Notebook-PC:~$ sudo bash
[sudo] password for felix:
root@felix-HP-Pavilion-dv6700-Notebook-PC:~# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  kde-l10n-engb kde-l10n-zhcn language-pack-kde-en language-pack-kde-en-base
  language-pack-kde-zh-hans language-pack-kde-zh-hans-base
  language-pack-zh-hans language-pack-zh-hans-base
0 upgraded, 0 newly installed, 8 to remove and 34 not upgraded.
After this operation, 25.0 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 782346 files and directories currently installed.)
Removing kde-l10n-engb ...
Removing kde-l10n-zhcn ...
Removing language-pack-zh-hans-base ...
Removing language-pack-kde-en-base ...
Removing language-pack-kde-zh-hans-base ...
Removing language-pack-kde-en ...
Removing language-pack-kde-zh-hans ...
Removing language-pack-zh-hans ...
Processing triggers for software-center ...
INFO:softwarecenter.db.update:no translation information in database needed
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
root@felix-HP-Pavilion-dv6700-Notebook-PC:~# sudo get-clean
sudo: get-clean: command not found
root@felix-HP-Pavilion-dv6700-Notebook-PC:~# sudo apt-get clean
root@felix-HP-Pavilion-dv6700-Notebook-PC:~# dselect
running dpkg --pending --remove ...

Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.canonical.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.canonical.com precise Release
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.canonical.com precise/partner amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:3 http://security.ubuntu.com precise-security/universe amd64 Packages [90.4 kB]
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Get:4 http://security.ubuntu.com precise-security/main amd64 Packages [357 kB]
Get:5 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,454 B]
Get:6 http://security.ubuntu.com precise-security/restricted amd64 Packages [4,627 B]
Get:7 http://security.ubuntu.com precise-security/universe i386 Packages [94.7 kB]
Get:8 http://security.ubuntu.com precise-security/main i386 Packages [377 kB]
Get:9 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,650 B]
Get:10 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Fetched 983 kB in 27s (35.5 kB/s)
Reading package lists... Done
Merging available information
Replacing available packages info, using /var/cache/apt/available.
Information about 61238 packages was updated.

root@felix-HP-Pavilion-dv6700-Notebook-PC:~#