Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    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

    RahulBy 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.

    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
    Previous ArticleHow to Install LightDM Display Manager on Ubuntu
    Next Article How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04

    Related Posts

    Changing the Login Screen Background in Ubuntu 22.04 & 20.04

    Updated:May 9, 20222 Mins Read

    How to Install LightDM Display Manager on Ubuntu

    Updated:May 10, 20222 Mins Read

    Change Screen Resolution of An Ubuntu VM in Hyper-V

    Updated:May 2, 20222 Mins Read

    How to Check IPv4 Address on Ubuntu 22.04

    2 Mins Read

    How to Configure Static IP Address on Ubuntu 22.04

    Updated:May 4, 20223 Mins Read

    Download Ubuntu 22.04 – DVD ISO Images

    Updated:May 7, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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