Please Install All Available Updates Before Upgrading

How to Fix “Please Install All Available Updates Before Upgrading”

While upgrading Ubuntu using do-release-upgrade or apt upgrade, you may get an error message saying “Please install all available updates for your release before upgrading.” And then your system update will fail. In this article, we will learn a couple of ways to fix this problem. Here is a typical snapshot of the problem.

$ sudo do-release-upgrade 

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


How to Fix “Please Install All Available Updates Before Upgrading”

Here is how to fix the above problem during Ubuntu updates.


1. Solution 1

In this approach, we first disable all repositories with the following command.

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

Then clean apt update cache data

$ apt clean
$ apt autoclean 

Then run the command to upgrade Ubuntu.

$ sudo do-release-upgrade 


2. Solution 2

In this case, run the following commands to upgrade state cache.

$ apt clean 
$ apt autoclean 

Then execute the following commands.

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

Finally, run the Ubuntu upgrade process again.

$ sudo do-release-upgrade 

In this article, we have learnt a couple of simple ways to fix the problem ‘Please Install All Available Updates Before Upgrading’.

Also read:

How to Change Login Screen Background in Ubuntu
Most Common Fdisk Commands in Linux
How to Convert Home Directory to Partition in Linux
How to Check Remote Port is Open in Linux
How to Generate GRUB Password in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *