我最近安装了ubuntu-restricted-extras,但是它在Google上造成了错误,我想要删除它。但是,当我使用sudo apt-get autoremove或sudo apt-get purge时,它似乎并没有被完全删除,因为在我安装它的时候,很多软件包被删除了,其他的也被安装了。
我的问题是:如何使事情就像安装ubuntu-restricted-extras之前一样?
谢谢。
发布于 2015-09-24 11:15:09
您遇到的问题是,ubuntu限制的-*metapackage使用建议而不是依赖项。如果您想要完全删除这两种方法中推荐的包,一种安全的方法是手动完成(在Ubuntu14.04.3上测试):
apt-cache show ubuntu-restricted-extrasapt-cache show ubuntu-restricted-addonsapt-get remove ubuntu-restricted-extras ubuntu-restricted-addonsapt-get removeapt-get autoremove以消除建议的包的已安装依赖项。然后,如果您想要重新安装,您可以做一个干净的重新安装:
apt-get install ubuntu-restricted-extras把所有东西都拿回来请注意,对于所有建议的包,apt-get install --reinstall都不够彻底,因为它无法消除建议的包的安装依赖关系。
发布于 2014-10-17 19:04:10
@Mitch答案并没有完全删除Ubuntu限制的附加程序包(至少在Ubuntu14.04中是这样)。当然,因为ubuntu限制的额外程序没有太多的“依赖”包,而是“推荐”,默认情况下自动安装。
apt-cache depends ubuntu-restricted-extras
Depends: ubuntu-restricted-addons
Recommends: ttf-mscorefonts-installer
Recommends: unrar
Recommends: gstreamer0.10-plugins-bad-multiverse
Recommends: <libavcodec-extra-53>
Conflicts: ubuntu-restricted-extras:i386
apt-cache depends ubuntu-restricted-addons
ubuntu-restricted-addons
Recommends: gstreamer0.10-plugins-ugly
Recommends: gstreamer1.0-plugins-ugly
Recommends: flashplugin-installer
flashplugin-installer:i386
Recommends: gstreamer0.10-plugins-bad
Recommends: gstreamer1.0-plugins-bad
Recommends: gstreamer1.0-libav
Recommends: gstreamer0.10-fluendo-mp3
Recommends: gstreamer1.0-fluendo-mp3
Recommends: chromium-codecs-ffmpeg-extra
Recommends: oxideqt-codecs-extra
Conflicts: ubuntu-restricted-addons:i386不幸的是,apt-获取清除包和apt-获取自动删除--清除不删除“建议”包(移除推荐的包),即使您卸载了ubuntu限制的附加程序和ubuntu限制的附加程序,所以您必须手动卸载您不需要的(我已经安装了ttf-mscorefonts installer、unrar和purge插件安装程序):
sudo apt-get purge ubuntu-restricted-extras ubuntu-restricted-addons gstreamer0.10-plugins-bad-multiverse libavcodec-extra-53 gstreamer0.10-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer0.10-plugins-bad gstreamer1.0-libav gstreamer0.10-fluendo-mp3 gstreamer1.0-fluendo-mp3 oxideqt-codecs-extra在我的电脑上,移除铬编解码器-ffmpeg额外的想要卸载铬,所以我不得不安装铬编解码-ffmpeg,它将卸载铬编解码-ffmpeg-额外:
sudo apt-get install chromium-codecs-ffmpeghttps://askubuntu.com/questions/326012
复制相似问题