installing julia

Asked by Huckleberry Febbo

Hello, I am a new julia user trying to install a more recent version of julia and I entered the commands:

sudo add-apt-repository ppa:staticfloat/juliareleases
sudo add-apt-repository ppa:staticfloat/julia-deps
sudo apt-get update
sudo apt-get install julia

from the website:
http://julialang.org/downloads/platform.html

but I get this error:

febbo@febbo-HP-ZBook-17-G2:/$ sudo apt-get install julia
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  julia-common libamd2.4.1 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6 libdsfmt-19937-1 libopenlibm2 libopenspecfun1 libpcre2-8-0 libspqr2.0.2 libumfpack5.7.1 libutf8proc1
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  ess julia-doc
The following NEW packages will be installed:
  julia
0 upgraded, 1 newly installed, 0 to remove and 338 not upgraded.
Need to get 0 B/20.2 MB of archives.
After this operation, 103 MB of additional disk space will be used.
(Reading database ... 179057 files and directories currently installed.)
Preparing to unpack .../julia_0.4.6-xenial1_amd64.deb ...
Unpacking julia (0.4.6-xenial1) ...
dpkg: error processing archive /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/julia/base/dft.jl', which is also in package julia-common 0.4.5-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas? Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu julia Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Run:

sudo dpkg --force-all -i /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb

sudo apt-get -f install

You should contact the PPA maintainer to report the overlapping packages

Revision history for this message
Huckleberry Febbo (febbo-) said :
#2

Awesome, thanks!

So, that installed 0.4.6 for julia, I was actually looking to install a more recent version, perhaps v0.5.0-rc2. How do I do this now that I have 0.4.6? Do I remove 0.4.6?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

No idea. If there is a PPA with the newer version then just add it and then run normal updates and the package will be updated as normal

Revision history for this message
Davood Hajinezhad (dhaji) said :
#4

I have faced the same issue and I have tried your solution by running
sudo dpkg --force-all -i /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb
but I got the error

dpkg: error processing archive /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/julia_0.4.6-xenial1_amd64.deb

any help will be appreciated

Revision history for this message
M Faraday (mfaraday) said :
#5

In 16.04, this solved it for me:

sudo apt purge julia-common

then try again

sudo apt install julia

Can you help with this problem?

Provide an answer of your own, or ask Huckleberry Febbo for more information if necessary.

To post a message you must log in.