Getting this error sudo pro enable fips-updates
:
Failed running command 'apt-get install --assume-yes --allow-downgrades -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ubuntu-fips' [exit(100)].
Message: E: Unable to correct problems, you have held broken packages.
Logs:
["2024-01-18T02:36:14.000", "WARNING", "ubuntupro.system", "subp", 715,
"Stderr: E: Unable to correct problems, you have held broken packages.\n\n
Stdout: Reading package lists...\n
Building dependency tree...\n
Reading state information...\n
Some packages could not be installed. This may mean that you have\n
requested an impossible situation or if you are using the unstable\n
distribution that some required packages have not yet been created\n
or been moved out of Incoming.\n
The following information may help to resolve the situation:\n\n
The following packages have unmet dependencies:\n
libgcrypt20-hmac : Depends: libgcrypt20 (= 1.9.4-3ubuntu3+Fips1.2) but 1.9.4-3ubuntu3 is to be installed\n
ubuntu-fips : Depends: libssl3 (= 3.0.2-0ubuntu1.12+Fips1) but 3.0.2-0ubuntu1.12 is to be installed\n
Depends: libgcrypt20 (= 1.9.4-3ubuntu3+Fips1.2) but 1.9.4-3ubuntu3 is to be installed\n", {}]
ubuntu-fips
is to be installed, but what are the other options for? – Jos Jan 18 '24 at 11:50Updating FIPS Updates package lists Installing FIPS Updates packages Updating standard Ubuntu package lists Could not enable FIPS Updates. Updating package lists Unexpected APT error. Failed running command 'apt-get install --assume-yes --allow-downgrades -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ubuntu-fips' [exit(100)]. Message: E: Unable to correct problems, you have held broken packages.
– Adarsh S Jan 18 '24 at 11:51sudo dpkg -l | grep '^.[^i]'
command. However, I've also generalized my answer, you can try it yourself, or if you update your post I may also have a look at it. – rusty Jan 18 '24 at 13:14fips
is not supported on 22.04 Jammy - according to the docs at Ubuntu Pro - https://ubuntu.com/tutorials/using-the-ubuntu-pro-client-to-enable-fips#1-overview "An Ubuntu machine running Ubuntu server or desktop 16.04 LTS, 18.04 LTS, or 20.04 LTS". Here is my fail log: https://gist.github.com/KathyReid/394398d16715834aebe9971a88fc9575 – Kathy Reid Mar 31 '24 at 08:24