dist-upgrade error

5 Antworten [Letzter Beitrag]
Christianity
Offline
Beigetreten: 10/09/2012

Hey guys, I'm trying to update sage, which is free mathematics software I have from a ppa. I'm getting the following error from dist-upgrade, which I haven't seen before:

dpkg: error processing /var/cache/apt/archives/sagemath-upstream-binary_5.11ubuntu1_amd64.deb (--unpack):
failed in write on buffer copy for backend dpkg-deb during `./usr/lib/sagemath/devel/sage-main/sage/rings/polynomial/pbori.pyx': No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/sagemath-upstream-binary_5.11ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems to be saying I don't have room left on my drive, which really shouldn't be true. Any advice?

lembas
Offline
Beigetreten: 05/13/2010

Are you sure root (/) is not full? This command should tell you (assuming you have the default filesystems)

df -h -t ext4 -t xfs
Christianity
Offline
Beigetreten: 10/09/2012

Oh, it says it's 97% full, I didn't realize root had it's own partition seperate from the rest of the OS. Is there an easy fix for this? Can I expand the partition?

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

First of all, you can remove all DEB packages remaining on your system (and that only are useful if you reinstall a package):
$ sudo apt-get clean

Then, you can remove all older versions of the Linux-libre kernel (which are only useful if the one in use raises new troubles with your hardware). To do list them, you can search for "linux-" in the Synaptic package manager.

If that is not enough, you would indeed have to expand the root partition... and this is not that easy if almost all the remaining space on your disk is occupied by /home with an XFS filesystem (Trisquel's default). Indeed XFS filesystems cannot be shrunk. You would therefore have to first backup the content of /home, then delete the related partition, expand the partition where / is mounted, recreate a partition for /home (unless you only want it in the root partition) and copied the files you backed up.

lembas
Offline
Beigetreten: 05/13/2010

You also probably have several kernels, by default new ones get installed but old versions aren't removed. And the default kernels are quite hefty because they contain so many drivers. You can remove all but the latest version. Open Synaptic and search for linux-image.

Dave_Hunt

I am a member!

Offline
Beigetreten: 09/19/2011

How much does the default installer gie for root filesystem? I happen to have 15 GB. 5.5 used to give me 10.