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.
发布于 2017-04-13 12:55:00
在"apt“和”-get“之间有一个空格;"apt-get”是您试图使用的命令。所以:
apt-get update
apt-get upgrade
apt-get install apache2
apt-get remove apache2
等等等等。
或者,您可以使用"apt“来管理包。我在16.04中使用它,它有一些额外的功能,这使得它成为了我在apt-get上的包管理器:
apt update
apt upgrade
apt install apache2
apt remove apache2
等。
https://askubuntu.com/questions/904311
复制相似问题