我最近在 Trusty 上安装 gephi 时遇到了一些问题。我的存储库中有以下内容:
http://ppa.launchpad.net/rockclimb/gephi-testing/ubuntu trusty main
http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
当我
sudo apt-get install gephi
我明白了
The following packages have unmet dependencies:
gephi : Depends: libgoogle-collections-java but it is not installable
当我尝试查找该软件包时,它说该仓库不再更新。然后我设法在这里找到了该软件包的旧副本:
https://packages.debian.org/source/wheezy/libgoogle-collections-java
但出于某种原因,当我尝试使用以下命令安装它时:tar -zxvf'tarball'
似乎什么都没发生。有人知道我错过了什么吗?
编辑:出现启动画面,gehpi 似乎尝试初始化。但是它似乎失败了,并在一段时间后停止。
答案1
修复此问题的方法是:
sudo gedit /etc/environment
并添加:
JAVA_HOME="/usr/lib/jvm/java-7-oracle/jre/bin/java"
然后正常运行脚本
./bin/gephi
答案2
(摘自我的 Gisthttps://gist.github.com/dcht00/432caaf3e6c50a2202b8)
这对我在 Trusty 14.04 上做了以下操作:
# Edit the sources file and add this to end:
# deb http://ppa.launchpad.net/rockclimb/gephi-daily/ubuntu precise main
sudo joe /etc/apt/sources.list
# You can't just install gephi because it's missing libgoogle-collections-java
# And that one's not packaged with Ubuntu anymore as of Trusty at least
# Download all three files to a temp folder:
# https://packages.debian.org/source/wheezy/libgoogle-collections-java
# Attempt to extract a source package
dpkg-source -x *.dsc
# DOES NOT WORK, NEED KEYS FIRST
gpg --keyserver keyserver.ubuntu.com --recv-keys 974B3E96
# OK, again...
dpkg-source -x *.dsc
# Now try to build package.
cd libgoogle-collections-java-1.0/
dpkg-buildpackage -us -uc
# Fail, needs dependencies
apt-get install maven-repo-helper maven-ant-helper cdbs
dpkg-buildpackage -us -uc
# This builds an actual .deb in folder above.
cd ..
sudo dpkg -i libgoogle-collections-java_1.0-2_all.deb
# Now install gephi.
sudo apt-get update; sudo apt-get install gephi
# Done
答案3
我在 14.04 Trusty 中遇到了类似的问题,所有建议都对我不起作用。我最终通过以下方式解决了问题:
sudo gedit /etc/apt/sources.list
并添加以下两行:
deb http://ppa.launchpad.net/rockclimb/gephi-daily/ubuntu precise main
deb http://us.archive.ubuntu.com/ubuntu precise main universe
然后做:
sudo apt-get install libgoogle-collections-java gephi