linux安装WPS
所需cmd
首先下载好libpng12-0_1.2.49-1+deb7u2_amd64.deb
1 2 3 4
| root@pad:/home/dassein/Downloads# sudo apt-get install libc6-i386 root@pad:/home/dassein/Downloads# sudo apt-get install ia32-libs dassein@pad:~/Downloads$ sudo apt-get -f install ./libpng12-0_1.2.49-1+deb7u2_amd64.deb dassein@pad:~/Downloads$ sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb
|
step 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| root@pad:/home/dassein/Downloads# sudo apt-get install libc6-i386
dassein@pad:~$ cd ~/Downloads dassein@pad:~/Downloads$ sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb Selecting previously unselected package wps-office. (Reading database ... 347078 files and directories currently installed.) Preparing to unpack wps-office_10.1.0.5672~a21_amd64.deb ... Unpacking wps-office (10.1.0.5672~a21) ... dpkg: dependency problems prevent configuration of wps-office: wps-office depends on libpng12-0; however: Package libpng12-0 is not installed.
dpkg: error processing package wps-office (--install): dependency problems - leaving unconfigured Processing triggers for bamfdaemon (0.5.3+16.10.20160929-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu4) ... Processing triggers for desktop-file-utils (0.23-1ubuntu1) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for shared-mime-info (1.7-1) ... Processing triggers for hicolor-icon-theme (0.15-1) ... Errors were encountered while processing: wps-office
|
step 2
我们注意到 Package libpng12-0 is not installed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| dassein@pad:~/Downloads$ sudo apt-get -f install ./libpng12-0_1.2.49-1+deb7u2_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done Note, selecting 'libpng12-0' instead of './libpng12-0_1.2.49-1+deb7u2_amd64.deb' The following package was automatically installed and is no longer required: ubuntu-core-launcher Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed: libpng12-0 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/191 kB of archives. After this operation, 308 kB of additional disk space will be used. Get:1 /home/dassein/Downloads/libpng12-0_1.2.49-1+deb7u2_amd64.deb libpng12-0 amd64 1.2.49-1+deb7u2 [191 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 349542 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.49-1+deb7u2_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.49-1+deb7u2) ... Setting up libpng12-0:amd64 (1.2.49-1+deb7u2) ... Processing triggers for doc-base (0.10.7) ... Processing 1 added doc-base file... Setting up wps-office (10.1.0.5672~a21) ... Processing triggers for libc-bin (2.24-3ubuntu2) ...
|
step 3
1 2 3 4 5 6 7 8 9 10 11 12
| dassein@pad:~/Downloads$ sudo dpkg -i wps-office_10.1.0.5672~a21_amd64.deb (Reading database ... 349555 files and directories currently installed.) Preparing to unpack wps-office_10.1.0.5672~a21_amd64.deb ... Unpacking wps-office (10.1.0.5672~a21) over (10.1.0.5672~a21) ... Setting up wps-office (10.1.0.5672~a21) ... Processing triggers for bamfdaemon (0.5.3+16.10.20160929-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu4) ... Processing triggers for desktop-file-utils (0.23-1ubuntu1) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for shared-mime-info (1.7-1) ... Processing triggers for hicolor-icon-theme (0.15-1) ...
|
step 4
检查WPS是否安装成功
1
| dassein@pad:~/Downloads$ wps
|