1

I am trying to install something on the Ubuntu and it returns me the message : 'no free space on device'.

I have tied 3 different ways to free some space and apparently did not succeed.

1: Synapsis is a software that helps me remove/uninstall some software but in order to access it, firstly i have to install it:

sudo apt-get install synaptic 

But since there is no space left, I can t.

2: Ubuntu software Center Is missing from my list and I have tried to install is as well

sudo apt-get install software-center

As in the previous case, no spae, no install done.

3: I tried line commands like

sudo apt-get purge <>
sudo apt-get remove <>

No success.

I even tried some commands like

df -i

// to see the inode usage

df -h

//to see if there are any folders that are 100% full

du -sh

//check large file , du command, short for disk usage, is used to estimate file space usage.The du command can be used to track the files and directories which are consuming excessive amount of space on hard disk drive.

Eveleen
  • 224

2 Answers2

1

List installed packages sorted by Size in bytes:

dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n

Uninstall packages you don't need:

sudo apt remove <package>

Then see if you can install bleachbit:

sudo apt install bleachbit

Bleachbit can free up a lot of space like temp files, thumbnails, caches, etc.


This will only help temporarily, your drive will fill up again. You might consider getting a bigger hard drive or if you have partitions changing partition sizes (give more to /) or don't use separate partitions for / and /home.

pLumo
  • 26,947
0

One way to clean out more space is to clean out the Cached Packages

To clean out the cached packages folder properly, you can use this command from the shell prompt:

sudo apt-get clean
graham
  • 10,436