删除人气竞赛而不会破坏系统?

我想从我的系统中卸载“popular-contest”包。

虽然我知道我可以禁用它

$ dpkg-reconfigure popularity-contest 

它仍然是我想删除的包。

不幸的是,“ubuntu-standard”软件包依赖于它(而不仅仅是推荐它)。 因此删除popcon将删除ubuntu-standard ,我的系统将被删除。 对于要使其可卸载的function请求,请参阅“ 人气竞赛”应该是可卸载的。

在修复该错误之前,我需要一种方法来卸载它。

我怎样才能做到这一点? 是否有一种技巧可以说服包管理器不需要依赖?

鉴于ubuntu-standard是一个元数据包,删除它并不意味着删除任何其他包,也不删除某些function:

 $ sudo apt-get --simulate purge popularity-contest Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: popularity-contest* ubuntu-standard* 0 upgraded, 0 newly installed, 2 to remove and 13 not upgraded. Purg ubuntu-standard [1.245] Purg popularity-contest [1.53ubuntu1] 

在Ubuntu 16.04 LTS中完全删除软件包

 sudo apt-get remove popularity-contest 

是的,它在删除对话框中提到了ubuntu-standard 。 所以看看这个清单:

与ubuntu-standard相关的软件包 (Ubuntu.com)

请注意, nano包含在Ubuntu标准列表中。

要validation通过此方法删除popularity-contest并未损害系统,请尝试:

 nano test.tmp 

你会发现nano仍然可以正常工作。

换句话说,您可以看到这certificate从初始安装Ubuntu标准软件包中删除剩余的安装存根不会以其他方式损坏系统。


最后一步:删除每日cron条目

 sudo rm /etc/cron.daily/popularity-contest