无法删除 apt-fast 以进行全新安装

无法删除 apt-fast 以进行全新安装

这是我的问题:

$ destroy apt-fast
[sudo] password for colbyryptos: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apt-fast is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up man-db (2.6.1-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)

我也尝试过sudo rm /var/lib/dpkg/lock,然后sudo dpkg --configure -a

然后它给了我这个

$ sudo dpkg --configure -a
[sudo] password for colbyryptos: 
Setting up man-db (2.6.1-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 man-db

答案1

我认为,apt-fast正在后台运行,因此锁定了进程。您有两种选择:

  1. 重新启动电脑并重试。(这是最好的)。

  2. 或者/var/cache/debconf/config.dat使用命令删除文件

     sudo rm /var/cache/debconf/config.dat
    

我不推荐这种方法,因为它可能会导致问题

相关内容