Ubuntu: All of KiCad deleted?

I’m sure this must be user error, but for the life of me, I can’t figure it out. Today, when I went to use KiCAD, it couldn’t be found. There was no trace of the kicad software on my system. I had used it less than a month earlier, so I was really puzzled.

I found this evidence in /var/log/apt/history.log.1:

Start-Date: 2024-01-29  14:47:47
Commandline: apt-get autoremove
Requested-By: kevin (1000)
Remove: kicad-demos:amd64 (7.0.10~ubuntu22.04.1), kicad-libraries:amd64 (7.0.9~ubuntu22.04.1), kicad-footprints:amd64 (7.0.9-0~ubuntu22.04.1), kicad-templates:amd64 (7.0.9-0~ubuntu22.04.1), libngspice0:amd64 (36+ds-1), kicad-packages3d:amd64 (7.0.9-0~ubuntu22.04.1), kicad-doc-en:amd64 (7.0.8-0~ubuntu22.04.1), kicad-symbols:amd64 (7.0.9-0~ubuntu22.04.1)
End-Date: 2024-01-29  14:47:50

Earlier, in that same history file, I found:

Start-Date: 2024-01-04  10:43:34
Commandline: apt-get upgrade
Requested-By: kevin (1000)
Upgrade: kicad-demos:amd64 (7.0.9~ubuntu22.04.1, 7.0.10~ubuntu22.04.1), kicad:amd64 (7.0.9~ubuntu22.04.1, 7.0.10~ubuntu22.04.1), r-cran-cluster:amd64 (2.1.5-1.2204.0, 2.1.6-1.2204.0), r-cran-mgcv:amd64 (1.9-0-1.2204.0, 1.9-1-1.2204.0), r-cran-rpart:amd64 (4.1.21-1.2204.0, 4.1.23-1.2204.0)
End-Date: 2024-01-04  10:43:40

This seems normal at this point, and shows that kicad was there.

However, this immediately proceeded the delete by one day (look for ‘kicad’ in the remove line):

Start-Date: 2024-01-28  11:21:26
Commandline: apt install libocct*-dev
Requested-By: kevin (1000)
Install: libocct-foundation-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libocct-data-exchange-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libfmt8:amd64 (8.1.1+ds1-2, automatic), libocct-ocaf-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-draw-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-modeling-algorithms-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libocct-visualization-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-foundation-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-modeling-data-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libfreeimage-dev:amd64 (3.18.0+ds2-6ubuntu5.1, automatic), libocct-modeling-algorithms-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-modeling-data-dev:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1), libocct-data-exchange-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), occt-misc:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libocct-ocaf-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libocct-draw-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libocct-visualization-7.6:amd64 (1:7.6.3+dfsg1-8~ubuntu22.04.1, automatic), libfreecad-python3-0.21:amd64 (2:0.21.2+dfsg1~202401262230~ubuntu22.04.1, automatic)
Upgrade: freecad:amd64 (2:0.20.1+dfsg1~202210271541~ubuntu22.04.1, 2:0.21.2+dfsg1~202401262230~ubuntu22.04.1), freecad-common:amd64 (2:0.20.1+dfsg1~202210271541~ubuntu22.04.1, 2:0.21.2+dfsg1~202401262230~ubuntu22.04.1), freecad-python3:amd64 (2:0.20.1+dfsg1~202210271541~ubuntu22.04.1, 2:0.21.2+dfsg1~202401262230~ubuntu22.04.1)
Remove: libocct-foundation-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), libocct-modeling-algorithms-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), libocct-modeling-data-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), kicad:amd64 (7.0.10~ubuntu22.04.1), libocct-data-exchange-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), libocct-ocaf-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), libocct-visualization-7.5:amd64 (1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1), libfreecad-python3-0.20:amd64 (2:0.20.1+dfsg1~202210271541~ubuntu22.04.1)
End-Date: 2024-01-28  11:21:36

Why would installing libocct*-dev cause kicad to be marked and removed? libocct is the Open Cascade Technology library, which I think I installed to work with either FreeCAD or Inkscape-Ink/Stitch. Is this a problem to take up with the libocct developers?

Thanks for any thoughts on this puzzling occurrence.

-Kevin

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
kevin@kevin-desktop:/var/log/apt$

And, a further glitch:

$ sudo apt-get 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-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.
kevin@kevin-desktop:~$

I’m guessing that I have to uninstall libocct* before I can proceed with the kicad reinstall. Any thoughts?

-Kevin

Will be fixed once 7.0.11 is released; for now install the 7.0 testing PPA.

FreeCAD updated their OCCT dependency and now it’s incompatible with the one KiCad 7.0.10 and below use.

There is an easy workaround. I don’t know if it will screw up freecad but I have freecad installed as well and it seems to work fine. Theshould install the correct version of occt-misc:

sudo apt-get install occt-misc=7.6.3+dfsg1-7

@craftyjon, thank you so much. That worked like a champ.

-Kevin