安装PPA和Oracle Java 8后安装Gephi的问题
我最近在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’tabball’
似乎没有发生任何事情。 有谁知道我错过了什么?
编辑:出现闪屏,gehpi似乎尝试初始化。 然而它似乎失败并在一段时间后停止。
解决这个问题的方法是:
sudo gedit /etc/environment
并添加:
JAVA_HOME="/usr/lib/jvm/java-7-oracle/jre/bin/java"
然后正常运行脚本
./bin/gephi
(从我的要点复制到https://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
我在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