If you are a computer enthusiast, you may have worked with different operating systems. For this operating system, it makes sense to use the latest version for several reasons. First of all, the latest version contains the latest software updates that protect you against possible errors. Secondly, newer versions are generally safer than older ones. In this article we will show you how to update Ubuntu from a Linux terminal. Attention: we use Ubuntu 20.04 LTS in this article.
You must first search for the Ubuntu terminal in the action search menu. Then run it by clicking on it as shown in the figure below:
When you click on a selected search result, your Ubuntu terminal will open immediately, as shown in the following image.
Once the terminal is started, you will need to update the system to repair all dependencies and disconnections so that the system can be easily updated. You can update your Ubuntu system by running $ sudo apt-get update.
Any operation that involves updating and upgrading the operating system requires root privileges. Therefore, the keyword sudo must be used for these commands. Once your Ubuntu system has finished updating all packets, your terminal will display the following output:
.
After upgrading the system, you can upgrade the system by executing the $ sudo apt-get upgrade command.
When you execute this command, confirm that you want to check the process by typing Y into your device when prompted, as shown in the following figure.
You must be patient after executing this command, because it takes a long time to execute. For us the update took about 60 minutes with a moderate internet connection. When the upgrade is complete, your system will display the following output:
.
To make your system more efficient, you must now execute the following upgrade command in your terminal: $ sudo apt-get upgrade. This command not only updates packets that need to be updated, but also removes packets that are no longer needed by the system.
Since this command may attempt to delete installed or recently updated packets, your terminal will ask you to accept this procedure as described above.
After processing the updated packages, the Ubuntu terminal will display the following:
Now restart the system so that all changes take effect. To reboot the system from the terminal, execute the $ sudo reboot command.
When you restart the Ubuntu system, you will see the following screen:
You will then be prompted to log into your user account, which you can do by clicking on the desired user account and entering the password.
At this moment all formalities for updating the Ubuntu system via the terminal have been completed. However, before executing the release upgrade command, you must read the help pages for that command. To access the help pages, execute the following command in the Ubuntu terminal: $ sudo do-release-upgrade -help.
This command displays the syntax of the specified command and all the variations and parameters with which the command can be used, as shown in the following figure:
As shown in the figure above, the do-release upgrade command with the -d flag can be used to upgrade the system from support to the latest development version.
In our case, since we have already used the latest version of Ubuntu, namely Ubuntu 20.04 LTS, the system will tell us through the terminal that there is no more recent version, as can be seen in the following picture However, if you are using an older version of Ubuntu, executing this command will update your operating system with the latest available version.
After successful execution of this command, you can check if your Ubuntu system has been updated by running $ lsb_release -a
When you execute this command, you will see the version of your Ubuntu system on the terminal. If this is the latest Ubuntu version 20.04, then your Ubuntu system has been successfully updated.
Conclusion
If you follow the instructions in this article, you can update your Ubuntu system with the latest available version. This procedure is simple, but requires patience, as the whole process takes about two hours.
Related Tags:
upgrade ubuntu 12 to 18 command line,sudo do-release-upgrade -d,ubuntu update command line,inhibiting until ctrl+c is pressed,upgrade ubuntu 18.04 to 19.04 command line,upgrade ubuntu 14.04 to 18.04 command line,update ubuntu 18.04 command line,update ubuntu command line,ubuntu update-manager,kali linux update command,upgrade ubuntu 16.04 to 18.04 command line,sudo apt-get update && sudo apt-get upgrade,upgrade ubuntu command line,upgrade ubuntu packages,do-release-upgrade command not found,upgrade ubuntu 14.04 to 16.04 command line,upgrade ubuntu18,how to upgrade to ubuntu 1804,ubuntu upgrade to specific version,ubuntu 18.04 to 19.10 upgrade failed,ubuntu 19.10 force update,upgrade to ermine,how to update to eoan ermine,upgrade ubuntu 19.04 to 19.10 command line,ubuntu lts to normal,how to upgrade lubuntu,how to update ubuntu 16.04 from terminal,ubuntu update drivers command line,upgrade ubuntu 18.04 to 20.04 command line,ubuntu distribution upgrade command line,how to upgrade linux,linux and ubuntu