I'd like to upgrade from 16.04 to 20.04 passing through the 18.04. However, when I try to update to 18.04 I get:

The upgrade has aborted. The upgrade needs a total of 5.754 M free space on disk '/'. 
Please free at least an additional 3.059 M of disk space on '/'.

Here is the output of df -h:

$ df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            3,9G     0    3,9G   0% /dev
tmpfs           789M  9,4M    779M   2% /run
/dev/sda5        19G   15G    2,6G  86% /
tmpfs           3,9G   92M    3,8G   3% /dev/shm
tmpfs           5,0M     0    5,0M   0% /run/lock
tmpfs           3,9G     0    3,9G   0% /sys/fs/cgroup
/dev/loop1       55M   55M       0 100% /snap/core18/1668
/dev/loop0      161M  161M       0 100% /snap/gnome-3-28-1804/116
/dev/loop2       28M   28M       0 100% /snap/snapd/6953
/dev/loop5       25M   25M       0 100% /snap/snapd/6434
/dev/loop4       59M   59M       0 100% /snap/discord/108
/dev/loop3       55M   55M       0 100% /snap/core18/1705
/dev/loop8       45M   45M       0 100% /snap/gtk-common-themes/1440
/dev/loop7       58M   58M       0 100% /snap/discord/109
/dev/loop6       49M   49M       0 100% /snap/gtk-common-themes/1474
/dev/sda6       421G  351G     49G  88% /home
/dev/sda1       496M   66M    431M  14% /boot/efi
tmpfs           789M   64K    789M   1% /run/user/1000

What is the best way of action given that (I suppose) I will later need some more space to upgrade to 20.04?

  • Free space, do the upgrade. Then you will sudo apt autoremove before upgrading to 20.04. And free up more space if needed. – B. du Garay May 23 at 17:20
  • @B.duGaray How do I free space, and where? – Py-ser May 23 at 17:33
  • start with /var/cache/apt/archives/ but all the other stuff is going to needed. how about you enlarge / ? do you have more than 1 partition? – Rinzwind May 23 at 17:37
  • 1
    By deleting usless things or moving them on external drives (~/Videos ~/Music ~/Downloads ~/Documents). What df -h say in your term ? Edit your question with the results (in codeblock) ; /// du -h -s * might help you, also (but useless for us, and can contain sensitive information) – B. du Garay May 23 at 17:41
  • 1
    @Py-ser start with /var/cache/apt/archives/ like Rinzwind suggested. – bac0n May 23 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.