How to free up disk space

Solved

Hello, unable to upgrade from Ubuntu 24.04 LTS to 26.04 LTS: not enough space ......???

3 answers

  • Votes
  • Date
  • Descending date
  1. Moderator
    Hello there,

    We might as well remind here that, on this forum as in “real” life, minimal basic politeness formulas (aside from the pre-printed “Hello”) such as “Please” – “Thank you in advance” – “Kind regards” and any other variants on the same theme are very much appreciated.

    And this, for at least one good reason in addition to universal civility: the people who answer here are volunteers who are asked for a free service.

    To access all the details, click ► https://www.commentcamarche.net/infos/25855-charte-d-utilisation-de-commentcamarche-net-respect-d-autrui/#politesse

    Thank you in advance.
    And in the meantime, enjoy your time here.
    1. Moderator

      Hello,

      The first things I would do:

      1. Clear the browser cache.
      2. Clear the update manager cache (snap and APT) before launching the big update:
        sudo apt clean sudo sh -c 'rm -rf /var/lib/snapd/cache/*'
      3. Remove non-essential software (this will lighten the migration and it will still be possible to reinstall them later).
      4. If necessary, delete large files no longer used (videos or photos) or move them to another PC or partition. As a reminder, you can check your partition usage with
        df -h

        ... and the du command may also be useful to see the usage by folder. For example:

        du --max-depth=1 --si /home/toto
      5. And finally, initiate the upgrade:
        sudo do-release-upgrade

      Good luck

      1. Thank you mamiemando! I successfully installed Ubuntu 26 04. I will now attempt to clone my hard drive.