安装 Julia 语言的问题

Gab*_*iel 10 apt ppa julia-lang software-installation 16.10

我正在遵循此处的说明(请参阅 Ubuntu 部分)。它说我要做

sudo add-apt-repository ppa:staticfloat/juliareleases
sudo add-apt-repository ppa:staticfloat/julia-deps
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

但是接下来的命令

sudo apt-get install julia
Run Code Online (Sandbox Code Playgroud)

给我

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:
 julia : Depends: libcholmod1.7.1 but it is not installable or
              libcholmod2.1.2 but it is not installable or
              libcholmod3.0.6 but it is not installable
     Depends: libumfpack5.4.0 but it is not installable or
              libumfpack5.6.2 but it is not installable or
              libumfpack5.7.1 but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我正在使用 Xubuntu 16.10。

你能帮我了解发生了什么以及如何解决吗?

小智 7

对于未来的用户:从https://julialang.org/downloads/获取更新版本/工作链接

# go to your user folder
cd ~
# get julia
wget https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.0-linux-x86_64.tar.gz
# extract the file (eXtract File as options)
tar xf julia-1.3.0-linux-x86_64.tar.gz
# Create a shortcut (a soft link) that's places in a globally accessible folder
sudo ln -s ~/julia-1.3.0/bin/julia /usr/local/bin/julia
Run Code Online (Sandbox Code Playgroud)

现在你可以在julia任何地方跑步。


小智 1

看来您的包裹已损坏。要解决该问题,您可能需要尝试在终端中输入以下内容:

sudo sh -c "apt-get update;apt-get dist-upgrade;apt-get autoremove;apt-get autoclean"
Run Code Online (Sandbox Code Playgroud)

还要将其输入到终端中:

sudo apt --fix-broken install
Run Code Online (Sandbox Code Playgroud)

这应该可以修复损坏的软件包。现在尝试再次安装 Julia。