所以我安装了深度桌面环境,安装时出现错误,但仍然继续,后来我决定删除它,但它可能无法被删除,然后我开始执行其他命令,例如,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
答案1
您必须使用一个技巧 - 创建所需的用户,删除包,然后删除用户:
sudo useradd deepin-anything-server
sudo apt-get purge deepin-anything-server
sudo userdel deepin-anything-server
然后是其他与 DKMS 相关的包
sudo apt-get purge deepin-anything-dkms
sudo dpkg -P --force-all deepin-anything-dkms
然后更新软件包列表并修复软件包系统:
sudo apt-get update
sudo apt-get install -f
如果你想删除Ubuntu DDE 稳定 PPA- 使用以下命令删除它及其软件包
sudo apt-get install ppa-purge
sudo ppa-purge ppa:ubuntudde-dev/stable