[SOLVED] Trying to upgrade Kubuntu LTS - "No space left on device"
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Trying to upgrade Kubuntu LTS - "No space left on device"
Wanted to install updates and upgrade Kubuntu LTS to 18.04, but updates act weird (starts to update, then says it's up to date, then says can't download) and trying to upgrade starts process then gives error "No space left on device". So I ran df -h
I see that root is out of space. Is 12G insufficient or some cleanup I can do? Most everything I added was installed to home. I don't see any mention anywhere of how much space is required to upgrade.
To me, 12GB for root is a bit tight. You will have a lot of stuff in /var, and perhaps need some non-negligible temporary space for the upgrade (usually /tmp or /var/tmp).
Kubuntu should have roughly the same space requirements as Ubuntu. The disk space is stated as 25gb minimum. Thus, your setup is illegal :P
Not sure if you can trim anything. It might be easier to backup the whole thing and reinstall with a larger root disk, or combine root and home on the same disk.
Largest / partition I've assigned to Kubuntu is 8G. Most I've given 5.6G or less. Your apt cache probably still has every package ever upgraded, so start by emptying it and see how much freespace remains. If you have /var/log/journal/*/ likely it consumes a lot of space with ancient useless files. Try getting rid of all but the most recent. /tmp is another place to check.
@berndbausch - I thought the 25gb size was for root and home combined.
@mrmazda - clearing apt cache now gives me 383 MiB free. Don't have /var/log/journal/*/ & /tmp contains a minuscule amount, so not worth cleaning.
Found https://www.omgubuntu.co.uk/2016/08/...pace-on-ubuntu
I do have some old kernels. Running sudo apt-get autoremove --purge shows:
After this operation, 1,865 MB disk space will be freed.
That's a significant chunk. Haven't actually removed them yet; safe?
@berndbausch - I thought the 25gb size was for root and home combined
Nobody except the person who installs the system knows how much space is needed in /home, so that I doubt that. Having said that, the 25GB should contain a safety buffer.
For a clue where to trim: apt should allow you to create a report of the size of everything you installed. Compare that to the disk space actually allocated (you could use du for that, or perhaps there are graphical tools built into Kubuntu).
@mrmazda - clearing apt cache now gives me 383 MiB free...
Found https://www.omgubuntu.co.uk/2016/08/...pace-on-ubuntu
I do have some old kernels. Running sudo apt-get autoremove --purge shows:
After this operation, 1,865 MB disk space will be freed.
That's a significant chunk. Haven't actually removed them yet; safe?
Yes. All you need is the kernel that is now running, which autoremove won't disturb. The 383 freed by the cache cleaning would not have left enough space for downloading the updates. With all those ancient kernels removed, dist-upgrade may have enough freespace to proceed. If it doesn't, look through your menu starter. Likely there are things in there you never use that can be uninstalled.
cfl, your (only) hard drive seems to be so small, i would drop any partitioning schemes and go with 2 partitions (3 if you have EFI boot?) only: / (incl. home) and swap.
Got those old kernels removed. Still not enough space. I really like having a separate data (home) partition. KDE Partition Mgr. to the rescue: moved 6 GiB from home to root. Success! (Posting from 18.04) My HD is not really that small; I dual boot Win7. I have a Win7 partition with extra space, but using it would have entailed a lot more moving things around (which, aside from any risk, is dreadfully slow and I didn't want to get into that right now). Showing 11G free in root after upgrade, so actually acquired more free space after upgrade.
Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.