I used sudo apt install kicad
which gave the following output:
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.
I followed the question (and the question inside posted by @retiredfeline ) from here: https://forum.kicad.info/t/broken-packages-on-ubuntu/48307
I tried to remove, install, update and upgrade the broken pakages but it did not help.