I am using ubuntu subsystem for windows. I am trying to remove wps-office which for some reason I tried to install way before. I am trying to remove it with

sudo apt-get purge wps-office

However I am getting the error below:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 127 not upgraded.
1 not fully installed or removed.
After this operation, 386 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 83671 files and directories currently installed.)
Removing wps-office ( ...
xdg-mime: file '/usr/share//mime/packages/wps-office-et.xml' does not exist
dpkg: error processing package wps-office (--purge):
subprocess installed pre-removal script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestions ?


From comments, run:

sudo mkdir /usr/share/desktop-directories/
sudo touch /usr/share//mime/packages/wps-office-et.xml
sudo apt-get purge wps-office

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.