Root partition 100% full
Out of diskspace issue! -> Extracting templates from packages: 96%E: Write error - write (28 No space left on device) ---> ok I was opening the add and remove program and this popped up: This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/
How can I fix this and my synaptic package won't even open up any more... This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Hi,
First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...
Then please try this procedure:
Step 1: Open Terminal from "Applications-
Terminal"
Step 2: Run the following commands (copy-paste each line below to the Terminal then hit <enter> after each line)
sudo rm /var/lib/
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade
Step 3: Please post results (copy/paste terminal output from each command) on this thread
Hope it helps,
Regards,
Mark
Revision history for this message
![]() |
#2 |
Ok this is what i got for each of the lines: neisha@neisha:~$ sudo rm /var/lib/
[sudo] password for neisha:
rm: cannot remove `/var/lib/
neisha@neisha:~$ sudo dpkg --clear-avail
neisha@neisha:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of openoffice.
openoffice.
Version of openoffice.org-core on system is 1:2.4.1-1ubuntu2.
dpkg: error processing openoffice.
dependency problems - leaving unconfigured
dpkg: error processing linux-image-
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
dpkg: dependency problems prevent configuration of sun-java6-jre:
sun-java6-jre depends on sun-java6-bin (= 6-07-3ubuntu2) | ia32-sun-java6-bin (= 6-07-3ubuntu2); however:
Version of sun-java6-bin on system is 6-06-0ubuntu1.
Package ia32-sun-java6-bin is not installed.
dpkg: error processing sun-java6-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.
openoffice.
Version of openoffice.org-core on system is 1:2.4.1-1ubuntu2.
dpkg: error processing openoffice.org-draw (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.
openoffice.
Version of openoffice.org-core on system is 1:2.4.1-1ubuntu2.
dpkg: error processing openoffice.org-calc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.
openoffice.
Version of openoffice.org-core on system is 1:2.4.1-1ubuntu2.
dpkg: error processing openoffice.
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-uno:
python-uno depends on openoffice.org-core (= 1:2.4.1-
Version of openoffice.org-core on system is 1:2.4.1-1ubuntu2.
dpkg: error processing python-uno (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-plugin:
sun-java6-plugin depends on sun-java6-bin (= 6-07-3ubuntu2); however:
Version of sun-java6-bin on system is 6-06-0ubuntu1.
dpkg: error processing sun-java6-plugin (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openoffice.
linux-
sun-java6-jre
openoffice.
openoffice.
openoffice.
python-uno
sun-java6-plugin
neisha@neisha:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done
The following packages are BROKEN:
openoffice.
openoffice.
The following packages are unused and will be REMOVED:
odbcinst1debian1 sun-java6-bin unixodbc
The following partially installed packages will be configured:
linux-
0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 82.9MB will be freed.
The following packages have unmet dependencies:
openoffice.
openoffice.
openoffice.
sun-java6-plugin: Depends: sun-java6-bin (= 6-07-3ubuntu2) but it is not installable
sun-java6-jre: Depends: sun-java6-bin (= 6-07-3ubuntu2) but it is not installable or
python-uno: Depends: openoffice.org-core (= 1:2.4.1-1ubuntu2.1) but 1:2.4.1-1ubuntu2 is installed.
openoffice.
Resolving dependencies...
E: I wasn't able to locate file for the linux-image-
The following actions will resolve these dependencies:
Remove the following packages:
openoffice.org-calc
openoffice.org-draw
openoffice.
openoffice.
python-uno
sun-java6-jre
sun-java6-plugin
Score is -187
Accept this solution? [Y/n/q/?] y
The following packages are unused and will be REMOVED:
libwpg-0.1-1 odbcinst1debian1 sun-java6-bin unixodbc
The following packages will be automatically REMOVED:
openoffice.
openoffice.
The following packages will be REMOVED:
openoffice.
openoffice.
The following partially installed packages will be configured:
linux-
0 packages upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 144MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Error!
E: I wasn't able to locate file for the linux-image-
neisha@neisha:~$ sudo aptitude update
Get:1 http://
Ign http://
Get:2 http://
Ign http://
Err http://
404 Not Found [IP: 91.189.88.140 80]
Get:3 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:4 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:5 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:6 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:7 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:8 http://
Ign http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Fetched 9142kB in 2min9s (70.3kB/s)
Reading package lists... Done
neisha@neisha:~$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
dhcdbd libisc32
The following NEW packages will be automatically installed:
adobe-flashplugin dell-help-applet dell-icon-theme dell-panel-
libccid libisc35 libkmime2 libmbca0 libpcsclite1
mobile-
The following NEW packages will be installed:
adobe-flashplugin dell-help-applet dell-icon-theme dell-panel-
libccid libisc35 libkmime2 libmbca0 libpcsclite1
linux-
linux-
modemmanager pcscd ume-config-base
The following packages will be upgraded:
acpi-support acpid alacarte app-install-
apt-utils atlantik avahi-autoipd avahi-daemon belmont-
bind9-host bluez-audio bluez-cups bluez-utils capplets-data cheese
compiz-
dbus-x11 dell-launcher deskbar-applet desktop-file-utils dnsutils evince
evolution evolution-common evolution-
evolution-
firefox-
gedit-common gksu gnome-cards-data gnome-control-
gnome-games-data gnome-panel gnome-panel-data gnome-power-manager
gnome-
gstreamer0.
gstreamer0.
guidance-backends gvfs gvfs-backends gvfs-fuse hal-info hpijs hplip-data
ifupdown indi initscripts jockey-common jockey-gtk kaddressbook kalzium
kalzium-data kanagram kaudiocreator kdebase-bin kdebase-bin-kde3
kdeedu-data kdelibs-data kdelibs4c2a kdemultimedia-
kiten klettres klettres-data kmplot kolf konsole kstars kstars-data
ktouch ktron ktuberling kvoctrain kwordquiz kworldclock
language-
launchpad-
libavahi-qt3-1 libavahi-ui0 libavcodec1d libavutil1d libbind9-30
libbluetooth2 libcamel1.2-11 libcurl3-gnutls libdns35 libdrm2
libebook1.2-9 libecal1.2-7 libedata-book1.2-2 libedata-cal1.2-6
libedataserve
libexchange-
libgdata1.2-1 libgl1-mesa-dri-psb libgnome-
libgphoto2-port0 libgtk2.0-bin libgvfscommon0 libisccc30 libisccfg30
libkcal2b libkcddb1 libkdeedu3 libkdegames1 libkdepim1a libkiten1
libkleopatra1 libktnef1 liblcms1 liblpint-bonobo0 liblwres30 libmetacity0
libnautilus-
libpanel-
libpulse0 libpulsecore5 libpurple0 libsmbclient libusplash0 libva1
libvorbis0a libvorbisenc2 libvorbisfile3 libxine1 libxine1-bin
libxine1-console libxine1-ffmpeg libxine1-
libxine1-x libxml2-utils linux-image-
linux-
linux-
linux-
linux-
linux-
metacity-common myspell-en-gb myspell-en-us myspell-en-za nautilus
nautilus-data nautilus-sendto nautilus-share network-manager
network-
openoffice.
openoffice.
openoffice.
planetpenguin
pulseaudio pulseaudio-
pulseaudio-
python-apport python-apt python-
python-gtkhtml2 python-
python-
samba-common smbclient software-
system-
system-
totem-gstreamer totem-mozilla totem-plugins ubuntu-docs
ume-config-
usplash util-linux-locales vim-common vim-tiny vinagre w-scan webfav
wpasupplicant xkb-data xorg-modules-xpsb xserver-
xserver-
xterm
The following partially installed packages will be configured:
openoffice.
openoffice.
265 packages upgraded, 16 newly installed, 2 to remove and 0 not upgraded.
Need to get 248kB/365MB of archives. After unpacking 103MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Fetched 248kB in 1s (161kB/s)
Extracting templates from packages: 96%E: Write error - write (28 No space left on device)
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
E: Prior errors apply to /var/cache/
debconf: apt-extracttemp
Extracting templates from packages: 100%
Preconfiguring packages ...
oem-config template parse error: Template parse error near `Choices', in stanza #78 of /tmp/oem-
debconf: DbDriver "templatedb": could not write /var/cache/
tar: ./md5sums: Wrote only 8704 of 10240 bytes
tar: ./postinst: Cannot write: No space left on device
tar: Error exit delayed from previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/
subprocess dpkg-deb --control returned error exit status 2
tar: ./md5sums: Wrote only 6656 of 10240 bytes
tar: ./postinst: Cannot write: No space left on device
tar: ./preinst: Cannot write: No space left on device
tar: ./postrm: Cannot write: No space left on device
tar: Error exit delayed from previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/
subprocess dpkg-deb --control returned error exit status 2
(Reading database ... 101486 files and directories currently installed.)
Preparing to replace openoffice.org-core 1:2.4.1-1ubuntu2 (using .../openoffice.
Unpacking replacement openoffice.org-core ...
dpkg: error processing /var/cache/
failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
tar: ./conffiles: Cannot write: No space left on device
tar: ./md5sums: Cannot write: No space left on device
tar: ./control: Cannot write: No space left on device
tar: Error exit delayed from previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing /var/cache/
subprocess dpkg-deb --control returned error exit status 2
Preparing to replace dbus 1.1.20-
Unpacking replacement dbus ...
dpkg: error processing /var/cache/
failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./etc/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error while cleaning up:
unable to fill /var/lib/
dpkg: failed to write status record about `libxml2' to `/var/lib/
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: failed to write status record about `libxml2' to `/var/lib/
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: Could not regain the system lock! (Perhaps another apt or dpkg is running?)
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Revision history for this message
![]() |
#3 |
Hi Neisha,
The REAL problem is that your root Linux partition is full. The package manager cannot work if the partition is full. You will first need to clean up diskspace on the root partition before you can run my fix procedure.
Try running the following commands:
sudo aptitude clean
sudo aptitude autoclean
df -h
Please send us the output of these 3 commands.
Regards,
Mark
Revision history for this message
![]() |
#4 |
neisha@neisha:~$ sudo aptitude clean
[sudo] password for neisha:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
neisha@neisha:~$ sudo aptitude autoclean
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
neisha@neisha:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.4G 3.4G 0 100% /
varrun 247M 212K 247M 1% /var/run
varlock 247M 0 247M 0% /var/lock
udev 247M 36K 247M 1% /dev
devshm 247M 12K 247M 1% /dev/shm
lrm 247M 1.9M 245M 1% /lib/modules/
overflow 1.0M 20K 1004K 2% /tmp
gvfs-fuse-daemon 3.4G 3.4G 0 100% /home/neisha/.gvfs
Revision history for this message
![]() |
#5 |
Hi Neisha,
Please try the following solutions:
https:/
and/or
https:/
Regards,
Mark
Revision history for this message
![]() |
#6 |
ok Mark I have another about freeing up space. I don't won't to delete something and then come to find up I done messed up my computer completely. If certain folders that are on the hard drive are empty without a thing in them should i delete them and also my computer doesn't have a CD ROM drive
Revision history for this message
![]() |
#7 |
Hi,
If you are worried about losing data, I suggest backing up all the data on your Linux partitions. You can for example first copy your data to an external USB drive and then reinstall Ubuntu 9.04 from a USB stick.
Use Windows on another pc and a USB stick and then follow these instructions to create a bootable USB flashdrive with Ubuntu 9.04 on it:
https:/
So you do not need a CDROM or DVD drive to install Ubuntu.
Regards,
Mark
Revision history for this message
![]() |
#8 |
One more thing:
When you reinstall Ubuntu 9.04 using the USB stick, make sure to resize your root partition ( / partition) to at least around 5 or 6 gigabytes to make sure you don't encounter disk space issues in the near future. Your current root partition size (3.4 gigabytes) is way too small, in my opinion.
Can you help with this problem?
Provide an answer of your own, or ask Neisha for more information if necessary.