我不小心按了Enter而不是Tab在命令行中输入此行:
sudo apt-get install gstreamer0.10-
我尝试使用自动完成Tab,结果Enter却卸载了很多东西,这是 apt-get 命令安装选项的标准行为吗?有人能解释一下发生了什么吗?我没有收到任何警告或确认,请参阅下面的卸载。
$ sudo apt-get install gstreamer0.10-
Reading package lists... 0%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
Note, selecting 'gstreamer0.10-lame' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-ugly-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-base-apps' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-esd' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-bad-multiverse-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-dvswitch' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-good' for regex 'gstreamer0.10'
Note, selecting 'libgstreamer0.10-dev' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-schroedinger' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-really-bad' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-cutter' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-gnonlin-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-farsight' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-pocketsphinx' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-alsa' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-gnomevfs' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-ugly-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-audiosource' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-xvid' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-bad' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-tools' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-bad-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-good-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-pulseaudio' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-qapt' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-bad-multiverse' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-fluendo-mp3' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-base' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-chromaprint' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-x' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-gnonlin' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-ugly-multiverse' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-gconf' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-videosource' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-bad-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-good-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-audiosink' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-base-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-videosink' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-x264' for regex 'gstreamer0.10'
Note, selecting 'libgstreamer0.10-0-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-visualization' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-packagekit' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-ffmpeg' for regex 'gstreamer0.10'
Note, selecting 'libgstreamer0.10-0' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-base-doc' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-gnonlin-dbg' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-plugins-ugly' for regex 'gstreamer0.10'
Note, selecting 'gstreamer0.10-nice' for regex 'gstreamer0.10'
Package 'gstreamer0.10-plugins-really-bad' is not installed, so not removed
Package 'gstreamer0.10-plugins-ugly-multiverse' is not installed, so not removed
Package 'gstreamer0.10-ffmpeg' is not installed, so not removed
Note, selecting 'gstreamer0.10-plugins-bad' instead of 'gstreamer0.10-plugins-farsight'
Note, selecting 'gstreamer0.10-plugins-bad' instead of 'gstreamer0.10-schroedinger'
Package 'gstreamer0.10-xvid' is not installed, so not removed
Package 'gstreamer0.10-lame' is not installed, so not removed
Package 'gstreamer0.10-x264' is not installed, so not removed
Package 'gstreamer0.10-packagekit' is not installed, so not removed
Package 'gstreamer0.10-plugins' is not installed, so not removed
Package 'gstreamer0.10-doc' is not installed, so not removed
Package 'gstreamer0.10-gconf' is not installed, so not removed
Package 'gstreamer0.10-nice' is not installed, so not removed
Package 'gstreamer0.10-plugins-base-dbg' is not installed, so not removed
Package 'gstreamer0.10-plugins-base-doc' is not installed, so not removed
Package 'gstreamer0.10-plugins-good-dbg' is not installed, so not removed
Package 'gstreamer0.10-plugins-good-doc' is not installed, so not removed
Package 'gstreamer0.10-pulseaudio' is not installed, so not removed
Package 'libgstreamer0.10-0-dbg' is not installed, so not removed
Package 'libgstreamer0.10-dev' is not installed, so not removed
Package 'gstreamer0.10-chromaprint' is not installed, so not removed
Package 'gstreamer0.10-dvswitch' is not installed, so not removed
Package 'gstreamer0.10-fluendo-mp3' is not installed, so not removed
Package 'gstreamer0.10-gnonlin' is not installed, so not removed
Package 'gstreamer0.10-gnonlin-dbg' is not installed, so not removed
Package 'gstreamer0.10-gnonlin-doc' is not installed, so not removed
Package 'gstreamer0.10-plugins-bad' is not installed, so not removed
Package 'gstreamer0.10-plugins-bad-dbg' is not installed, so not removed
Package 'gstreamer0.10-plugins-bad-doc' is not installed, so not removed
Package 'gstreamer0.10-plugins-base-apps' is not installed, so not removed
Package 'gstreamer0.10-plugins-cutter' is not installed, so not removed
Package 'gstreamer0.10-plugins-ugly-dbg' is not installed, so not removed
Package 'gstreamer0.10-plugins-ugly-doc' is not installed, so not removed
Package 'gstreamer0.10-pocketsphinx' is not installed, so not removed
Package 'gstreamer0.10-qapt' is not installed, so not removed
Package 'gstreamer0.10-plugins-bad-multiverse' is not installed, so not removed
Package 'gstreamer0.10-plugins-bad-multiverse-dbg' is not installed, so not removed
Package 'gstreamer0.10-esd' is not installed, so not removed
The following packages will be REMOVED:
clementine gstreamer-tools gstreamer0.10-alsa gstreamer0.10-gnomevfs
gstreamer0.10-plugins-base gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly gstreamer0.10-tools gstreamer0.10-x iptux
libgstreamer-plugins-base0.10-0 libgstreamer0.10-0
0 upgraded, 0 newly installed, 12 to remove and 0 not upgraded.
After this operation, 36.3 MB disk space will be freed.
(Reading database ... 221799 files and directories currently installed.)
Removing clementine (1.2.3+dfsg-4) ...
Removing gstreamer-tools (0.10.36-1.5ubuntu1) ...
Removing gstreamer0.10-alsa:amd64 (0.10.36-2) ...
Removing gstreamer0.10-gnomevfs:amd64 (0.10.36-2) ...
Removing gstreamer0.10-plugins-good:amd64 (0.10.31-3+nmu4ubuntu2~gcc5.1) ...
Removing gstreamer0.10-plugins-base:amd64 (0.10.36-2) ...
Removing gstreamer0.10-plugins-ugly:amd64 (0.10.19-2.1ubuntu3) ...
Removing gstreamer0.10-tools (0.10.36-1.5ubuntu1) ...
Removing gstreamer0.10-x:amd64 (0.10.36-2) ...
Removing iptux (0.6.1-1) ...
Removing libgstreamer-plugins-base0.10-0:amd64 (0.10.36-2) ...
Removing libgstreamer0.10-0:amd64 (0.10.36-1.5ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
答案1
apt-get install gstreamer0.10-
相当于
apt-get remove gstreamer0.10
软件包名称末尾的-
指示 apt-get 删除该软件包而不是安装它。摘自 apt-get 的手册页:
安装软件包
(...) 如果在软件包名称后附加连字符 (-)(中间没有空格),则将删除所标识的软件包(如果该软件包当前已安装)。同样,可以使用加号 (+) 来指定要安装的软件包。后面这些功能可用于覆盖 apt-get 冲突解决系统做出的决定。