V9.0 not working on Ubuntu 24.04

@craftyjon, you nailed it!!! Thank you! I had the ppa for the development version of FreeCAD active, but I don’t need it because I have installed both the stable and development version of FreeCAD as AppImages. Now, kicad installed properly. However, the plugin manager lists but cannot install some plugins, among them kicad-action-scripts and Replicate Layout. Strangely enough, kicad-action-scripts refers to the RF toolkit web page (both by @easyfw). The RF toolkit was not installable from the plugin manager, until the very recent versions of KiCAD8 and the current version of KiCAD9. Otherwise, I am eager to give KiCAD9 a spin! Thanks again!

1 Like

why not just update the library in ppa to version 7.8.? I reported this to the repository maintainer. This also applies to ngspice 44.

I’m not 100% sure, but I believe that the Replicate Layout plugin is deprecated since KiCad v9 now has “Multi-channel design support” natively.

1 Like

Because it would break any other software that is built against the version of OCCT provided by Ubuntu. If you want a newer OCCT I recommend using the software from AppImage or Flatpak.

Isn’t it enough to specify the assembly not in the system folder? So that the program uses its dependencies and not the system ones? Is this a problem with the packer?

Nope. That’s not how Ubuntu packaging works. That is how things like AppImage work, which is why the suggestion to use AppImage FreeCAD is a good one.

1 Like

Strange but it worked with ngspiсe I collected it in a separate folder and everything worked regardless of system libraries. I do not use special packers portable versions etc.

of course it will work as due to the search path ordering. Likewise statically linking would work.
This is also flatpak and all that work as they bundle.

HOWEVER, this doesn’t scale well and that is why dynamic linking is the used. The issue then becomes ABI alignment and that is why builds need to be against what a distribution provides

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.

2 Likes

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

1 Like

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

Try:

sudo apt remove "libocct*"
sudo apt install kicad
1 Like

This fixed the issue and allowed Kicad 9.0 to install properly.
Thanks so much !

Marco

2 Likes

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

4 posts were merged into an existing topic: System freezing opening KiCad Library