AlmaLinux 8: No package updates for some time

Scrub this post I’ll do it again in a min

SYSTEM INFORMATION
OS type and version AlmaLinux 8.10
Webmin version 2.111
Usermin version 2.010
Virtualmin version 7.10.0
Theme version 21.10
Package updates All installed packages are up to date

I updated this server from CentOS7 to Alma8 using Alma Elevate.

It was updating at first but no packages updates (Virtualmin/Webmin or OS) for a while now. I have tried:

virtualmin setup-repos
dnf clean all
sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --setup

These repositories are enabled:
virtualmin (Virtualmin 7) - https://software.virtualmin.com/vm/7/rpm/$basearch/
virtualmin-noarch (Virtualmin 7 GPL) - https://software.virtualmin.com/vm/7/gpl/rpm/noarch/

Running dnf update gives:

CentOS-7 - SCLo sclo                            0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'centos-sclo-sclo':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?arch=x86_64&release=7&repo=sclo-sclo [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'centos-sclo-sclo': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?arch=x86_64&release=7&repo=sclo-sclo [Could not resolve host: mirrorlist.centos.org]

It looks to me that I need to point the ‘update command’ to the almalinux mirrors, I would appreciate a pointer on that. I can’t see that would affect the updating of Virtualmin or Webmin though.

You need to check the /etc/yum.repos.d directory, and manually disable all CentOS-related repositories, and only keep the CentOS-Vault repository enabled.

You’ve added ‘CentOS 7’ to the title of this thread, is that because you think I am using that OS. I am on Alma 8.10 - do the instructions you’ve just given still apply? If so, do I create a new .repo file with the contents you gave?

This is the content of /etc/yum.repos.d

I’ve just disabled the two CentOS repos and all seems fine now - 109 updates waiting (including Vmin/Wmin etc) - so that seems to have sorted it.

Thanks for the pointer.

1 Like

I incorrectly assumed you were using CentOS 7 — my apologies!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.