Here is the video version, if you prefer it:
Before we go into how to install packages and related operations, let’s first establish a rule, if you will: Always run
sudo apt-get update before doing any of the operations we will cover (besides removing a package).
Why is it so? Your operating system has a list of packages. Before installing any packages, it is a good idea to tell the operating system: “OK, operating system. Please check if there are more recent versions of packages available or if there are any new packages available.” (“What does ‘sudo apt-get update’ do?,” n.d.) You do so with
sudo apt-get update. You need superuser permissions to run this command, hence the
Again, remember to run this command before any other package manipulation related actions besides removing a package.
Hope you learned something useful!
What does “sudo apt-get update” do? (n.d.). Retrieved February 11, 2020, from https://askubuntu.com/questions/222348/what-does-sudo-apt-get-update-do
Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.