我安装了“axel”来从互联网上下载东西。所以我想删除“wget”。但是当我使用命令执行相同操作时
#sudo apt-get remove wget
它还删除了 Google Chrome。为什么会发生这种情况?
rana@Brahma:~$ sudo apt-get remove wget
[sudo] password for rana:
Sorry, try again.
[sudo] password for rana:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfolks-telepathy25 libpurple0 telepathy-salut libfolks-eds25 gir1.2-ubuntuoneui-3.0 libindicate-gtk3 libnspr4-0d
telepathy-indicator nautilus-sendto-empathy libmission-control-plugins0 libfolks25 folks-common libnice10 libgssdp-1.0-3
telepathy-haze libubuntuoneui-3.0-1 libavahi-gobject0 libtelepathy-logger2 libtelepathy-farstream2 telepathy-mission-control-5
telepathy-logger telepathy-gabble gstreamer0.10-nice libgupnp-1.0-4 libpurple-bin libmeanwhile1 libzephyr4 libfarstream-0.1-0
libgupnp-igd-1.0-4 empathy-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
curl
The following packages will be REMOVED:
flashplugin-installer foomatic-db-engine google-chrome-stable hplip printer-driver-postscript-hp ubuntu-standard wget
The following NEW packages will be installed:
curl
0 upgraded, 1 newly installed, 7 to remove and 0 not upgraded.
Need to get 137 kB of archives.
After this operation, 161 MB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://archive.linux.duke.edu/ubuntu/ precise-updates/main curl i386 7.22.0-3ubuntu4.6 [137 kB]
Fetched 137 kB in 2s (54.1 kB/s)
(Reading database ... 216983 files and directories currently installed.)
Removing flashplugin-installer ...
Removing foomatic-db-engine ...
Removing google-chrome-stable ...
update-alternatives: using /usr/bin/firefox to provide /usr/bin/x-www-browser (x-www-browser) in auto mode.
update-alternatives: using /usr/bin/firefox to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode.
Removing printer-driver-postscript-hp ...
Removing hplip ...
Removing ubuntu-standard ...
Removing wget ...
Processing triggers for update-notifier-common ...
Processing triggers for cups ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for install-info ...
Selecting previously unselected package curl.
(Reading database ... 216722 files and directories currently installed.)
Unpacking curl (from .../curl_7.22.0-3ubuntu4.6_i386.deb) ...
Processing triggers for man-db ...
Setting up curl (7.22.0-3ubuntu4.6) ...
下面是输出aptitude why google-chorme-stable wget
:
rana@Brahma:~$ aptitude why google-chrome-stable wget
p google-chrome-stable Depends wget
答案1
嗯,原因很简单:
google-chrome-stable
依靠的wget
。如果没有安装 wget,Google Chrome 也将被卸载,因为 Chrome 没有 wget 就无法工作(显然)。
答案2
apt-cache depends google-chrome-stable
google-chrome-stable
PreDepends: dpkg
Depends: ca-certificates
Depends: fonts-liberation
Depends: libasound2
Depends: libatk-bridge2.0-0
Depends: libatk1.0-0
Depends: libatspi2.0-0
Depends: libc6
Depends: libcairo2
Depends: libcups2
|Depends: libcurl3-gnutls
|Depends: libcurl3-nss
|Depends: libcurl4
Depends: <libcurl3>
Depends: libdbus-1-3
Depends: libdrm2
Depends: libexpat1
Depends: libgbm1
Depends: libglib2.0-0
|Depends: libgtk-3-0
Depends: <libgtk-4-1>
Depends: libnspr4
Depends: libnss3
Depends: libpango-1.0-0
Depends: libwayland-client0
Depends: libx11-6
Depends: libxcb1
Depends: libxcomposite1
Depends: libxdamage1
Depends: libxext6
Depends: libxfixes3
Depends: libxkbcommon0
Depends: libxrandr2
Depends: wget
Depends: xdg-utils
Recommends: libu2f-udev
Recommends: libvulkan1
如果要删除/清除 wget,google-chrome-stable 也将会按预期被删除。