HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Having trouble installing or compiling FreeCAD? Get help here.
R-INYURU
Posts: 10
Joined: Sat Jun 09, 2018 4:23 pm

HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby R-INYURU » Wed Sep 19, 2018 5:56 pm

I have tried to install the daily build of FreeCAD on Ubuntu 18.04 and I used the information on this page https://www.freecadweb.org/wiki/Install_on_Unix. After adding the PPA, as I was going to install Freecad-daily and I was prompted that some packages are missing.

Code: Select all

  The following packages have unmet dependencies.
 freecad-daily : Depends: libmedc1v5 but it is not going to be installed
                 Depends: libvtk6.3 but it is not going to be installed
                 Recommends: calculix-ccx but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
so I started installing package by package but it turns out that those package needs other packages.

Code: Select all

The following packages have unmet dependencies.
 libmedc1v5 : Depends: libhdf5-openmpi-100 (>= 1.8.14) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
and yes it continues.

Code: Select all

The following packages have unmet dependencies.
 libhdf5-openmpi-100 : Depends: libgfortran4 (>= 7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
At this point I just stopped.

what I am doing wrong or whats could the cause of this?
User avatar
sgrogan
Posts: 4496
Joined: Wed Oct 22, 2014 5:02 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby sgrogan » Wed Sep 19, 2018 8:26 pm

R-INYURU wrote:
Wed Sep 19, 2018 5:56 pm
what I am doing wrong or whats could the cause of this?
Is this a fresh install of 18.04 or an upgrade of an older release?
If fresh how did you install?
triplus
Posts: 7321
Joined: Mon Dec 12, 2011 4:45 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby triplus » Wed Sep 19, 2018 11:37 pm

Hi @R-INYURU and welcome. Make sure you have the universe repository enabled:

https://forum.freecadweb.org/viewtopic. ... 80#p251226

P.S. While sorting out the dependency situation you can still start using FreeCAD by using the AppImage:

https://github.com/FreeCAD/FreeCAD/releases/
R-INYURU
Posts: 10
Joined: Sat Jun 09, 2018 4:23 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby R-INYURU » Thu Sep 20, 2018 8:41 am

sgrogan wrote:
Wed Sep 19, 2018 8:26 pm
Is this a fresh install of 18.04 or an upgrade of an older release?
I have upgraded from 16.04
triplus wrote:
Wed Sep 19, 2018 11:37 pm
Hi @R-INYURU and welcome. Make sure you have the universe repository enabled:

https://forum.freecadweb.org/viewtopic. ... 80#p251226
I have followed suggestion given on that topic, but it didn't work, I am still getting the same problem.
triplus wrote:
Wed Sep 19, 2018 11:37 pm
P.S. While sorting out the dependency situation you can still start using FreeCAD by using the AppImage:

https://github.com/FreeCAD/FreeCAD/releases/
Currently I am using the FC 0.17 the AppImage, I wanted to try out the daily build also.
User avatar
sgrogan
Posts: 4496
Joined: Wed Oct 22, 2014 5:02 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby sgrogan » Thu Sep 20, 2018 8:48 pm

R-INYURU wrote:
Thu Sep 20, 2018 8:41 am
Currently I am using the FC 0.17 the AppImage, I wanted to try out the daily build also.
Maybe this helps? https://askubuntu.com/questions/363200/ ... n-packages
Have you tried

Code: Select all

sudo apt-get upgrade
sudo apt-get update
sudo apt-get install freecad-daily
Be careful before just firing off sudo commands
triplus
Posts: 7321
Joined: Mon Dec 12, 2011 4:45 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby triplus » Fri Sep 21, 2018 12:16 am

R-INYURU wrote:
Thu Sep 20, 2018 8:41 am
I have followed suggestion given on that topic, but it didn't work, I am still getting the same problem.
Too bad. Therefore likely more in-depth investigation will be needed on what got borked during the upgrade procedure. And to sort out the dependencies first. Some old package causing the problems or something like that is likely at play.
Currently I am using the FC 0.17 the AppImage, I wanted to try out the daily build also.
Note that daily FreeCAD AppImage is available too (under the 0.18_pre section).
chrisb
Posts: 10803
Joined: Tue Mar 17, 2015 9:14 am

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby chrisb » Fri Sep 21, 2018 12:27 am

sgrogan wrote:
Thu Sep 20, 2018 8:48 pm

Code: Select all

sudo apt-get upgrade
sudo apt-get update
sudo apt-get install freecad-daily
You mixed the sequence. And I would use dist-upgrade as it does more cleaning on heavyer changes:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install freecad-daily
R-INYURU
Posts: 10
Joined: Sat Jun 09, 2018 4:23 pm

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby R-INYURU » Fri Sep 21, 2018 8:48 am

I have tried all the command suggested but nothing change its the same issue. I personally suspect the Ubuntu 18.04 to be the issue, there is some package (unrelated to freecad) that I can't upgrade since I moved to 18.04 and the autoremove command removes some packages after I get an update telling me to reinstall them.

Thanks.
User avatar
NormandC
Posts: 16801
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: HowTo install FreeCAD 0.18 on Ubuntu 18.04?

Postby NormandC » Sun Sep 23, 2018 5:04 pm

I'm afraid you'll need to troubleshoot and fix this issue then... Good luck.