apt-get -y install <packages ...>在 Ubuntu 10.04 上运行时,我希望apt-get(或者aptitude如果这样更容易)在安装其他依赖项时不提示我(-y我理解的行为),但不提示我覆盖配置文件,而是假设始终保留现有的(这通常是默认值)。不幸的是,根据页面,它--trivial-only似乎与-y显示的提示相反,不会影响显示的提示man。
在特定的软件包奥赫为samba,nullmailer,localepurge并lighttpd强迫我与终端交互,即使整个过程,脚本和意思是是非交互式的。
我使用 Ubuntu 12.04 64 位,我执行了以下操作:sudo gedit /etc/apt/apt.conf并添加了
APT::Install-Recommends "false";
APT::Install-Suggests "false";
Run Code Online (Sandbox Code Playgroud)
但它没有用。当我尝试安装一个包时,它仍然想安装建议和推荐的包。我该如何解决这个问题?
我运行了下面的代码,得到这个包需要这些包,现在它也说这些包是建议的,这些是推荐的。我该如何安装它们。
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 …Run Code Online (Sandbox Code Playgroud)