How to

How to force Ubuntu update and upgrade all system package by command

How to force Ubuntu update and upgrade all system package by command





The normal when you run the command #sudo apt-get update && sudo apt-get upgrade. There will be some packages that can’t upgrade the last version. So Ubuntu doesn’t get the latest version of the program package system.

The solution for force upgrade package Ubuntu system, you just following and command terminal on the below.

$ sudo apt-get update && sudo apt-get dist-upgrade

command force update and upgrade all ubuntu system package
command force update and upgrade all ubuntu system package
root@twelveshow:~# sudo apt-get update && sudo apt-get dist-upgrade
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 4s (71.8 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  gstreamer1.0-gtk3 libbrotli1 libllvm8 libwayland-egl1 libwoff1 linux-headers-4.15.0-64 linux-headers-4.15.0-64-generic linux-image-4.15.0-64-generic linux-modules-4.15.0-64-generic linux-modules-extra-4.15.0-64-generic
  python3-dateutil python3-netifaces xdg-desktop-portal xdg-desktop-portal-gtk
The following packages will be upgraded:
  gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gstreamer1.0-gl libcogl20 libgail-3-0 libgl1-mesa-dri libgstreamer-gl1.0-0 libgtk-3-0 libgtk-3-bin libjavascriptcoregtk-4.0-18 libreoffice-avmedia-backend-gstreamer
  libreoffice-base-core libreoffice-calc libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-writer libwayland-egl1-mesa libwebkit2gtk-4.0-37
  libxatracker2 linux-generic linux-headers-generic linux-image-generic netplan.io python3-software-properties python3-uno software-properties-common software-properties-gtk ubuntu-desktop
33 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.4 MB/161 MB of archives.
After this operation, 433 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Before running commands force upgrade

root@twelveshow:~# apt-get update && apt-get upgrade
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 3s (79.7 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gstreamer1.0-gl libcogl20 libgail-3-0 libgl1-mesa-dri libgstreamer-gl1.0-0 libgtk-3-0 libgtk-3-bin libjavascriptcoregtk-4.0-18 libreoffice-avmedia-backend-gstreamer
  libreoffice-base-core libreoffice-calc libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-writer libwayland-egl1-mesa libwebkit2gtk-4.0-37
  libxatracker2 linux-generic linux-headers-generic linux-image-generic netplan.io python3-software-properties python3-uno software-properties-common software-properties-gtk ubuntu-desktop
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
root@twelveshow:~#

CONCLUSION

This is what you get all package Ubuntu last version and for to get upgrade the new version of package Ubuntu, Example: Befoe using Ubuntu 14 when you run command upgrade all package finish you will get the last version of Ubuntu LTS.

Most Popular

To Top