我注意到,当我试图在Xubuntu12.04中安装rhythmbox时,它似乎依赖于gnome桌面和nautilus,这两者我都不想要。
sudo apt-get install rhythmbox
[sudo] password for mark:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-peas-1.0
gir1.2-rb-3.0 gnome-desktop3-data libdiscid0 libdmapsharing-3.0-2 libexempi3
libgnome-desktop-3-2 libmusicbrainz3-6 libpeas-1.0-0 libpeas-common
librhythmbox-core5 nautilus nautilus-sendto python-mako python-markupsafe
rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder
rhythmbox-plugin-zeitgeist rhythmbox-plugins
Suggested packages:
eog gnome-sushi pidgin gajim python-beaker python-mako-doc
gnome-control-center
The following NEW packages will be installed
gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-peas-1.0
gir1.2-rb-3.0 gnome-desktop3-data libdiscid0 libdmapsharing-3.0-2 libexempi3
libgnome-desktop-3-2 libmusicbrainz3-6 libpeas-1.0-0 libpeas-common
librhythmbox-core5 nautilus nautilus-sendto python-mako python-markupsafe
rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder
rhythmbox-plugin-zeitgeist rhythmbox-plugins
0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,688 kB of archives.
After this operation, 15.0 MB of additional disk space will be used.发布于 2012-05-19 22:59:24
您不必安装所有推荐的软件包--正是这些额外的软件包具有gnome & nautilus依赖关系。
下面模拟Xubuntu12.04N.B上的安装。-s是模拟参数。
sudo apt-get -s --no-install-recommends install rhythmbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-rb-3.0 libdiscid0 libgmime-2.6-0 libmusicbrainz3-6 libneon27-gnutls libpeas-1.0-0 libpeas-common
libquvi-scripts libquvi7 librhythmbox-core5 libtotem-plparser17 media-player-info rhythmbox-data
Suggested packages:
gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gnome-control-center
Recommended packages:
rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-zeitgeist rhythmbox-plugins
The following NEW packages will be installed
gir1.2-gst-plugins-base-0.10 gir1.2-gstreamer-0.10 gir1.2-rb-3.0 libdiscid0 libgmime-2.6-0 libmusicbrainz3-6 libneon27-gnutls libpeas-1.0-0 libpeas-common
libquvi-scripts libquvi7 librhythmbox-core5 libtotem-plparser17 media-player-info rhythmbox rhythmbox-data正如您在上面看到的,使用--no-install-recommends作为参数删除推荐的包将删除gnome & nautilus包。
因此-安装rhythmbox及其插件,减去gnome & nautilus:
sudo apt-get --no-install-recommends install rhythmbox rhythmbox-plugins发布于 2012-05-19 22:05:51
简单地说,您可以安装RhythmBox,而不需要上面那些依赖项-see @fossfreedom的答案,但这是一种有点迂回的方式。
好消息是,libgnome-desktop不是gnome-desktop,也不会将XFCE/Xubuntu更改为常规Ubuntu。至于nautilus,它可能用于Rhythmbox的某些功能(可能与文件管理相关);它不会取代Thunar作为默认的文件管理器,尽管如果您出于某种原因想运行Nautilus,您可能会这样做。
Ubuntu上的apt-get默认设置为安装推荐的软件包。这种行为似乎是从Debian 5 ( Lenny )开始的--在Ubuntu中是一样的;在Debian之前,它是被禁用的。有些开发人员在可能不需要时会滥用或随意设置推荐,但这可能是默认的原因。
您可以通过运行以下命令来检查它的状态:
sudo apt-config dump | grep Recommends
如果它返回APT::Install-Recommends "1"; (或真),则将您的建议设置为安装建议。
您可以通过安装Synaptic、转到Edit...Preferences并取消检查“将推荐的包视为依赖项”来图形化地更改此值。但是,如果您已经阅读了这么多,那么只将APT::Install-Recommends "0";放在/etc/apt/apt.conf中就更容易了;)
最好的选择是逐案处理,正如@fossfreedom的答案所示。
https://askubuntu.com/questions/139551
复制相似问题