The moment I try to install something, I get an error of insufficient disk storage. In the above screenshot, there is a mismatch of space left in root for reasons I can't figure out. Last time when I ignored the message of insufficient disk storage, I starting facing infinite loop issues. Can you please suggest a permanent fix for this.
Asked
Active
Viewed 954 times
2 Answers
0
Try this:
In a terminal run:
sudo apt update
sudo apt install --reinstall deborphan
sudo deborphan
sudo apt --purge remove $(deborphan)
sudo deborphan --libdevel
sudo apt --purge remove $(deborphan --libdevel)
sudo deborphan --find-config
sudo dpkg --purge $(deborphan --find-config)
sudo apt autoremove
sudo apt clean
sudo rm -rf /root/.local/share/Trash/*/** &> /dev/null
=========================================
For a permanent solution, you should periodically run, after application installations and system updates.
These commands:
sudo deborphan
sudo apt --purge remove $(deborphan)
sudo deborphan --libdevel
sudo apt --purge remove $(deborphan --libdevel)
sudo deborphan --find-config
sudo dpkg --purge $(deborphan --find-config)
sudo apt autoremove
sudo apt clean

kyodake
- 15,401
-
Please check the second image. It got reduced to 90%. Please suggest a permanent fix for this. – Malika Arora Sep 16 '20 at 17:27
0
Inodes (df -i) shows how many inodes (file, dirs, links) you have not their block ( space) usage.
In your case you have very few but big files.
To know where these files are is a good start. To check this you need to run (as root) something like:
cd / && du -d 1 -m | sort -n -r
Which gives you the size in MB of every single directory.
This is a good start to know if you have too many data (usually in /home) or too many softwares (usually in /usr or /opt) or a lot of garbage (usually in /var)

matteo nunziati
- 146
baobab
, it will show you the space use by folder. – schrodingerscatcuriosity Sep 16 '20 at 14:32find / -type f -print0 | xargs -0 du -h | sort -rh | head -n 10
– KK Patel Sep 16 '20 at 14:52filelight
is also an app that will help you discover what's taking up the most space. It will show pie chart representations of the size of files and folders within a given path. I suggest that you STOP using the OS and switch to a live session. The longer you operate your system with no free space, you increase the chance of the system encountering an unrecoverable catastrophe. – Nmath Sep 16 '20 at 15:29