Debian

為什麼在我安裝 wine 時 apt-get 試圖刪除某些軟體包?

  • September 11, 2014

我正在嘗試安裝 wine,它是用於執行 Windows 應用程序的軟體。當我這樣做時sudo apt-get install wine,apt-get 會警告我一些軟體包正在被刪除。

  1. 為什麼 apt-get 會刪除任何軟體包來安裝軟體包?
  2. 我覺得這很有趣,因為它想要刪除的許多軟體包都是 libreoffice 軟體包,據說它會與 Windows 生產力軟體(我不打算安裝)競爭。這是原因嗎?葡萄酒會做那種討厭的事情嗎?

這是執行的輸出apt-get install wine

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
 bind9-doc libasound2:i386 libglu1-mesa:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common chromium cups cups-bsd cups-client dbus dovecot-core dovecot-imapd dovecot-pop3d
 libasound2:i386 libavformat53 libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1 libcupsppdc1 libdbus-1-3 libdbus-1-3:i386 libfontconfig1:i386
 libfreetype6:i386 libgadu3 libgcrypt11:i386 libglu1-mesa:i386 libgnutls26 libgnutls26:i386 libgpg-error0:i386 libgpm2:i386 libgsm1:i386 libice6:i386
 libjbig0:i386 libjpeg-progs libjpeg8 libjpeg8:i386 libltdl7:i386 liblzma5:i386 libmpg123-0:i386 libncurses5:i386 libodbc1:i386 libp11-kit0:i386
 libpng12-0:i386 libsm6:i386 libssl1.0.0 libssl1.0.0:i386 libtasn1-3:i386 libtiff4:i386 libtinfo5:i386 libuuid1:i386 libwine:i386 libwine-bin:i386
 libwine-gecko-1.4 libxcomposite1:i386 libxcursor1:i386 libxi6:i386 libxml2:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 openssh-client
 openssh-server openssl uuid-runtime wine-bin:i386
Suggested packages:
 apache2-suexec apache2-suexec-custom chromium-l10n cups-pdf xpp dovecot-gssapi dovecot-sieve dovecot-pgsql dovecot-mysql dovecot-sqlite dovecot-ldap
 dovecot-lmtpd dovecot-managesieved dovecot-solr libasound2-plugins:i386 rng-tools:i386 gpm:i386 libmyodbc:i386 odbc-postgresql:i386 tdsodbc:i386
 unixodbc-bin:i386 wine-doc:i386 libwine-cms:i386 libwine-sane:i386 libwine-ldap:i386 libwine-print:i386 libwine-openal:i386 libwine-gphoto2:i386
 ssh-askpass libpam-ssh keychain monkeysphere rssh molly-guard ufw
Recommended packages:
 uuid-runtime:i386 libv4l-0:i386 ttf-liberation:i386 libwine-gl:i386 libwine-alsa:i386 libwine-oss:i386 xml-core:i386
The following packages will be REMOVED:
 bind9 bind9utils cheese dlint dnsutils empathy gnome gnome-control-center gnome-core gnome-nettool gnome-video-effects gstreamer0.10-plugins-bad
 kde-standard kmail libcheese-gtk21 libcheese3 libfarstream-0.1-0 libpurple-bin libpurple0 libreoffice libreoffice-base libreoffice-base-core
 libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge libreoffice-evolution libreoffice-filter-binfilter
 libreoffice-filter-mobiledev libreoffice-gnome libreoffice-gtk libreoffice-help-en-us libreoffice-impress libreoffice-java-common libreoffice-math
 libreoffice-report-builder-bin libreoffice-style-galaxy libreoffice-style-tango libreoffice-writer libtelepathy-farstream2 lwresd mythes-en-us
 nautilus-sendto-empathy python-uno task-dns-server task-gnome-desktop telepathy-haze unoconv
The following NEW packages will be installed:
 libasound2:i386 libdbus-1-3:i386 libfontconfig1:i386 libfreetype6:i386 libgcrypt11:i386 libglu1-mesa:i386 libgnutls26:i386 libgpg-error0:i386 libgpm2:i386
 libgsm1:i386 libice6:i386 libjbig0:i386 libjpeg8:i386 libltdl7:i386 liblzma5:i386 libmpg123-0:i386 libncurses5:i386 libodbc1:i386 libp11-kit0:i386
 libpng12-0:i386 libsm6:i386 libssl1.0.0:i386 libtasn1-3:i386 libtiff4:i386 libtinfo5:i386 libuuid1:i386 libwine:i386 libwine-bin:i386 libwine-gecko-1.4
 libxcomposite1:i386 libxcursor1:i386 libxi6:i386 libxml2:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 uuid-runtime wine wine-bin:i386
The following packages will be upgraded:
 apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common chromium cups cups-bsd cups-client dbus dovecot-core dovecot-imapd dovecot-pop3d
 libavformat53 libcups2 libcupscgi1 libcupsdriver1 libcupsimage2 libcupsmime1 libcupsppdc1 libdbus-1-3 libgadu3 libgnutls26 libjpeg-progs libjpeg8
 libssl1.0.0 openssh-client openssh-server openssl
29 upgraded, 39 newly installed, 49 to remove and 57 not upgraded.
Need to get 121 MB of archives.
After this operation, 294 MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.

通常 apt-get 會更喜歡刪除幾十個包,而不是只更新幾個其他包。

我通常以互動模式執行 aptitude,使用 + 選擇我要安裝的包,然後檢查此操作可能會破壞哪些其他包(使用 ‘b’ 鍵跳轉到下一個“損壞的”包。通常只是更新那些(再次使用 +) 將輕鬆解決問題。當一切都解決後,點擊“g”表示“去做吧”。它將顯示將要發生的事情的摘要(通過完整列表翻頁,顏色編碼以提供幫助),然後在滿意時再次按“g”。

引用自:https://unix.stackexchange.com/questions/154977