尝试并删除 DeepinDDE 后无法安装任何东西

尝试并删除 DeepinDDE 后无法安装任何东西

我在使用 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”的操作,只会给我同样的错误。我有点菜鸟,不知道该怎么做。任何帮助都将不胜感激。

答案1

解决这个问题最直接的方法是删除低级软件包

sudo dpkg --purge --force-all deepin-anything-server 

然后通过以下方式恢复包配置

sudo dpkg --configure -a
sudo apt-get install -f

答案2

deepin-anything-server我遇到了同样的问题,我通过创建在终端中输入的用户解决了这个问题

sudo useradd deepin-anything-server

然后卸载深度桌面。

相关内容