Lubuntu : update and upgrade in the terminal
In this article I will show you how to update packages under Lubuntu (light version of Ubuntu). That means how to update packages and upgrade them to the latest version. This is necessary if you want to perform new installations, for example.
What is needed
- Linux e.g. in a VirtualBox: Lubuntu 18 oder Lubuntu 19
- Linux knowledge: Log in Lubuntu/Ubuntu in the terminal as root
Update / upgrade packages in the terminal
To update and upgrade the packages, first open the terminal and log in as root (administrator). If you don't know how, here are instructions: In the terminal as root
If you are now logged in as root in the terminal, enter these two commands one after the other in the terminal. This will update the packages.
$ sudo apt-get update
$ sudo apt-get upgrade
If necessary, the upgrade process must be confirmed with the [Y] key. The capital letter means that you select it with Enter, so you can then simply press Enter to accept.
The result should look like this:
The packages should now have been updated successfully.
Mögliche Fehlermeldungen
In some cases, the upgrade command cannot be performed. The following message may appear.
E: Could not get lock /va/lib/apt/lists/lock. It is held by process 1186 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to lock directory /var/lib/apt/lists/
In this case, the process is running in the background and is therefore blocked. Solution: Wait a while or restart the PC and then try again.