dpkg: failed to write status record about `dcraw' to `/var/lib/dpkg/status': No space left on device

Asked by Doepie

The following error appears in Update Manager:

"E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report."

I tried running the command as suggested manually, but then get the following error in console:

"dpkg: failed to write status record about `dcraw' to `/var/lib/dpkg/status': No space left on device"

Total file system capacity is 33.3 GB with 16.1 GB free.

How can I resolve this error?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Doepie
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please open a terminal copy and paste the result of:

sudo fdisk -l

and

df -h

commands

Thank you

Revision history for this message
Doepie (doepie) said :
#2

Thanks for the quick response!

Details as follows:

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 5476 43985938+ 7 HPFS/NTFS
/dev/sda2 5477 5849 2996122+ 82 Linux swap / Solaris
/dev/sda3 5850 6371 4192965 83 Linux
/dev/sda4 6372 9729 26973135 83 Linux

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 4.0G 4.0G 0 100% /
varrun 756M 104K 756M 1% /var/run
varlock 756M 0 756M 0% /var/lock
udev 756M 48K 756M 1% /dev
devshm 756M 12K 756M 1% /dev/shm
lrm 756M 38M 719M 5% /lib/modules/2.6.24-19-generic/volatile
/dev/sda4 26G 12G 13G 47% /home
overflow 1.0M 36K 988K 4% /tmp
gvfs-fuse-daemon 4.0G 4.0G 0 100% /home/duplesf/.gvfs

Ok, so I guess I need to increased the size of sda3? I can use GParted for this right?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Yuo have this partition full:

/dev/sda3 4.0G 4.0G 0 100% /

and is the root partition you must try to get some space.

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get clean all
sudo apt-get update
sudo apt-get -f install
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get clean all

give your user password when requested, you don't see nothing when you type it, then press enter.

Then try to remove unused old kernel if you need help please ask here.

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Booting from live cd and using gparted try to lower the size of /dev/sda4 partition The /home

/dev/sda4 26G 12G 13G 47% /home

and increase the /dev/sda3 partition

Hope this helps

Revision history for this message
Doepie (doepie) said :
#5

Ok, I resized my sda4 and freed up 2 GB of extra space.

But now I can't allocate that space to the sda3.

How do I add it, or is this not possible?

Do I need to resize the sda4 partition and make more than 4 GIG og space available, then copy the sda3 partition into the new unallocated space?

Sorry, I'm completely new at this. :-(

Revision history for this message
bodhi.zazen (bodhi.zazen) said :
#6

you need to move the partitions so the free space is adjacent to sda3

If that is not working, you may need a newer version of gparted.

You can not resize BOTH sda4 and sda3 at the same time, all in one step, you need to do it in two steps. Do sda4 first, commit changes, then sda3.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Booting from live cd and using gparted FIRST try to lower the size of /dev/sda4 partition: the /home

/dev/sda4 26G 12G 13G 47% /home

and press APPLY button of gparted

Restart gparted and increase the /dev/sda3 partition

and Press APPLY button of gparted

Hope this helps

Revision history for this message
Doepie (doepie) said :
#8

Thanks Guys

I moved the unallocated partition next to SDA3 then expanded it to give me more space.

The terminal commands then sorted out the rest!

Revision history for this message
JReeves (jreeves-nf) said :
#9

I am running Ubuntu 8.04, kernel 2.6.20-16 generic.

Running the Update Manager I receive the error message:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

So, I tried this:
------------------------------------------------------------
john@lc2000:~$ sudo dpkg --configure -a

Setting up initramfs-tools (0.85eubuntu39.2) ...
update-initramfs: deferring update (trigger activated)

Setting up linux-image-2.6.24-19-generic (2.6.24-19.36) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.24-19-generic
Failed to create initrd image.
dpkg: error processing linux-image-2.6.24-19-generic (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.24-19-generic:
 linux-restricted-modules-2.6.24-19-generic depends on linux-image-2.6.24-19-generic; however:
  Package linux-image-2.6.24-19-generic is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.24-19-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-ubuntu-modules-2.6.24-19-generic:
 linux-ubuntu-modules-2.6.24-19-generic depends on linux-image-2.6.24-19-generic; however:
  Package linux-image-2.6.24-19-generic is not configured yet.
dpkg: error processing linux-ubuntu-modules-2.6.24-19-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.24-19-generic
dpkg: subprocess post-installation script returned error exit status 1
john@lc2000:~$

-----------------------------------------------

I tried removing unused kernels to make space, and got the same error message:

EXAMPLE:

john@lc2000:~$ sudo apt-get remove linux-image-2.6.24-16-generic linux-restricted-modules-2.6.24-16-generic linux-ubuntu-modules-2.6.24-16-generic linux-headers-2.6.24-16 linux-headers-2.6.24-16-generic
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
john@lc2000:~$

What now?