How to fix error the following packages have been held back in Linux Mint or Ubuntu Linux

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.

One thought on “How to fix error the following packages have been held back in Linux Mint or Ubuntu Linux

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

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s