我无法移除WPS办公室..。我使用GDebi安装了WPSOffice2019 For Linuxv.11.1.0.9080来自WPS - Office _11.1.9080.XA_amd64.deb。现在我需要移除它。在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)我能做些什么吗?
发布于 2020-02-09 10:26:40
我无法在新的Ubuntu19.10VM上重现这个问题,但是如果apt-get失败,您可以尝试低级命令:
sudo dpkg --purge wps-office(有关详细信息,请参阅man dpkg或在线)
https://askubuntu.com/questions/1209068
复制相似问题