When updating packages in Linux Mint 21 or Ubuntu 22.04 LTS, at times, a message appears, as shown below, that states the following packages have been held back.
$ sudo apt-get dist-upgrade
<enter>
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
cryptsetup cryptsetup-bin cryptsetup-initramfs libcryptsetup12
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
If you get the above error, there is no haste in upgrading the packages kept back. Packages could have been kept back due to changes in their dependencies not yet ready for publication in the repository.
Wait, or if you cannot wait make sure you take a backup of your data then open a terminal window and upgrade each package individually using:
$ sudo apt-get install cryptsetup cryptsetup-bin cryptsetup-initramfs libcryptsetup12
<enter>
Note that it makes sense to not be in a hurry.
Thanks for the reassurance. I’ve been seeing this a lot more frequently with Ubuntu 22.04. Waiting a few days and trying again has worked.
LikeLike