今天我跑步
sudo apt install geogebra geogebra-gnome
在原版 ubuntu 18.04 上。通过 gnome 启动器或终端运行 geogebra 会弹出启动画面,然后它会静默终止。
以下是它在终端中运行的样子:
$ geogebra
GeoGebra 4.0.34.0 (Debian version 4.0.34.0+dfsg1-4) 22 June 2012 Java 10.0.1
*** Message from [geogebra.main.Application.setUpLogging]
/tmp/GeoGebraLog_qrhdpnnfig.txt
这是终端中提到的日志文件
Jun 05, 2018 7:52:18 AM
STDOUT: current views:
Jun 05, 2018 7:52:19 AM
STDOUT: geogebra.euclidian.EuclidianView[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=java.awt.Dimension[width=20,height=20],preferredSize=]
Jun 05, 2018 7:52:19 AM
STDERR: XXXXXXXXX Number of registered views = 1
Jun 05, 2018 7:52:19 AM
STDOUT: class geogebra.euclidian.EuclidianView
Jun 05, 2018 7:52:20 AM
STDERR: *** Message from [geogebra.gui.view.algebra.AlgebraView.<init>]
Jun 05, 2018 7:52:20 AM
STDERR:
Jun 05, 2018 7:52:20 AM
STDERR: XXX creating Algebra View XXX
Jun 05, 2018 7:52:20 AM
STDOUT: current views:
Jun 05, 2018 7:52:20 AM
STDOUT: geogebra.euclidian.EuclidianView[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=java.awt.Dimension[width=20,height=20],preferredSize=java.awt.Dimension[width=640,height=480]]
Jun 05, 2018 7:52:20 AM
STDOUT: geogebra.gui.view.algebra.AlgebraView[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EmptyBorder@512d92b,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=true,invokesStopCellEditing=true,largeModel=true,rootVisible=false,rowHeight=-1,scrollsOnExpand=true,showsRootHandles=false,toggleClickCount=1,visibleRowCount=20]
Jun 05, 2018 7:52:20 AM
STDERR: XXXXXXXXX Number of registered views = 2
Jun 05, 2018 7:52:20 AM
STDOUT: class geogebra.euclidian.EuclidianView
Jun 05, 2018 7:52:20 AM
STDOUT: class geogebra.gui.view.algebra.AlgebraView
Jun 05, 2018 7:52:20 AM
STDOUT: *** Message from [geogebra.main.GeoGebraPreferences.loadPrefsSystem]
Jun 05, 2018 7:52:20 AM
STDOUT:
Jun 05, 2018 7:52:20 AM
STDOUT: system preference /geogebra does not exist
Jun 05, 2018 7:52:20 AM
STDOUT: *** Message from [geogebra.main.GeoGebraPreferences.loadVersionCheckAllow]
Jun 05, 2018 7:52:20 AM
STDOUT:
Jun 05, 2018 7:52:20 AM
STDOUT: no ggbPrefsSystem : systemAllows = true
Jun 05, 2018 7:52:20 AM
STDOUT: *** Message from [geogebra.main.Application.setVersionCheckAllowed]
Jun 05, 2018 7:52:20 AM
STDOUT:
Jun 05, 2018 7:52:20 AM
STDOUT: versionCheckAllowed = true
Jun 05, 2018 7:52:20 AM
STDERR: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.plugin.ClassPathManipulator.addURL(ClassPathManipulator.java:68)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.plugin.PluginManager.<init>(PluginManager.java:80)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.main.Application.getPluginManager(Application.java:5048)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.main.Application.<init>(Application.java:612)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.main.Application.<init>(Application.java:467)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.gui.app.GeoGebraFrame.createApplication(GeoGebraFrame.java:288)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.gui.app.GeoGebraFrame.createNewWindow(GeoGebraFrame.java:311)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.gui.app.GeoGebraFrame.createNewWindow(GeoGebraFrame.java:276)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.gui.app.GeoGebraFrame.init(GeoGebraFrame.java:242)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.gui.app.GeoGebraFrame.main(GeoGebraFrame.java:196)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.GeoGebra.startGeoGebra(GeoGebra.java:103)
Jun 05, 2018 7:52:20 AM
STDERR: at geogebra.GeoGebra.main(GeoGebra.java:88)
我已经为 java 或 geogebra 运行了 ps ax grepping,但似乎什么都没有运行。有什么想法吗?
答案1
由于我意识到 geogebra 的 apt repo 版本已经过时了,所以我从https://wiki.geogebra.org/en/Reference:GeoGebra_Installation
由于 18.04 本身是 64 位(至少我的版本是)。我下载了:
geogebra-classic_6.0.471.0-201805301433_amd64.deb
然后我删除了 apt 安装
sudo apt remove geogebra geogebra-gnome
sudo apt autoremove
然后我安装了 gdebi 来帮助解决外国 .deb 的依赖关系
sudo apt install gdebi-core
并使用 gdebi 安装
sudo gdebi geogebra-classic_6.0.471.0-201805301433_amd64.deb
尽管命令行现在是 geogebra-classic,但它仍能顺利运行。