404 error when installing krb5-user module

Manually remove the var directory path to refresh the cached data.

Written by david.vega

Last published at: November 25th, 2024

Problem

When trying to install the krb5-user package on your cluster’s Ubuntu OS, you receive a 404 error. 

 

Unable to correct missing packages.
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libgssrpc4_1.17-6ubuntu4.1_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkadm5clnt-mit11_1.17-6ubuntu4.1_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkdb5-9_1.17-6ubuntu4.1_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/k/krb5/libkadm5srv-mit11_1.17-6ubuntu4.1_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/k/krb5/krb5-user_1.17-6ubuntu4.1_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Aborting install.;

 

Cause

When there is a package update in the krb5-user Ubuntu repository, the previous version is removed.

In the Ubuntu OS, package references saved within /var/lib/apt/lists/ are cached, causing the package info to point to the previous, now no longer available, version.

 

Note

The command apt-get clean doesn't clear the /var/lib/apt/lists/ directory. This is a common OS behavior.

 

 

Solution

Manually remove the /var/lib/apt/lists/ path to refresh the cached data. 

 

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get -y update
sudo apt-get install -y libkrb5-user