造冰箱的大熊猫,本文适用于Ubuntu 20.04@cnblogs 2020/12/19
问题:在Ubuntu 20.04下通过apt-get安装了scilab后,发现其GUI界面无法启动,在命令行执行scilab收到错误提示“Scilab cannot create Scilab Java Main-Class (we have not been able to find the main Scilab class. Check if the Scilab and thirdparty packages are available)”。
解决:搜索一番后发现,有人说是ubuntu软件仓库中的版本损坏需要官方修复,同时给出了一种临时解决措施,抄录如下:
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-cli_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-data_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-doc-fr_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-doc-ja_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-doc-pt-br_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-doc_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-full-bin_6.1.0+dfsg1-6build2_amd64.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-include_6.1.0+dfsg1-6build2_amd64.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-minimal-bin_6.1.0+dfsg1-6build2_amd64.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab-test_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/s/scilab/scilab_6.1.0+dfsg1-6build2_all.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-103-1_1.10.6+repack-2_amd64.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-hl-100_1.10.6+repack-2_amd64.deb wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libm/libmatio/libmatio9_1.5.17-5_amd64.deb sudo apt-get install ./lib*.deb sudo apt-get install ./scilab*.deb
简单粗暴,但实测能够解决问题。