所以我安装了深度桌面环境并在安装时出错但仍然继续,我后来决定我会删除它但它可能不会被删除,然后我开始执行其他命令,例如sudo apt install -f
它向我展示了这个
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
deepin-anything-server
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 469 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 538850 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 returned 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)
我也试过 sudo apt autoremove
这向我展示了这个
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
deepin-anything-server
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 469 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 538850 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)
有什么解决办法吗?我也不能安装 Synaptic,因为它给了我这个
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libept1.6.0
Suggested packages:
dwww menu deborphan apt-xapian-index
The following packages will be REMOVED:
deepin-anything-server
The following NEW packages will be installed:
libept1.6.0 synaptic
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 701 kB of archives.
After this operation, 3,194 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ph.archive.ubuntu.com/ubuntu focal/universe amd64 libept1.6.0 amd64 1.1+nmu3ubuntu3 [79.6 kB]
Get:2 http://ph.archive.ubuntu.com/ubuntu focal/universe amd64 synaptic amd64 0.84.6ubuntu5 [622 kB]
Fetched 701 kB in 2s (294 kB/s)
(Reading database ... 538850 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 returned 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)
其他信息:操作系统:Ubuntu Studio
有什么解决方法吗?或解决方案?谢谢!
编辑:结果apt-cache policy deepin-anything-server
Installed: (none)
Candidate: 5.0.1-4
Version table:
5.0.1-4 500
500 http://ppa.launchpad.net/ubuntudde-dev/stable/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
您必须使用一个技巧 - 创建所需的用户,删除包,然后删除用户:
然后是其他与 DKMS 相关的包
然后更新包列表并修复包系统:
如果你想删除Ubuntu DDE 稳定的 PPA - 通过它的包删除它