apt-get install 的bug

编译打包和其他
回复
AndyJ
帖子: 3
注册时间: 2008-10-28 22:16

apt-get install 的bug

#1

帖子 AndyJ » 2012-12-05 2:41

当我在terminal里用sudo apt-get install python- 的时候它居然删除了我N多应用程序的lib,导致我的ubuntu12.10直接不能用
头像
lainme
论坛版主
帖子: 7805
注册时间: 2008-09-13 19:17
系统: Arch Linux (x86_64)
联系:

Re: apt-get install 的bug

#2

帖子 lainme » 2012-12-08 20:06

代码: 全选

python-
的意思是删除……
If a hyphen is appended to the package name (with no intervening space), the identified package will be removed if it is in-
stalled. Similarly a plus sign can be used to designate a package to install.
换句话说,这是apt-get的一个特性,如果以"-"结尾就是删除,如果以"+"结尾就是安装。这样就可以在同一条命令里面执行多种类型的操作……
头像
qy117121
论坛版主
帖子: 50587
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: apt-get install 的bug

#3

帖子 qy117121 » 2012-12-08 20:31

lainme 写了:

代码: 全选

python-
的意思是删除……
If a hyphen is appended to the package name (with no intervening space), the identified package will be removed if it is in-
stalled. Similarly a plus sign can be used to designate a package to install.
换句话说,这是apt-get的一个特性,如果以"-"结尾就是删除,如果以"+"结尾就是安装。这样就可以在同一条命令里面执行多种类型的操作……
学习了
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 [email protected]
回复