我在运行 Ubuntu 20.04.2 LTS x86_64 的笔记本电脑上安装了 Ubuntu DDE。但后来我意识到我无法在机器上安装一些软件包。它现在似乎可以在 Snap Store 上运行,但之前在那里不起作用。但我仍然无法使用 Apt 安装软件包,导致一些错误;
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)
答案1
您可以临时deepin-anything-server
向系统添加一个虚拟用户 ID,以满足删除后脚本的要求:
sudo adduser --shell=/bin/false --no-create-home --disabled-login deepin-anything-server
然后重新运行您的命令。
grep deepin /etc/passwd
去检查