2

enter image description hereI have ubuntu 22.04. I have 500 GB SSD. Used space shows 113 gb but free space only 25 gb. There should be atleast 250 GB of free space.enter image description here

500 GB hard disk. (Available: 468 GB - Ubuntu: 25 GB - My data 113 gb - other 50 gb) = 280 GB. But only 25-50 GB free. Here is command df -h

apoorva@apoorva:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  3.6M  1.6G   1% /run
/dev/sda2       468G  421G   25G  95% /
tmpfs           7.8G  313M  7.5G   4% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
efivarfs        160K   45K  111K  29% /sys/firmware/efi/efivars
/dev/sda1       511M  6.1M  505M   2% /boot/efi
tmpfs           1.6G   76K  1.6G   1% /run/user/128
tmpfs           1.6G  3.7M  1.6G   1% /run/user/1000

enter image description here

Please suggest.

enter image description here

enter image description here

1 Answers1

1

Try cleaning your system.

Open a terminal and run:

exec sudo -i
apt update
apt install --reinstall deborphan
apt autoremove
deborphan
apt --purge remove $(deborphan)
deborphan --libdevel
apt --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)
OLDCONF=$(dpkg -l|grep '^rc'|awk '{print $2}')
apt clean
apt purge $OLDCONF
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null

Check if space has been freed with:

df -h

You may need to remove outdated snap packages.

You can do this using the information at: https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps

kyodake
  • 17,808