我无法删除 WPS Office...我从wps-office_11.1.0.9080.XA_amd64.deb使用 GDebi。现在我需要删除它。在 Ubuntu 19.10 中我使用命令:
$ sudo apt-get purge wps-office
我得到了结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
wps-office*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1,140 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 308773 files and directories currently installed.)
Removing wps-office (11.1.0.9080.XA) ...
Traceback (most recent call last):
File "<stdin>", line 8, in <module>
File "/usr/lib/python3.7/configparser.py", line 1252, in __getitem__
return self._parser.get(self._name, key)
File "/usr/lib/python3.7/configparser.py", line 799, in get
d)
File "/usr/lib/python3.7/configparser.py", line 394, in before_get
self._interpolate_some(parser, option, L, value, section, defaults, 1)
File "/usr/lib/python3.7/configparser.py", line 444, in _interpolate_some
"found: %r" % (rest,))
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%U_1918052320.desktop;org.gnome.Evince.desktop;'
dpkg: error processing package wps-office (--remove):
installed wps-office package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
wps-office
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
我能做些什么吗?
答案1
我无法在全新的 Ubuntu 19.10 VM 上重现该问题,但如果apt-get
失败 - 您可以尝试低级命令:
sudo dpkg --purge wps-office
(请参阅man dpkg
本地详细信息或在线的)