分页: 1 / 1

apt-get install 的bug

发表于 : 2012-12-05 2:41
AndyJ
当我在terminal里用sudo apt-get install python- 的时候它居然删除了我N多应用程序的lib,导致我的ubuntu12.10直接不能用

Re: apt-get install 的bug

发表于 : 2012-12-08 20:06
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的一个特性,如果以"-"结尾就是删除,如果以"+"结尾就是安装。这样就可以在同一条命令里面执行多种类型的操作……

Re: apt-get install 的bug

发表于 : 2012-12-08 20:31
qy117121
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的一个特性,如果以"-"结尾就是删除,如果以"+"结尾就是安装。这样就可以在同一条命令里面执行多种类型的操作……
学习了