Step 1: Go to the official website to download the latest WPS deb package
https://linux.wps.cn/
Step 2: Install WPS
sudo dpkg -i wps-office_11.1.0.10702_amd64.deb
If there is an error message indicating that the package libpng12-0 is not installed, run the following command to repair dependencies and reinstall WPS (you can skip the following steps if there is no error report!)
1. Fix dependencies:
sudo apt install -f
2. Download dependent files:
wget http://kr.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
3. Install dependent files:
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb
4. Reinstall WPS:
sudo dpkg -i wps-office_11.1.0.10702_amd64.deb
Step 3: Fix the problem of missing fonts
1. Download the font file and unzip it
2. Install font files (copy all decompressed font files to /usr/share/fonts)
sudo unzip fonts.zip -d fonts
cp ./fonts/* /usr/share/fonts
3. Execute the following command to generate the index information of the font
sudo mkfontscale
sudo mkfontdir
4. Update font cache
sudo fc-cache
Step 4: Uninstall libreoffice that comes with ubuntu
sudo apt-get remove libreoffice-common