红联Linux门户
Linux帮助

ubuntu16.04上安装ICE

发布时间:2017-04-18 10:18:05来源:blog.csdn.net/icebergwu作者:icebergwu
第一部分、Zeroc官方文档
在ubuntu上安装ICE的官方文档
1.安装 Zeroc key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 5E6DA83306132997
2.添加 repository
sudo apt-add-repository "deb http://zeroc.com/download/apt/ubuntu`lsb_release -rs` stable main"
3.更新 package 列表,然后 安装
sudo apt-get update
sudo apt-get install zeroc-ice-all-runtime zeroc-ice-all-dev
另外,由于 ICE 执行热备份之类的管理任务需要用到 Berkeley DB ,故还需要安装 db5.3-util
sudo apt-get install db5.3-util
 
第二部分、为什么我就是安装不了ICE
这部分说一下我在安装时遇到的问题。
icebergwu@ubuntu16:~$ sudo apt-get install zeroc-ice-all-runtime
zeroc-ice-all-dev [sudo] password for icebergwu: Reading package
lists… Done Building dependency tree Reading state
information… Done Some packages could not be installed. This may
mean that you have requested an impossible situation or if you are
using the unstable distribution that some required packages have not
yet been created or been moved out of Incoming. The following
information may help to resolve the situation:
The following packages have unmet dependencies: zeroc-ice-all-dev :
Depends: libzeroc-ice-dev (= 3.6.3-1000)
Depends: libzeroc-ice-java (= 3.6.3-1000) but it is not installable zeroc-ice-all-runtime : Depends: libzeroc-ice3.6
(= 3.6.3-1000) but it is not installable
Depends: libzeroc-freeze3.6 (= 3.6.3-1000) but it is not installable
Depends: zeroc-glacier2 (= 3.6.3-1000) but it is not installable
Depends: zeroc-icebox (= 3.6.3-1000) but it is not installable
Depends: zeroc-icegrid (= 3.6.3-1000) but it is not installable
Depends: libzeroc-icestorm3.6 (= 3.6.3-1000) but it is not installable
Depends: zeroc-icepatch2 (= 3.6.3-1000) but it is not installable
Depends: zeroc-ice-utils (= 3.6.3-1000) but it is not installable
Depends: zeroc-ice-utils-java (= 3.6.3-1000) but it is not going to be installed E: Unable to correct problems, you
have held broken packages. icebergwu@ubuntu16:~$
搜索了很长时间也没找到原因,后来从下往上依次执行 sudo apt-get install xxx.后来才怀疑是找不到包。
icebergwu@ubuntu16:~$ sudo apt-get install zeroc-ice-utils Reading
package lists… Done Building dependency tree Reading state
information… Done Package zeroc-ice-utils is not available, but is
referred to by another package. This may mean that the package is
missing, has been obsoleted, or is only available from another source
E: Package ‘zeroc-ice-utils’ has no installation candidate
icebergwu@ubuntu16:~$
最后想到要验证 repository 是不是弄错了。于是打开下面的链接,发现无论是在虚拟机ubuntu,还是在宿主windows上,总是报 NoSuchKey。
http://zeroc.com/download/apt/ubuntu16.04
https://zeroc.com/download/apt/ubuntu16.04
ubuntu16.04上安装ICE
ubuntu显示NoSuchKey
ubuntu16.04上安装ICE
windows显示NoSuchKey
然后在公司的Linux server上再连这个网址,它居然就可以打开。我觉得应该是公司的防火墙对windows主机做了一些过滤导致不能正常列出Zeroc的文件。
ubuntu16.04上安装ICE
后来在家里试了试,也是报 NoSuchKey。
安装不了怎么办?最后只能研究如何用源码安装ICE(http://www.linuxdiyf.com/linux/30098.html)。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30099.html