Cannot remove or reinstall WPS-Office?
Tofloor
poster avatar
livenotonevil
deepin
2018-02-02 12:21
Author
Edited by livenotonevil at 2018-2-2 04:28

So, out of preference, I installed LibreOffice in order to replace and remove WPS Office - however, upon trying to remove WPS from the Launcher, Deepin gave me an error.
Subsequently, I have tried to reinstall it, redownload it, aptitude purge it, synaptic force removal, update it, upgrade my entire system, and none of these methods are working.   

My terminal:
  1. matt@matt-Inspiron-5758-Linux:~$ neofetch
  2.              ............
  3.          .';;;;;.       .,;,.
  4.       .,;;;;;;;.       ';;;;;;;.         matt@matt-Inspiron-5758-Linux
  5.     .;::::::::'     .,::;;,''''',.       -----------------------------
  6.    ,'.::::::::    .;;'.          ';      OS: Deepin 15.5 x86_64
  7.   ;'  'cccccc,   ,' :: '..        .:     Model: Inspiron 5758 01
  8. ,,    :ccccc.  ;: .c, '' :.       ,;    Kernel: 4.9.0-deepin13-amd64
  9. .l.     cllll' ., .lc  :; .l'       l.   Uptime: 1 hour, 9 mins
  10. .c       :lllc  ;cl:  .l' .ll.      :'   Packages: 1701
  11. .l        'looc. .   ,o:  'oo'      c,   Shell: bash 4.4.12
  12. .o.         .:ool::coc'  .ooo'      o.   Resolution: 1366x768
  13. ::            .....   .;dddo      ;c    DE: Deepin
  14.   l:...            .';lddddo.     ,o     WM: Mutter(DeepinGala)
  15.    lxxxxxdoolllodxxxxxxxxxc      :l      Theme: Deepin [GTK2/3]
  16.     ,dxxxxxxxxxxxxxxxxxxl.     'o,       Icons: Deepin [GTK2/3]
  17.       ,dkkkkkkkkkkkkko;.    .;o;         Terminal: deepin-terminal
  18.         .;okkkkkdl;.    .,cl:.           Terminal Font: Noto Mono 11
  19.             .,:cccccccc:,.               CPU: Intel i5-5200U (4) @ 2.201GHz
  20.                                          GPU: Intel Integrated Graphics
  21.                                          Memory: 1497MiB / 7898MiB

  22.                                                                  


  23. matt@matt-Inspiron-5758-Linux:~$ sudo apt remove wps-office
  24. [sudo] password for matt:
  25. Reading package lists... Done
  26. Building dependency tree      
  27. Reading state information... Done
  28. The following package was automatically installed and is no longer required:
  29.   libglu1-mesa:i386
  30. Use 'sudo apt autoremove' to remove it.
  31. The following packages will be REMOVED:
  32.   wps-office
  33. 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
  34. After this operation, 386 MB disk space will be freed.
  35. Do you want to continue? [Y/n] y
  36. (Reading database ... 188095 files and directories currently installed.)
  37. Removing wps-office (10.1.0.5707~a21deepin) ...
  38. xdg-mime: file '/usr/share//mime/packages/wps-office-et.xml' does not exist
  39. dpkg: error processing package wps-office (--remove):
  40. subprocess installed pre-removal script returned error exit status 2
  41. Errors were encountered while processing:
  42. wps-office
  43. E: Sub-process /usr/bin/dpkg returned an error code (1)
  44. matt@matt-Inspiron-5758-Linux:~$ sudo aptitude purge wps-office
  45. W: Package wps-office had been marked to reinstall, but the file for the current installed version 10.1.0.5707~a21deepin is not available
  46. The following packages will be REMOVED:
  47.   libglu1-mesa:i386{u} wps-office{p}
  48. 0 packages upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
  49. Need to get 0 B of archives. After unpacking 387 MB will be freed.
  50. Do you want to continue? [Y/n/?] Y
  51. (Reading database ... 188095 files and directories currently installed.)
  52. Removing wps-office (10.1.0.5707~a21deepin) ...
  53. xdg-mime: file '/usr/share//mime/packages/wps-office-et.xml' does not exist
  54. dpkg: error processing package wps-office (--remove):
  55. subprocess installed pre-removal script returned error exit status 2
  56. Removing libglu1-mesa:i386 (9.0.0-2.1) ...
  57. Errors were encountered while processing:
  58. wps-office
  59. E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy the Code

                                   
Does anybody have a solution?
Reply Favorite View the author
All Replies
187******12
deepin
2018-02-02 14:07
#1
how did you install wps?
Reply View the author
livenotonevil
deepin
2018-02-02 14:51
#2
It came installed on the system.
Reply View the author
jingle
deepin
2018-02-02 17:12
#3
  1. cd /var/lib/dpkg
  2.     sudo mv info info.bak
  3.     sudo mkdir info
  4.     sudo dpkg --configure -a
  5.     sudo apt-get install -f
  6.     sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
  7.     sudo rm -rf /var/lib/dpkg/info
  8.     sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info
Copy the Code
Reply View the author
livenotonevil
deepin
2018-02-02 17:46
#4
  1. sudo aptitude purge wps-office
  2. The following packages will be REMOVED:  
  3.   libglu1-mesa:i386{u} wps-office{ap}
  4. 0 packages upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
  5. Need to get 0 B of archives. After unpacking 387 MB will be freed.
  6. Do you want to continue? [Y/n/?] y
  7. (Reading database ... 195245 files and directories currently installed.)
  8. Removing wps-office (10.1.0.5707~a21deepin) ...
  9. xdg-mime: file '/usr/share//mime/packages/wps-office-et.xml' does not exist
  10. dpkg: error processing package wps-office (--remove):
  11. subprocess installed pre-removal script returned error exit status 2
  12. Removing libglu1-mesa:i386 (9.0.0-2.1) ...
  13. Errors were encountered while processing:
  14. wps-office
  15. E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy the Code
Reply View the author
livenotonevil
deepin
2018-02-02 17:47
#5
Edited by livenotonevil at 2018-2-2 09:48
After entering the code, I rebooted and it didn't work.



(Also, why is this an emoji?)
Reply View the author
187******69
deepin
2018-02-02 18:00
#6
step 1 :click super key
step 2:right click W,P,S
step 3:select uninstall
OK wait a moment
I uninstalled .
Reply View the author
livenotonevil
deepin
2018-02-02 19:03
#7
Reply View the author
tristar
deepin
2018-02-03 00:34
#8
open terminal and type in it:
  1. sudo apt remove wps-office
Copy the Code

Reply View the author
livenotonevil
deepin
2018-02-03 04:15
#9
Did you see my first post? This is why I am posting this.
Reply View the author
int_max
deepin
2018-02-03 10:53
#10
Maybe you should check /usr/share//mime/packages/wps-office-et.xml and figure out what this file is and why this file is missing. Btw, why do you want to replace WPS-Office? Is it not good enough?
Reply View the author
br0nde
deepin
2019-02-21 23:38
#11
This is what helped me
You need to create a file with the contents of this link:
https://gemfury.com/beebox/deb:wps-office/-/content/usr/share/mime/packages/wps-office-et.xml
Next
  1. sudo mkdir /usr/share/desktop-directories/
Copy the Code

Copy file
  1. sudo cp /path2file/wps-office-et.xml /usr/share//mime/packages/
Copy the Code

Uninstall wps-office
  1. sudo dpkg --remove --force-all wps-office
Copy the Code

It's all
Reply View the author
jonesypeter
deepin
2019-02-23 11:03
#12
I just run:

  1. sudo apt-get --purge remove wps
Copy the Code
Reply View the author