Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Distributions»Ubuntu»(Resolved) Please install all available updates for your release before upgrading

    (Resolved) Please install all available updates for your release before upgrading

    By RahulMay 6, 20222 Mins Read

    The Problem:

    While upgrading the Ubuntu OS version, I faced the following issue with the do-release-upgrade command. Even all the current packages were upgraded with apt upgrade.

    Advertisement
    sudo do-release-upgrade 
    

    We faced a known issue that would not allow us to continue with the upgrade. You will see the following error message:

    Checking for a new Ubuntu release
    Please install all available updates for your release before upgrading.
    

    Here are 2 solutions available to resolve this issue. It may be one solution not worked in some situations, try another solution.

    Solution 1:

    The first solution is to disable all third-party repositories in your system. Use the below given commands to disable all repositories:

    cd /etc/apt/sources.list.d 
    for i in *.list; do mv ${i} ${i}.disabled; done 
    

    Then clean the Apt update state cache data:

    apt clean
    apt autoclean 
    

    Now, again start the Ubuntu upgrade process.

    sudo do-release-upgrade 
    

    In case the above solution doesn’t now, follow the second solution.

    Solution 2:

    First of all clean all the Ubuntu upgrade state cache with the following commands.

    apt clean 
    apt autoclean 
    

    Now, execute the following commands one by one.

    sudo apt update 
    sudo apt upgrade -y 
    sudo apt dist-upgrade 
    

    Finally, run the Ubuntu upgrade process again. Hopefully, this will resolve the issue

    sudo do-release-upgrade 
    

    If any of the above solutions resolved your issue, kindly share this tutorial. For any issues or other solutions please comment below.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Apt configuration file options /etc/apt/apt.conf

    How to Setup DKIM (DomainKeys) with Postfix

    A Step-by-Step Guide to Installing OpenDKIM with Postfix on Ubuntu – Unleash the Power of DKIM!

    How to Install Composer on Ubuntu 22.04

    How to Install Composer on Ubuntu 22.04

    View 11 Comments

    11 Comments

    1. Emi on December 23, 2022 5:55 pm

      Thx for the hint.
      Solution 2 did not work. Solution 1 did the job.

      Reply
    2. Risto Ranta on November 21, 2022 2:15 am

      Solution 2 started her work

      Reply
      • Risto Ranta on November 21, 2022 11:45 am

        The update took about 3 hours. After that all my web pages containing php are broken.
        It has happened too many times, that php updates have contained stupid changes, which have caused hours of work to system administrators. One of them was, when they decided to remove ‘split’ and use ‘explode’.
        They could have used ‘split’ name but linked it to ‘explode’.
        This caused me about two weeks of work in our organisation.

        Reply
    3. Naif on November 5, 2022 3:29 pm

      Nice, overcome the updating obstacle!

      Reply
    4. Nagalingam Kuhan on August 12, 2022 7:58 am

      after upgrading ubuntu 22.04.1
      website couldn’t work
      I got the error
      Failed a start job is running for wait for network to be configured

      Reply
    5. pravin on August 7, 2022 10:08 am

      “sudo” required in my case.

      for i in *.list;
      do sudo mv ${i} ${i}.disabled; done

      Thanks.

      Reply
    6. nick on August 1, 2022 3:03 am

      $ do-release-upgrade
      Checking for a new Ubuntu release
      Your Ubuntu release is not supported anymore.
      For upgrade information, please visit:
      http://www.ubuntu.com/releaseendoflife

      Please install all available updates for your release before upgrading.

      $ rg ‘all available updates’ -B5 $(which do-release-upgrade)
      194- install_count += 1
      199: print(_(“Please install all available updates ”

      $ vim $(which do-release-upgrade)

      $ rg ‘all available updates’ -B5 $(which do-release-upgrade)
      194- #install_count += 1
      199: print(_(“Please install all available updates ”

      $ do-release-upgrade
      Checking for a new Ubuntu release
      Your Ubuntu release is not supported anymore.
      For upgrade information, please visit:
      http://www.ubuntu.com/releaseendoflife

      = Welcome to Ubuntu 22.04 ‘Jammy Jellyfish’ =

      Reply
    7. M on July 19, 2022 8:10 pm

      thanks

      Reply
    8. robertsLando on June 15, 2022 9:08 am

      For anyone interested, once the upgrade is finished I used this script to revert files:

      “`
      for file in *.disabled; do
      mv — “$file” “${file%%.disabled}”
      done
      “`

      Also mind that there will be some `.save` duplicate file. In my case I have removed all them but I suggest to check

      Reply
    9. y on June 7, 2022 10:54 pm

      Thanks.

      Reply
    10. pm on May 27, 2022 6:04 pm

      Thanks – temporarily disabling the 3rd party sources solved the issue.

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.