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?
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.
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.
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.
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.