There's no way I can remove the WPS Office... I installed WPS Office 2019 For Linux v. 11.1.0.9080 from wps-office_11.1.0.9080.XA_amd64.deb using GDebi. Now I need to remove it. In Ubuntu 19.10 I use command:
$ sudo apt-get purge wps-office
I have got result:
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)
Is there anything I can do about it?
sudo find / -name "*1918052320.desktop"
to determine the location of the %U_1918052320.desktop file from the error message.find: ‘/run/user/1000/doc’: Permission denied find: ‘/run/user/1000/gvfs’: Permission denied /home/vgrinkov/.local/share/applications/dc_evince %U_1918052320.desktop
mv /home/vgrinkov/.local/share/applications/dc_evince %U_1918052320.desktop ~/wrong.desktop
and then resume uninstallation.... configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%U_1918052320.desktop;org.gnome.Evince.desktop;' dpkg: error processing package wps-office (--purge): installed wps-office package pre-removal script subprocess returned error exit status 1 Errors were encountered while processing: wps-office