Installation on Ubuntu 22.04 LTS

Hi, after updating 22.04, I can not install KiCAD 7, message about unmet dependencies:

The following packages have unmet dependencies:
libocct-data-exchange-7.6 : Breaks: libocct-data-exchange-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
libocct-foundation-7.6 : Breaks: libocct-foundation-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
libocct-modeling-algorithms-7.6 : Breaks: libocct-modeling-algorithms-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
libocct-modeling-data-7.6 : Breaks: libocct-modeling-data-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
libocct-ocaf-7.6 : Breaks: libocct-ocaf-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
libocct-visualization-7.6 : Breaks: libocct-visualization-7.5 but 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Did anyobody had the same problem?

22.04 l/k/ubuntu?
no, here (mate) seems fine.
add detailed kc infos like:

Application: KiCad x86_64 on x86_64

Version: 7.0.10-7.0.10~ubuntu22.04.1, release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.11.1
	HarfBuzz 6.0.0
	FontConfig 2.13.1
	libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16

Platform: Ubuntu 22.04.3 LTS, 64 bit, Little endian, wxGTK, mate, x11

Build Info:
	Date: Dec 31 2023 13:35:31
	wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.2
	Curl: 7.88.1
	ngspice: 38
	Compiler: GCC 11.4.0 with C++ ABI 1016

Build settings:
	KICAD_SPICE=ON

It seems that you have installed another software that makes use of Open CASCADE stuffs version 7.6.
However, Ubuntu 22.04 itself only provides them up-to version 7.5. And these two versions are not compatible with each others.

So, that might come from an external PPA for instance.

Try getting reverse dependencies on some of those packages to see from which software it comes.
Eg. with: apt-cache rdepends --installed libocct-visualization-7.6

In any case, the cure will probably be to uninstall that other software unfortunately…

Otherwise, try installing either KiCad or that other software using a “containerized” form like a Snap, or a Flatpack, if that exists for one of them. But that usually means greater pains in the end…

This is probably caused by installing FreeCAD from PPA (but there may be other tools that also bundle a newer OCC)

We’re trying to resolve this but it may take a day or so.

This should be fixed for the 7.0 testing builds (and will be fixed for 7.0.11 when it is released)

@craftyjon this was not fixed with the 7.0.11 release.
7.0.11 depends on libocct-*-7.6, which “breaks” 7.5, which is what the freecad package depends on in 22.04 (0.19.2+dfsg1-3ubuntu1, not a PPA).

That’s a different problem. You will have to use FreeCAD from PPA rather than from Ubuntu if you also want to use KiCad from PPA. We’re trying to keep our PPA in sync with their PPA, so that people who want to run the newer versions of both have compatible OCC.

1 Like

makes sense, thanks.