cannot use apt-get on kFreeBSD; 'no space left on device'
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cannot use apt-get on kFreeBSD; 'no space left on device'
Ok, so i'm not sure this is the best forum to post this in, although kFreeBSD is BSD-based, it still runs the same GNU userland as Debian 6.
My problem is this: i'm trying to upgrade samba, but I hit the same problem every time. Probably best if I just quote the error:
Code:
Setting up samba-common (2:3.6.6-2) ...
cp: writing `/var/run/samba/upgrades/smb.conf': No space left on device
dpkg: error processing samba-common (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common (= 2:3.6.6-2); however:
Package samba-common is not configured yet.
dpkg: error processing samba (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
samba-common
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have plenty of space on the drive in question, so can anyone shed any light on this?
I have plenty of space on the drive in question, so can anyone shed any light on this?
well the post install script thinks you don't. Are you sure there is space on the partition where /var is located? What happens if you try to write a file there?
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493
Rep:
2gb ram should certainly be enough, I queried it because to my knowledge tmpfs uses half of the available ram; however, it doesn't seem to be in your case.
I've just tried surfing for specifics pertaining to kfreebsd & your problem with no success, so I'm afraid I can't help you.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Having all those tiny partitions is kind of silly. This is what it leads to.
Making them bigger will make them not read as full. This will help. Better to leave them in your / partition in the first place. Having a partition for /var would make sense but only if large enough.
My /run (in /) is only 76.9KB. /var (also in /) is 2.3GB.
Remember that most recommendations for a / partition are in the range of 10GB. Var is a large part of that making it a good candidate for a separate partition. I think /usr is too for that matter.
I stick with a / and /home (sometimes a /boot). I make my / partition no smaller than 10GB and it is 30GB on this (production OS) install. It is about half full at this point.
The file system in partitions will become fragmented under Linux when you get above 80% full. Give the buggers room to breath. This is easier, to me anyway, by sticking to a simple partition table for each install.
We have no idea how much space you have on your drive but having partitions that read as full is not a good thing at all. You can resize them using gparted.
You probably have to move some of them to some free space so that you have room to enlarge them. This can be done with gparted too.
Do not attempt to do this from any install on the drive you are working on. The best way is using an install on another drive if you have one. If not use a live CD (any distro should do) and do it from the live session.
Ok, so obviously I need to do some shuffling around, I have a liveUSB lined up to do this with. Am I not right in thinking that as /run is mounted as tmpfs, it's not actually part of the partition table for the root drive? The root drive is 4gb by the way.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
/run is a directory. On mine which has a lot of stuff happening it is all of 106.1KB.
It does take up room, not a lot but it is there.
With a / drive the size you have you need to keep it as small as you can. Don't make a bunch of partitions. Just go with /.
Make sure that you are not keeping anything in the /var/cache/apt/archive directory except the "lock" file. I would keep the "/partial" directory in there too, just make sure it is empty. "apt=get clean" should clear it out for you. I don't use it usually as I like to keep a bunch of back packages in case I need to go to an older version (Debian testing - it happens - not often).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.