leoheck
February 24, 2025, 2:21pm
1
I am installing Kicad 9 (from the PPA) on Ubuntu 24.04.
I always find issues like this when installing a new version. Why this always happens?
Can we have a solution that allows users to use newer Kicad versions in existing OS?
➜ 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-8~ubuntu24.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
leoheck
February 24, 2025, 2:22pm
2
I could find a quick (dirty) solution… I am going to test this to see if it works.
opened 02:36PM - 27 Jan 24 UTC
closed 11:37PM - 20 Mar 24 UTC
Dependencies
### Is there an existing issue for this?
- [X] I have searched the existing iss… ues
### Problem description
Installing FreeCAD 21.1 removes KiCAD 7.0. on Ubuntu 22.04 - Reinstall of KiCAD is not possible.
```
$ sudo apt install freecad
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
kicad-demos kicad-doc-en kicad-footprints kicad-libraries kicad-packages3d kicad-symbols kicad-templates libngspice-kicad libpcre2-32-0 libwxbase3.2-1
libwxgtk-gl3.2-1 libwxgtk3.2-1 python3-wxgtk4.0 unixodbc
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
freecad-python3 libfreecad-python3-0.21 libocct-data-exchange-7.6 libocct-draw-7.6 libocct-foundation-7.6 libocct-modeling-algorithms-7.6
libocct-modeling-data-7.6 libocct-ocaf-7.6 libocct-visualization-7.6
Vorgeschlagene Pakete:
povray
Empfohlene Pakete:
python3-opencamlib
Die folgenden Pakete werden ENTFERNT:
kicad libocct-data-exchange-7.5 libocct-foundation-7.5 libocct-modeling-algorithms-7.5 libocct-modeling-data-7.5 libocct-ocaf-7.5
libocct-visualization-7.5
Die folgenden NEUEN Pakete werden installiert:
freecad freecad-python3 libfreecad-python3-0.21 libocct-data-exchange-7.6 libocct-draw-7.6 libocct-foundation-7.6 libocct-modeling-algorithms-7.6
libocct-modeling-data-7.6 libocct-ocaf-7.6 libocct-visualization-7.6
0 aktualisiert, 10 neu installiert, 7 zu entfernen und 3 nicht aktualisiert.
Es müssen noch 0 B von 59.6 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 46.1 MB Plattenplatz freigegeben.
```
Trying to reinstall KiCAD:
```
$ sudo apt -f install --install-recommends kicad --fix-broken
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
libocct-data-exchange-7.6 : Beschädigt: libocct-data-exchange-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
libocct-foundation-7.6 : Beschädigt: libocct-foundation-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
libocct-modeling-algorithms-7.6 : Beschädigt: libocct-modeling-algorithms-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
libocct-modeling-data-7.6 : Beschädigt: libocct-modeling-data-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
libocct-ocaf-7.6 : Beschädigt: libocct-ocaf-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
libocct-visualization-7.6 : Beschädigt: libocct-visualization-7.5 aber 1:7.5.2+dfsg1-0~202107020155~ubuntu22.04.1 soll installiert werden
E: Fehler: Unterbrechungen durch pkgProblemResolver::Resolve hervorgerufen; dies könnte durch zurückgehaltene Pakete verursacht worden sein.
```
So the de-installation of another software is a violation of a users privacy and may not be tolerable!
The FreeCAD installation has to be modified to respect this.
### Full version info
```shell
[code]
OS: Ubuntu 22.04.3 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.2)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.10.12, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Switzerland (de_CH)
Installed mods:
* MakerWorkbench 1.0.1
* parts_library
* Curves 0.6.8
* freecad.gears 1.0.0
* fasteners 0.4.56
* frame 0.1.0
[/code]
```
### Subproject(s) affected?
None
### Anything else?
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
leoheck
February 24, 2025, 2:42pm
4
Ok, awesome. This seems to be working (installing it). Thanks.
1 Like