0
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.
3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.