我在Ubuntu 20.04。在我的系统中清除所有与Deepin相关的内容之后,每次我尝试从终端上安装一些东西时,它都包括试图让我删除一个叫做"deepin-anything-server“的东西。
示例:
The following additional packages will be installed:
clamav-base clamav-freshclam libclamav9 libtfm1
Suggested packages:
clamav-docs libclamunrar9
The following packages will be REMOVED:
deepin-anything-server
The following NEW packages will be installed:
clamav clamav-base clamav-freshclam libclamav9 libtfm1
0 upgraded, 5 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/1,135 kB of archives.
After this operation, 3,450 kB of additional disk space will be used.
Do you want to continue? [Y/n]所以我按下y,它就会做它的事情。但是每当这个错误出现时:
Preconfiguring packages ...
(Reading database ... 339973 files and directories currently installed.)
Removing deepin-anything-server (5.0.1-4) ...
userdel: user 'deepin-anything-server' does not exist
Failed on delete user deepin-anything-server
dpkg: error processing package deepin-anything-server (--remove):
installed deepin-anything-server package post-removal script subprocess returne
d error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
deepin-anything-server
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)"如果我试图自己删除这个"deepin-anything-server“,或者尝试类似于"sudo dpkg --configure -a”之类的东西,就会给出同样的错误。我是个菜鸟,不知道该怎么做。任何帮助都将不胜感激。
发布于 2021-02-01 00:28:32
解决这个问题最直接的方法是通过以下方法删除低级别包。
sudo dpkg --purge --force-all deepin-anything-server 然后继续进行包配置。
sudo dpkg --configure -a
sudo apt-get install -f发布于 2021-03-20 16:17:14
我也遇到了同样的问题,我通过在终端中创建用户deepin-anything-server类型来解决这个问题。
sudo useradd deepin-anything-server然后在桌面上卸载。
https://askubuntu.com/questions/1312555
复制相似问题