首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法执行sudo apt -get,如何解决?

无法执行sudo apt -get,如何解决?
EN

Ask Ubuntu用户
提问于 2017-04-13 12:46:46
回答 1查看 17.1K关注 0票数 1
代码语言:javascript
运行
复制
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.
EN

回答 1

Ask Ubuntu用户

发布于 2017-04-13 12:55:00

在"apt“和”-get“之间有一个空格;"apt-get”是您试图使用的命令。所以:

代码语言:javascript
运行
复制
apt-get update
apt-get upgrade
apt-get install apache2
apt-get remove apache2

等等等等。

或者,您可以使用"apt“来管理包。我在16.04中使用它,它有一些额外的功能,这使得它成为了我在apt-get上的包管理器:

代码语言:javascript
运行
复制
apt update
apt upgrade
apt install apache2
apt remove apache2

等。

票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/904311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档