How to Update Ubuntu Linux

24/10/2021

Method 1: Update Ubuntu via the Command Line

How to Update Ubuntu

First, open the terminal in Ubuntu desktop. You can find it in the menu, or use the Ctrl+Alt+T keyboard shortcut. If you are logged on to an Ubuntu server, you already have access to a terminal.

In the terminal, you just have to use the following command:

sudo apt update && sudo apt upgrade -y

It will ask for a password. You can use your account’s password. You won’t see characters on the screen while typing password in the terminal, so keep on typing your password and hit enter. This will update the packages in Ubuntu.

See, how easy it is to update Ubuntu from terminal? Now let me explain the above command.

It’s actually not a single command, it’s a combination of two commands. The && is a way to run multiple commands in Linux in a way such that the second command runs only when the previous command ran successfully.

The “-y” in the end automatically enters “yes” when the command “apt upgrade” ask for your confirmation before installing updates.

Note that you can also use the two commands separately, one by one:

sudo apt update
sudo apt upgrade

It will take a little longer, because you have to wait for one command to finish and then enter the second command.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Get List of Installed packages on Ubuntu 20.10

Ubuntu is a Linux based distribution that comes with many packages installed. Packages are a collection of files that require...
28/12/2020

How to install Zoom in Ubuntu

Online communication is becoming easier day by day. Now, the online users not only can send or receive messages instantly...
29/12/2020

How to install Ring on Ubuntu, Fedora – Skype Alternative

In this post, I will be showing you how to install Ring on Ubuntu 17.04 and below. Ring is a free and universal communication...
12/02/2020
Bài Viết

Bài Viết Mới Cập Nhật

Lý do tại sao bạn nên sử dụng proxy khi truy cập web đen
27/02/2023

Các lỗi thường gặp khi sử dụng proxy và cách khắc phục chúng.
27/02/2023

Tác động của việc sử dụng proxy đến tốc độ kết nối internet của bạn.
27/02/2023

Các tiện ích và công cụ để quản lý proxy.
27/02/2023

Các cách để kiểm tra tốc độ và độ ổn định của proxy.
27/02/2023