Install multiple versions of freecad ubuntu

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
Mongrel_Shark
Posts: 130
Joined: Sat Oct 15, 2016 9:54 am
Location: Australia

Install multiple versions of freecad ubuntu

Postby Mongrel_Shark » Sun Sep 08, 2019 11:40 pm

I'm setting up a new pc. Its a work from home computer which has a sibling at work. The work one has Versions 0.16, 0.18.1 and daily0.19 installed. I got help on forum about this last time, but can't find my old post. Sorry for duplicating. I did google and forum search a lot before creating this post.(I haven't actually used daily or legacy in some time at work, after today I am suspecting updates may have broken my installs. Will be in office tomorow and can confirm.)

Trying to replicate and getting some issues. I got the stable and daily ppa's installed. but....

Installed stable first. It stopped working after I installed daily. I then re-installed stable, now I have both. but....

Daily is v0.18. Stable is 0.18.1. I did update and dist-upgrade. no change.

Daily:

Code: Select all

OS: Ubuntu 16.04.6 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Selection_003.png
Selection_003.png (128.88 KiB) Viewed 166 times
Stable:

Code: Select all

OS: Ubuntu 16.04.6 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Selection_002.png
Selection_002.png (121.74 KiB) Viewed 166 times

Facepalm. After reading above I see my daily is a later version, its just the splash screen not up to date. Although I really want v0.19 for the Tech Draw updates??
I have 2 icons on my launcher, and can identify daily by hovering mouse over launcher icon for tooltip. So its mostly working, just not the version of daily I want



Moving on to my legacy install. I got the legacy ppa installed.
I can see its updating

Code: Select all

Hit:9 http://ppa.launchpad.net/freecad-maintainers/freecad-legacy/ubuntu xenial InRelease
but when I try to install

Code: Select all

sudo apt-get install freecad-legacy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package freecad-legacy
User avatar
Mongrel_Shark
Posts: 130
Joined: Sat Oct 15, 2016 9:54 am
Location: Australia

Re: Install multiple versions of freecad ubuntu

Postby Mongrel_Shark » Mon Sep 09, 2019 12:06 am

update.

I saw this thread https://forum.freecadweb.org/viewtopic.php?t=27992
Which suggested I may have better luck if I uninstalled my other versions. Did an apt remove on stable and daily, and an auto remove after reboot to clear out the dependencys.

No joy with the legacy build.


Code: Select all

mongrel@CADboss:~$ sudo apt update
Hit:1 http://au.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://au.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:3 http://au.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Ign:4 http://linux.dropbox.com/ubuntu xenial InRelease                         
Hit:5 http://ppa.launchpad.net/freecad-maintainers/freecad-legacy/ubuntu xenial InRelease
Hit:6 http://linux.dropbox.com/ubuntu xenial Release                       
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Fetched 109 kB in 1s (59.3 kB/s)   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
mongrel@CADboss:~$ sudo apt install freecad-legacy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package freecad-legacy
vocx
Posts: 1727
Joined: Thu Oct 18, 2018 9:18 pm

Re: Install multiple versions of freecad ubuntu

Postby vocx » Mon Sep 09, 2019 1:03 am

First of all, your Ubuntu version is too old. Although 16.04 is a long term release, in free software development terms, it is quite old.

If my memory doesn't fail, there are various threads that mention that the daily builds, that is, the 0.19 version, isn't available for that Ubuntu version because of some old libraries that exist in that system, Qt in particular, I think. In this case, you may have more luck using the AppImages instead of getting the packages from repositories.

As for the legacy repository, you can explore it here https://launchpad.net/~freecad-maintain ... cad-legacy

You can clearly see that the package is named freecad-0.16, not freecad-legacy. This is something that you need to pay attention to. Sometimes the repository and the package name are different.

For the PPA stable version, the package is named freecad, and it should supersede the package provided by the Ubuntu universe repository. For the daily, the package is named freecad-daily.

I don't know why you need this, but I think you are going to complicate your life trying to simultaneously install very old and very new packages.
triplus
Posts: 8757
Joined: Mon Dec 12, 2011 4:45 pm

Re: Install multiple versions of freecad ubuntu

Postby triplus » Wed Sep 11, 2019 10:50 am

FreeCAD 0.16 and FreeCAD 0.18 packages should be available from the PPAs on Ubuntu 16.04. Daily PPA doesn't get updated anymore (Ubuntu 16.04), but you can use the AppImage instead:

https://forum.freecadweb.org/viewtopic.php?f=4&t=39148