LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-01-2018, 09:45 PM   #1
cfl
LQ Newbie
 
Registered: Nov 2018
Posts: 3

Rep: Reputation: Disabled
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
Code:
Filesystem      Size  Used Avail Use% Mounted on
udev            1.4G     0  1.4G   0% /dev
tmpfs           288M  4.9M  283M   2% /run
/dev/sda5        12G   12G   15M 100% /
tmpfs           1.5G   22M  1.4G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
/dev/sda6        31G   12G   18G  39% /home
tmpfs           288M     0  288M   0% /run/user/118
tmpfs           288M   16K  288M   1% /run/user/1000
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.
 
Old 11-01-2018, 10:28 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
1 members found this post helpful.
Old 11-01-2018, 11:13 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,806
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
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.

Last edited by mrmazda; 11-01-2018 at 11:31 PM.
 
1 members found this post helpful.
Old 11-02-2018, 10:08 PM   #4
cfl
LQ Newbie
 
Registered: Nov 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
@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?
 
Old 11-03-2018, 12:27 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by cfl View Post
@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).
 
Old 11-03-2018, 01:22 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,806
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by cfl View Post
@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.
 
1 members found this post helpful.
Old 11-03-2018, 03:56 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
Old 11-03-2018, 07:23 PM   #8
cfl
LQ Newbie
 
Registered: Nov 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get -f install fails due to "No space left on device" madkayaker Linux - Newbie 9 01-05-2014 09:39 PM
"No space left on device" - rootfs image build error sjremya Linux - Software 2 08-30-2010 12:16 AM
Moving a file into a large directory: "No space left on device" Jimantha Linux - General 2 09-09-2008 11:40 PM
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration