为什么当我安装 wine 时 apt-get 试图删除某些软件包?

为什么当我安装 wine 时 apt-get 试图删除某些软件包?

我正在尝试安装 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.

答案1

通常 apt-get 更愿意删除数十个软件包,而不是只更新几个其他软件包。

我通常在交互模式下运行 aptitude,使用 + 选择我想要安装的软件包,然后检查此操作可能会破坏哪些其他软件包(使用“b”键跳转到下一个“损坏”的软件包。通常只是更新那些(再次使用+)将轻松解决问题。当一切都解决后,点击“g”表示“开始吧”,它将显示将要发生的情况的摘要(翻阅完整列表,它是用颜色编码的以提供帮助)。 )然后满意后再次点击“g”。

相关内容