Issue upgrading to KiCad 9: 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

Hi All,

Looks like I am seeing the same old bug. I cant seem to install Kicad 9 on Ubuntu 24.04 due to a package dependencies issue. Upgrading throughout version 8 has been flawless.

So far I have uninstalled KiCad v8, and removed the ppa from sources. I do not have FreeCad installed (not sure if this would be related). Here is what I am seeing:

$ sudo apt -f install --install-recommends kicad --fix-broken
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.

Try uninstalling occt-misc first

No luck unfortunately.

I tried to remove occt-misc, I then added kicad-9.0-releases ppa, updated and tried to install kicad, but I am still stuck with the same error.

Seems my response was a little too quick… I did find a solution, though I am not sure if this might break something in the future.

I uninstalled occt-misc:

sudo apt-get -y autoremove --purge occt-misc

and installed the specific version that was being called for:

sudo apt-get -y install occt-misc=7.6.3+dfsg1-7.1build1

which installed fine… then:

sudo apt -f install --install-recommends kicad --fix-broken

which installed KiCad 9!

Cant wait to see test out the new changes in KiCad 9!

Yeah, this is always an annoying issue that seems to pop up with major KiCad upgrades that nobody tells you about.

My own solution, upon seeing the error, is to simply uninstall all the “occt” nonsense, and let apt install whatever KiCad wants when I install the new version of KiCad.

Unless I was not following the correct method of uninstalling occt-misc above…
I assumed uninstalling occt-misc using the command above and allowing apt to install kicad would mean that the correct version of occt-misc would be installed… But what I saw was that the kicad installer still would not allow me to install the correct version of occt-misc, resulting in the error above.

Uninstalling occt-misc alone did not seem to correct this. I needed to uninstall occt-misc and manually install the correct occt-misc version ‘7.6.3+dfsg1-7.1build1’ first, then let apt install kicad.