1
sudo apt -get update
E: Command line option 'g' [from -get] is not understood in combination with the other options.

sudo apt -get
E: Command line option 'g' [from -get] is not understood in combination with the other options.
2

1 Answer 1

4

You have a space between "apt" and "-get"; "apt-get" is the command you are trying to use. So:

apt-get update
apt-get upgrade
apt-get install apache2
apt-get remove apache2

etc etc..

Alternatively, you can use "apt" to manage packages. I use it in 16.04 and it has a few extras which make it my go to package manager over apt-get:

apt update
apt upgrade
apt install apache2
apt remove apache2

etc etc.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .