我运行了以下代码并得到这个包需要这些包,现在它还说这些包是建议的,推荐这些包。我如何让它们也安装起来。
myusuf3@purple:/etc$ sudo apt-get install virtualbox-4.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acroread ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libaudio2
libc6-i386 libcurl3 libflac8 libhal1 liblcms1 libmng1 libogg0 libpulse0 libqt4-dbus libqt4-network libqt4-opengl
libqt4-xml libqtcore4 libqtgui4 libsdl-ttf2.0-0 libsdl1.2debian libsdl1.2debian-alsa libsndfile1 libv4l-0
libvorbis0a libvorbisenc2 libx11-xcb1 nspluginwrapper
Suggested packages:
libldap2 libgnome-speech7 lib32asound2-plugins nas liblcms-utils pulseaudio qt4-qtconfig
Recommended packages:
pdf-viewer
The following NEW packages will be installed:
acroread ia32-libs lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32v4l-0 lib32z1 libaudio2
libc6-i386 libcurl3 libflac8 libhal1 liblcms1 libmng1 libogg0 libpulse0 libqt4-dbus libqt4-network libqt4-opengl
libqt4-xml libqtcore4 libqtgui4 libsdl-ttf2.0-0 libsdl1.2debian libsdl1.2debian-alsa libsndfile1 libv4l-0
libvorbis0a libvorbisenc2 libx11-xcb1 nspluginwrapper virtualbox-4.0
0 upgraded, 34 newly installed, 0 to remove and 26 not upgraded.
Need to get 168MB of archives.
After this operation, 460MB of additional disk space will be used.
谢谢,麻烦您了
默认情况下安装推荐(自 Lucid 起)。要对特定包否定这一点,请使用
apt-get --no-install-recommends install pkg
. 然而,建议并非如此。您可以使用apt-get -o APT::Install-Suggests="true" install pkg
.不安装 conky 建议:
…或建议:
您可以通过将其设为默认行为
在 中的文件中
/etc/apt/apt.conf.d/
,例如/etc/apt/apt.conf.d/30install-suggests
.对于建议的包,您可以简单地使用
--install-suggests
标志:而不是传递选项
-o APT::Install-Suggests="true"
[就像你一样
--install-recommends
]例子:
将选项添加
--install-recommends
到您的命令: