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.
1 Like

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!

5 Likes

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.

Same problem as @Bren , and same solution as suggested to install the specific version of occt-misc.

I just tried to install KiCad 9 with `sudo apt -f install --install-recommends kicad and it installed KiCad 7 what am I doing wrong?

I have Ubuntu 24.01

TIA

try looking what you have under
/etc/apt/sources.list.d/
i had a lot of old stuff that was messing with the installation.
cleaning it up and following this this i managed to complete the install. (Ubuntu 24.04)

Thanks, that didnā€™t work got this:

steve@steve-home:~/Desktop$ sudo apt -f install --install-recommends kicad --fix-broken
Reading package listsā€¦ Done
Building dependency treeā€¦ Done
Reading state informationā€¦ Done
The following additional packages will be installed:
kicad-demos kicad-footprints kicad-libraries kicad-symbols kicad-templates libfreeimage3 libglew2.2 libhwloc-plugins libhwloc15 libimath-3-1-29t64 libjxr0t64 libngspice0
libocct-data-exchange-7.6t64 libocct-draw-7.6t64 libocct-foundation-7.6t64 libocct-modeling-algorithms-7.6t64 libocct-modeling-data-7.6t64 libocct-ocaf-7.6t64
libocct-visualization-7.6t64 libodbc2 libopenexr-3-1-30 libtbb12 libtbbbind-2-5 libtbbmalloc2 libwxbase3.2-1t64 libwxgtk-gl3.2-1t64 libwxgtk3.2-1t64 python3-wxgtk4.0 xsltproc
Suggested packages:
extra-xdg-menus kicad-doc-ca | kicad-doc-de | kicad-doc-en | kicad-doc-es | kicad-doc-fr | kicad-doc-id | kicad-doc-it | kicad-doc-ja | kicad-doc-pl | kicad-doc-ru | kicad-doc-zh
kicad-packages3d glew-utils libhwloc-contrib-plugins odbc-postgresql tdsodbc wx3.2-doc
The following NEW packages will be installed:
kicad kicad-demos kicad-footprints kicad-libraries kicad-symbols kicad-templates libfreeimage3 libglew2.2 libhwloc-plugins libhwloc15 libimath-3-1-29t64 libjxr0t64 libngspice0
libocct-data-exchange-7.6t64 libocct-draw-7.6t64 libocct-foundation-7.6t64 libocct-modeling-algorithms-7.6t64 libocct-modeling-data-7.6t64 libocct-ocaf-7.6t64
libocct-visualization-7.6t64 libodbc2 libopenexr-3-1-30 libtbb12 libtbbbind-2-5 libtbbmalloc2 libwxbase3.2-1t64 libwxgtk-gl3.2-1t64 libwxgtk3.2-1t64 python3-wxgtk4.0 xsltproc
0 upgraded, 30 newly installed, 0 to remove and 23 not upgraded.
Need to get 104 MB of archives.
After this operation, 655 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Any help gratefully accepted

Did you add the Ubuntu PPAs for KiCad as explained on the download page Install on Linux | KiCad EDA ? The packages are not in the official Ubuntu repos and wonā€™t automatically upgrade an existing installation. Also remove any out of date repos from your configuration.

I followed the procedure and all is now well, many thanks for the help.

Steve W