The apt commands have been introduced to solve this problem. apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features. I have successfully installed some packages using the command: sudo apt-get install packagename when I have known in advance that those packages are available.

Understanding the Context

But how can I search for or get a l... apt - How do I search for available packages from the command-line ... Use this: sudo apt update # Fetches the list of available updates sudo apt upgrade # Installs some updates; does not remove packages sudo apt full-upgrade # Installs updates; may also remove some packages, if needed sudo apt autoremove # Removes any old packages that are no longer needed Documentation about each apt option can be found in the the manpages for apt. These are also available by ...

Key Insights

apt - How to install updates via command line? - Ask Ubuntu No, apt is not a shortcut to apt-get; they are two separate programs, even if they are closely related. But several of the options provided by man apt-get do apply to apt as well, even if there are differences. For instance, apt upgrade and apt-get upgrade are similar but not identical. sudo gpg -a --export <PUBKEY> | sudo apt-key add - sudo apt-get update Note that when you import a key like this using apt-key you are telling the system that you trust the key you're importing to sign software your system will be using.

Final Thoughts

Do not do this unless you're sure the key is really the key of the package distributor. apt - How do I fix the GPG error "NO_PUBKEY"? - Ask Ubuntu