The latest version of Ubuntu 20.04 has been launched on 23 April 2020. If you are still using the old version please dist upgrade now.
Ubuntu is the modern, open source operating system on Linux for the enterprise server, desktop, cloud, and IoT. Intalling Security Updates on Ubuntu. If your system has the update-notifier-common package installed, Ubuntu will alert you about pending updates via the message of the day (motd) upon console or remote login. Once you have logged into your Ubuntu system, you can check for new updates using the following apt command. $ sudo apt update. Introducing the Ubuntu Desktop for Raspberry Pi, the latest desktop features and micro clouds. Get Ubuntu 20.10. Learn more about Ubuntu on the Raspberry Pi › CentOS users, 6 things to know when considering a migration to Ubuntu LTS ›.
A Long year back, I started to use Ubuntu version 6.04. It was really hard to update ubuntu.
Slowly -2 latest versions were launched in the market one by one with new features. And Today Ubuntu has version 20.04 LTS with very attractive features. So Updating Ubuntu and its software become very easy and simple.
You can update ubuntu by command line as well as using a GUI interface. This really makes users happy and satisfied. I will cover this topic of how to ubuntu update and dist upgrade process work. what is the difference between ubuntu update and ubuntu dist upgrade?
You must check the current version of ubuntu before moving to the next step. If you know the current version then it will be better to update Ubuntu in the latest version.
Article Content
Check Ubuntu Version Installed
Ubuntu is one of the most popular Linux operating systems. You can check the popularity-wise best Linux distro.
If you have installed Linux and using continuously but didn’t remember installed Ubuntu version on the system. you can check by running following command
$lsb_release -a
You can in the above result, I am running Ubuntu version 19.04. If you didn’t find the version after using lsb_release -a command then you can check my another article where 5 ways described to check Ubuntu version installed.
Check the configuration of Ubuntu Repository
The repository is a software center where ubuntu software is maintained by the administration team and developers. Sever location may exist different -2 location worldwide.
Every repository server has its location address.
Ubuntu uses the apt package manager to install, update, upgrade and remove packages. Apt stores a list of repositories or software channels in the file.
File Location and Name: /etc/apt/sources.list
and in any file with the suffix .list under the directory
/etc/apt/sources.list.d/
Read more about Ubuntu repository
Update Ubuntu
When you have completed adding repositories in sources.list file, your next step to update headers of the repository list.
You can run the following commands to update information about available software version stored in the repository
You can run the following commands to update Ubuntu.
$sudo apt-get udpate
or
$sudo apt update
or
$sudo apt update
You can see the result following:
Keep in Mind: apt-get update command will not upgrade ubuntu or Softwares
When you run apt update or apt-get update command, Both commands will not update a single tool or software. Neither ubuntu will be updated nor software.
If you want to update software you must run apt-get upgrade command.
Ubuntu dist upgrade
When we talk about the update it means we want to our Ubuntu OS and its software up to date.
You can upgrade/update software by using apt-get or apt command followed by upgrade switch. before running the apt-get command make sure you should be root user or sudo user.
$sudo apt-get upgrade
Ubuntu has made off with two sub-systems one is core system and another is a software system.
All the software will be updated in the newer version when you will run the apt-get upgrade command.
But the core system will not be updated with apt-get update command You must run the following command to update the core system as well as a software system.
Update ubuntu by using GUI
Mostly user like a graphical interface, why so ubuntu comes with better graphical interface nowadays. You will become a garden when you hear that ubuntu update possible by using GUI
And Yes, this is pretty easy to update ubuntu by GUI
Step 1: Open Software update
It will check automatically for available updates for the core system and software system
Step 2: Click on the install now to start installation process
Step 3: give the current user password and click Authenticate to continue process
Conclusion
By now you have learned how to update ubuntu. ubuntu dist upgrade for updating core system and upgrade for updating software system only. If you don’t like command line you can use GUI to update ubuntu.
Thanks for Reading
Cheers!
If Appreciate My Work, You should consider:
- Join Group for Discussion Facebook Group
- Get your own self-hosted blog with a Free Domain at ($2.96/month)
- Buy a Coffee to Us! Make Small Contribution by Paypal
- Support us by taking our :Online Courses
- Contact me :[email protected]
Java is one of the most well-known programming languages for building different kinds of applications such as Jenkins, Tomcat server, IntelliJ IDEA, and many other system software.
This tutorial will show you the way to install various versions of Java, Java Runtime Environment (JRE) and Java Development Kit (JDK) on Ubuntu 20.04 LTS machine.
Install default java
The simplest way to install Java on your Ubuntu 20.04 is using the default version come along with Ubuntu operating system.
Firstly, let's update the software repository by running the following command:
Next, it's recommended that you should check whether Java is installed or not? Run the command:
The following output indicates that Java has not installed on your Ubuntu 20.04:
Download The Latest Ubuntu
Now, you can install the default JRE by executing the following command:
After the installation has completed, let's verify the Java version:
If you want to compile and run the Java applications, you need a program called 'javac' and it comes with JDK (Java Development Kit). To install default JDK, let's run the following command:
You can verify the JDK installation by checking the version of the Java compiler:
Install OpenJDK 11
![Laptop Laptop](https://getintopc.com/wp-content/uploads/2014/12/Ubuntu-10.04-Latest-Version-Download.jpeg)
At the time of this writing, Java 11 is the latest LTS version. It is the default development and runtime environment of Java on Ubuntu 20.04.
To install OpenJDK 11, run the following command:
Checking the java version:
Output:
Install OpenJDK 8
In some cases, your applications require the previous version of Java in order to be run. For example, if you want to install Java version 8 on Ubuntu 20.04, run the following command:
Verifying the java version by typing command 'java -version'.
Output:
Install Oracle Java 11
Unlike the OpenJDK, Oracle JDK is not released under License GPL v2 but Oracle Binary Code License Agreement. By default, the Oracle JDK can not be installed via package managers. You have to download the Oracle JDK 11 installer on Oracle website:
Choose the Linux Compressed Archive, then click Download:
You will be redirected to the login screen of Oracle website. You have to create an account to download Oracle JDK Installer.
After the Java installer has been downloaded (jdk-11.0.8_linux-x64_bin.tar.gz), let's install the 'add-apt-repository' command:
Ubuntu 20.10 Release Date
Then, importing the signing key for verifying the software installation on your Ubuntu 20.04:
The Latest Ubuntu Os
Adding the Java repository to the packages sources list and update:
Creating the local directory for the downloaded Oracle JDK installer:
Now, you can install the Oracle JDK 11 by running the following command:
Let's accept the Oracle Technology Network License Agreement for Oracle Java SE to finish the installation:
Manage multiple Java installations
So far, you've installed several versions of Java on your Ubuntu 20.04. It's necessary to configure the default Java version used by the operating system. You can do it by running the command:
Enter your desired choice then press Enter to choose your preferred Java version.
In order to configure the default Java compiler version (javac), let's run:
Set Environment Variable
In many cases, when the developers built their Java programs, they have to specify the $JAVA_HOME environment variable.
In order to set the $JAVA_HOME variable, you need to locate the installation directory of Java by using the 'update-alternatives' command.
For example, the Oracle Java is located in '/usr/lib/jvm/java-11-oracle/bin/'.
Add the path to '/etc/environment' file
Reload the environment file for applying the change:
Verify the $JAVA_HOME environment:
Conclusion
In this tutorial, we learned how to install and configure Java on Ubuntu 20.04. Java is crucial for a number of software applications.
Thanks for reading and please leave your suggestion in the below comment section.