您的位置:首页 > 其它

ubuntu14.10 下 wps 安装

2014-12-25 14:29 316 查看
今天将办公环境改为了ubuntu ,为了方便写文档,就想着下个wps来用用,结果费了不少时间解决问题。写篇博客总结一下

wps 下载:
http://wdl1.cache.wps.cn/wps/download/Linux/unstable/wps-office_8.1.0.3724~b1p2_i386.deb
选择的一般来说下载好后会保存在用户主目录的 Download 文件夹下。

在网上看了不少资料,说是有两种安装方式,一是直接双击 下载好的安装包,然后自动进入到 software center 进行安装,期间会自动解决所有的依赖关系。

抱着试试的心态双击后等了好久,卡在90%左右就不动了。没办法只好试试第二种,使用dpkg 命令安装

cd Download

$ sudo dpkg -i --force-architecture  wps-office_8.1.0.3724~b1p2_i386.deb

会报如下错误:
Selecting previously unselected package wps-office.
(Reading database ... 206900 files and directories currently installed.)
Preparing to unpack wps-office_8.1.0.3724~b1p2_i386.deb ...
Unpacking wps-office (8.1.0.3724~b1p2) ...
dpkg: dependency problems prevent configuration of wps-office:
wps-office depends on libglu1-mesa.

dpkg: error processing package wps-office (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Errors were encountered while processing:
wps-office



然后使用 sudo apt-get install -f 来解决依赖关系。

安装好之后 我在命令行中执行 $ wps 时,出现

Package ia32-libs is not available, but is referred to by another package.

错误,大致意思就是64位系统要运行32的程序,就需要安装ia32-libs

当然这个包直接安装是不行的,因为缺少相应的apt源。于是在一个论他里看到这个解决方案

sudo -i

cd /etc/apt/sources.list.d

echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list

apt-get update

apt-get install ia32-libs

实践证明,这个源已经不能用了。最后在 stackoverflow 中找到了最终解决方案:

You can try this to install 32 lib(not all in ia32-libs):
apt-get install program:i386
.

Or if you want to install the whole ia32-lib instead, try the following order:

sudo -i
cd /etc/apt/sources.list.d
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs

附上截图一张



安装ia32-libs 时 会装进去很多包,装好之后最好将新加的源删掉,避免安装其他包时发生干扰。

装好之后再使用

sudo dpkg -i 安装包

即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: