我没有在 man 或其他文档中找到此信息。正如我所建议的,它会恢复所有基本包,但是真的吗?
$ apt install --fix-policy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
account-plugin-facebook account-plugin-flickr gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 krb5-locales
libpam-cap light-locker-settings python-psutil ubuntu-release-upgrader-gtk update-manager update-motd
update-notifier
Suggested packages:
python-psutil-doc
The following NEW packages will be installed:
account-plugin-facebook account-plugin-flickr gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 krb5-locales
libpam-cap light-locker-settings python-psutil ubuntu-release-upgrader-gtk update-manager update-motd
update-notifier
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
嗯,根据这个(旧的)错误报告和相关的邮件列表帖子,--fix-policy
实际上是一个很好的选择,可以apt
重新考虑已安装软件包的“推荐”依赖项。因此,最初如果您安装的软件包没有推荐的软件包,您可以使用以下命令来安装这些额外的软件包--fix-polcy
:
如果你想看看如果你的系统带有 --install-recommends 会发生什么变化,请运行:
Run Code Online (Sandbox Code Playgroud)# apt-get install --fix-policy --install-recommends
如果您想知道哪个软件包导致安装推荐的软件包,请运行:
Run Code Online (Sandbox Code Playgroud)# apt-get install --fix-policy --install-recommends -o Debug::pkgDepCache::AutoInstall=true
该选项已经存在了大约 11 年,而要求将其包含在联机帮助页中的错误报告也已经存在了 8 年。
所以,我得到,例如:
$ sudo apt-get install --fix-policy -o Debug::pkgDepCache::AutoInstall=true
Reading package lists... Done
Building dependency tree
Reading state information... Done
Installing iio-sensor-proxy as Recommends of gnome-settings-daemon
Installing indicator-printers as Recommends of unity
Installing cinnamon-l10n as Recommends of nemo
Installing nemo-fileroller as Recommends of nemo
Installing python-bs4 as Recommends of python-lxml
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1274 次 |
最近记录: |