Was running stable 8.x and 9.x nightly before without issues. Have now tried removing both and re-installing 9.0.
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-visualization-7.6t64 : Depends: occt-misc (= 7.6.3+dfsg1-7.1build1) but 1:7.6.3+dfsg1-9~ubuntu24.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Getting this on both my Ubuntu 24.04 devices.
Seen a few references to this issue if you are running FreeCAD but I don’t have it installed.
I had the same problem now with v9 and I had the same problem with v8. Back then, I solved the problem by installing the flatpak version. Unfortunately, as of this writing, I don’t think v9 is available from flatpak, at least not yet. And I agree, the suggestion to pin libocct-visualization to version 7.6 may help install KiCAD9 from the ppa aliright, but is not acceptable if it disables other programs! So, the solution checkmark, above, should be removed?
@craftyjon, thank you for your advice, but it did not work. I deleted the kicad9 repo and made sure no other kicad repo was installed, I purged anything with ‘occt’ or ‘kicad’ in its name with sudo apt remove --purge '*occt*' '*kicad*' (I was shown a long list of matches of either glob but there was nothing to purge), then reinstalled the v9 repo with sudo add-apt-repository ppa:kicad/kicad-9.0-releases and then tried to install kicad. Strangely, I got the same error:
~$ 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-visualization-7.6t64 : Depends: occt-misc (= 7.6.3+dfsg1-7.1build1) but 1:7.8.1+dfsg1-3~ubuntu24.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
So, there is a misconfiguration by the packagers, then? Why does apt insist on installing 1:7.8.1+dfsg1-3~ubuntu24.04.1 and not a compatible version? I am running stock 64-bit Ubuntu 24.04LTS, fully updated.
@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!
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.