cwe*_*ske 9 uninstall apt administration
我确实想从我的系统中卸载“popularity-contest”包。
虽然我知道我可以禁用它
$ dpkg-reconfigure popularity-contest
Run Code Online (Sandbox Code Playgroud)
它仍然是我想删除的包。
不幸的是,“ubuntu-standard”包依赖于它(而不是仅仅推荐它)。删除popcon将因此删除ubuntu-standard,我的系统将被破坏。请参阅人气竞赛应该是可卸载的功能请求以使其可卸载。
在修复该错误之前,我需要一种方法来卸载它。
我怎样才能做到这一点?有什么技巧可以让包管理器相信依赖是不必要的吗?
enz*_*tib 11
鉴于这ubuntu-standard是一个元包,删除它并不意味着删除任何其他包,也不意味着删除某些功能:
$ 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]
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 16.04 LTS 中完全删除该软件包
sudo apt-get remove popularity-contest
Run Code Online (Sandbox Code Playgroud)
ubuntu-standard是的,它在删除对话框中提到。那么看看这个列表:
与 ubuntu 标准(Ubuntu.com)相关的软件包
请注意,它nano包含在 Ubuntu 标准列表中。
要验证popularity-contest通过此方法删除不会损害系统,请尝试一下:
nano test.tmp
Run Code Online (Sandbox Code Playgroud)
你会发现它nano仍然工作得很好。
换句话说,您可以看到,这证明删除 Ubuntu 标准包初始安装中留下的安装存根不会以其他方式损坏系统。
最后一步:删除每日 cron 条目
sudo rm /etc/cron.daily/popularity-contest
Run Code Online (Sandbox Code Playgroud)