This article explains how to restore the computer to its original state when you borrowed it from the library. Before you return the computer, you will have to follow these steps.
You may need to perform the system restoration even before the end of semester. This would happen if you played too much with sudo privileges and the computer cannot be controlled any more. Sometimes a fresh start is the only solution.
The computer needs to be booted from the USB stick instead from the damaged files on the hard disk. You need to have a USB stick with Ubuntu 22.04 installation.
This tutorial assumes that you have created a bootable USB stick in advance. The creation of a bootable USB stick was a part of the Homework 1.
You will see one of the following two screens
|Figure 1.1: Boot mode is set to: LEGACY; Secure Boot: OFF||Figure 1.2: Boot mode is set to: UEFI; Secure Boot: ON|
If you see the screen as in Figure 1.1, skip to step 5 (you are lucky).
If you see any other message in the top line, for example "Boot mode is set to: UEFI; Secure Boot: ON" like in Figure 1.2, you need to complete the steps 4.1-4.4. outlined below.
lsb_release -aYour installation is successful if you receive the following message
No LSB modules are available Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
exitto close the terminal window.