[SOLVED] Problems with broken packages when upgrading to Mint 21

Kicad has been working on my Linux Mint 20.3

I decided to upgrade. And got an error about Kicad.

Fixing check 'Foreign packages'
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --allow-downgrades -fyq -o Dpkg::Options::="--force-confold" -o Dpkg::Options::="--force-overwrite" cmake=3.16.3-1ubuntu1.20.04.1 cmake-data=3.16.3-1ubuntu1.20.04.1 flatpak=1.12.2-1flatpak1~20.04 gir1.2-flatpak-1.0=1.12.2-1flatpak1~20.04 kicad=5.1.5+dfsg1-2build2 kicad-demos=5.1.5+dfsg1-2build2 kicad-doc-en=5.1.5+dfsg1-2build2 kicad-footprints=5.1.5-1 kicad-libraries=5.1.5+dfsg1-2build2 kicad-packages3d=5.1.5-1 kicad-symbols=5.1.5-1 kicad-templates=5.1.5-1 libflatpak0=1.12.2-1flatpak1~20.04 python3-wxgtk4.0=4.0.7+dfsg-2build1
Reading package lists...
Building dependency tree...
Reading state information...
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:
 kicad : Depends: libocct-data-exchange-7.3 but it is not going to be installed
         Depends: libocct-foundation-7.3 but it is not going to be installed
         Depends: libocct-modeling-algorithms-7.3 but it is not going to be installed
         Depends: libocct-modeling-data-7.3 but it is not going to be installed
         Depends: libocct-ocaf-7.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Error - Return code: 100

It seems stuck. It said to try Downgrade Foreign Packages which I did.

I do not know what else to do. Should I uninstall Kicad, do the upgrade, then reinstall Kicad?

Thanks in advance.

That is what I did last week.
Just make sure all your personal Kicad stuff is copied to somewhere, preferably an external device that is removed from you computer before the Mint upgrade.

The only real pain in the posterior I suffered was reloading all the Personal Libraries back into Kicad.

Yes It installed fine. I have been using it since February no problem.

The issue is I want to upgrade from Linux Mint 20.3 to 21 and it says one of the packages Kicad uses is broken.
[
I have tried folowing these instructions (How to upgrade to Linux Mint 21 — Linux Mint User Guide documentation)

And this package Kicad uses is broken

I followed these instructions to fix broken packages
https://www.makeuseof.com/how-to-find-and-fix-broken-packages-on-linux/

And it does not help.

I went to synaptic package manager and found libocct-data-exchange-7.3 in the list of packages, so I tried to install it. And it said it was broken. And to install it it would remove kicad.

So I am thinking I need to remove Kicad, Do the Mint upgrade, then reinstall Kicad.

Sorry @Kipton_Moravec

I miss-read your problem and gave a wrong reply. I have since edited that reply, see my above post now.

I think you would need to reinstall KiCad since Mint 21 is based on Ubuntu 22.04 and the packages for KiCad would need to be those for Ubuntu 22.04 rather than 20.04. For sure the DEB lines in the apt.conf list would need to be updated.

Here is what happened.

I had to let it downgrade Kicad to an old verrsion 5.6 (or something like that) which was in use in 2020. I did not chose it, the downgrade program chose it. I did not open Kicad at all in the downgraded state.

Then after I upgraded to Linux Mint 21 it wanted to upgrade to Kicad 7.06, so I let it upgrade. Then when I upgraded to 20.1 nothing happened to Kicad.

Now I just opened the project I was working on before the update and it seems O.K.

So letting it revert back to the old version seemed to solve the problem.

2 Likes

I do not know how to marked this solved. (I am relatively new.)

You have to edit the title.