我想卸载包pure-ftpd (因为我最终设置了sftp来替换它),所以我运行了以下命令:
sudo apt remove pure-ftpd
sudo apt autoremove然而,dpkg仍然列出了它。(我后来运行了sudo apt purge pure-ftpd,这可能使事情变得更糟)
$ dpkg -l pure*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-================-============-============-===================================
un pure-ftpd <none> <none> (no description available)
rc pure-ftpd-common 1.0.47-3 all Pure-FTPd FTP server (Common Files) 为什么,以及如何正确/完全地从我的系统中删除包?最好使用apt,但如果不可能的话,我也想知道原因。
请注意,这是一个运行raspbian的raspberry pi,但我认为这对这个问题没有任何影响。
发布于 2020-03-17 13:35:15
您已经删除了un或rc在dpkg's输出的第一列中看到的包。
至于您的问题,包可能仍然在/var/lib/dpkg/status和/或/var/lib/dpkg/available中的某个地方引用。
https://askubuntu.com/questions/1217833
复制相似问题