following your logic freecad ppa should use a similar version of the library but this does not happen it uses 7.8.1 FreeCAD Daily Builds : “FreeCAD maintainers” team
Yes, by including OCCT in their PPA, FreeCAD makes it impossible to use any other software that depends on OCCT and has been built against any other version. They probably have reasons for doing so, but it does mean that using their PPA is only useful for a limited set of users. Using AppImage is better.
And that’s the problem.
If Ubuntu provided opencascade then applications depending on it would be able to build against the OS provided version and request it as a dependency THEN this issue wouldn’t really exist.
But because Ubuntu don’t what ends up happening is some PPA.
This is where Gentoo comes onto its own as the OCCT library is on the system and freecad and Gentoo build against a common shared library
Ubuntu does, just an older version than in the FreeCad PPA.
Yes true, I didn’t want to confuse things more by getting into specific versions as that just opens the door to “why can’t Kicad just use that version then…”
Fundementally, a dependency has to be ment and of it is met outside of the base OS then some alignment on who’s is linked against comes into play. This is also why I don’t like overlays in Gentoo as some random overlay might offer an ebuild for an app I might want but they alsoight include random other things. At least with Gentoo it’s all on your system to link against
Hello,
the solution does not work for me. I do not own FreeCAD nor I know what it is, but still Kicad 9.0 does not install on my Ubuntu 22.04.5 LTS.
I have even removed and re-installed occt by:
- sudo apt-get remove occt-misc
- sudo apt-get purge occt-misc
- sudo apt-get install libocct-visualization-7.6
This is what the system outputs after sudo apt install kicad:
~/programs/kicad\> sudo apt install kicad
Reading package lists... Done
Building dependency tree... Done
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:
libocct-data-exchange-7.6 : Breaks: libocct-data-exchange-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
libocct-foundation-7.6 : Breaks: libocct-foundation-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
libocct-modeling-algorithms-7.6 : Breaks: libocct-modeling-algorithms-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
libocct-modeling-data-7.6 : Breaks: libocct-modeling-data-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
libocct-ocaf-7.6 : Breaks: libocct-ocaf-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
libocct-visualization-7.6 : Breaks: libocct-visualization-7.5 but 7.5.1+dfsg1-2ubuntu1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
What am I missing ?
Thanks in advance,
Marco
This fixed the issue and allowed Kicad 9.0 to install properly.
Thanks so much !
Marco
I’m on Ubuntu 24.04 and are having trouble updating / installing kicad-nightly. I do not have freecad installed and followed most of the instructions for removing libocct and/or occt-misc.
This what I get when trying to install kicad-nightly:
arune@xps:~$ sudo apt install kicad-nightly
Reading package lists... Done
Building dependency tree... Done
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:
libocct-visualization-7.6t64 : Depends: occt-misc (= 7.6.3+dfsg1-7.1build1) but 1:7.6.3+dfsg1-8~ubuntu24.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Thanks, I actually cleaned sources.list.d when I updated to 24.04 but this did the trick for me:
sudo apt-get -y install occt-misc=7.6.3+dfsg1-7.1build1