On Linux, you do not download an installer from a website.
You install a package: a program ready to install.Ubuntu keeps its packages on servers called repositories.
apt, the package manager, downloads a package and installs it on your server:
Figure 1 - apt Installs a Package from the Repository
Answer the question below
What do you call a program ready to install on Linux?
Your server keeps a list of the packages it can install.
To refresh this list, you useapt updatewithsudolike this:netops@automation:~$ sudo apt update ... Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease ... Reading package lists... Done ...
Figure 2 - apt update Refreshes the Package List
apt updateinstalls nothing.
You run it before you install a package, to get its latest version.In the lab, update the package list to get the flag.
Answer the question below
Enter the flag you obtained.
To install a package, you use
apt installwith the option-yand the name of the package like this:netops@automation:~$ sudo apt install -y tree ... The following NEW packages will be installed: tree ... Setting up tree (2.1.1-2ubuntu3.24.04.2) ...
Figure 3 - apt install -y Installs a Package
Without
-y,aptcan stop and ask you to confirm.In the lab, install the package
tracerouteto get the flag.Answer the question below
Enter the flag you obtained.
A package can need other packages to work, called its dependencies.
For example, the web servernginxneeds the packagenginx-common:
Figure 4 - apt Installs the Dependencies Too
When you install a package,
aptinstalls its dependencies too.Answer the question below
What do you call a package that another package needs?