WPS linux安装包无法安装,提示缺少文件

使用新版本WPS安装包在Ubuntu 22.04下无法正确安装,提示错误如下:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'wps-office' instead of '/home/yu/Downloads/wps-office_12.1.0.17885_amd64.deb'
The following NEW packages will be installed:
  wps-office
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/464 MB of archives.
After this operation, 1,858 MB of additional disk space will be used.
Get:1 /home/yu/Downloads/wps-office_12.1.0.17885_amd64.deb wps-office amd64 12.1.0.17885 [464 MB]
(Reading database ... 387571 files and directories currently installed.)
Preparing to unpack .../wps-office_12.1.0.17885_amd64.deb ...
python3: can't open file '/opt/kingsoft/wps-office/INSTALL/delmime_python3.py': [Errno 2] No such file or directory
dpkg: error processing archive /home/yu/Downloads/wps-office_12.1.0.17885_amd64.deb (--unpack):
 new wps-office package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /home/yu/Downloads/wps-office_12.1.0.17885_amd64.deb
河北省
浏览 502
收藏
4
分享
4 +1
2
+1
全部评论 2
 
CodeArhat
Linux Mint 22(Ubuntu 24.04): 之前WPS定期升级、正常使用。升级12.1.0.17900时: 1. 总是说`/opt/kingsoft/wps-office/INSTALL/delmime_python3.py`找不到。从prerm里面把调用语句注释掉、删掉都不行。最后在该路径建个空delmime_python3.py哄过去。 2. 然后桌面有个快捷方式名字有空格,被解析成多个单词,又是一堆grep打不开文件的。删了快捷方式了事。 3. 安装后期两个XML文件是空的,解析报错。好在程序已经有了,先凑合着用。 ... Processing triggers for shared-mime-info (2.4-4) ... /usr/share/mime/packages/business-office.xml:1: parser error : Document is empty /usr/share/mime/packages/custom-wps-office.xml:1: parser error : Document is empty
· 山东省
回复
 
海盗
已经解决,不过解决方案比较粗暴: 完全卸载旧版本wps,同时删除~/.local和/opt下遗留的各类kingsoft和wps文件夹后,重新安装即可。
· 河北省
1
回复