I cannot update Virtualmin

SYSTEM INFORMATION
OS type and version: 20.04
Webmin version: 1.984
Virtualmin version: 6.17-3

I get this error:

W: Conflicting distribution: http://software.virtualmin.com/vm/6/gpl/apt virtualmin-focal InRelease (expected virtualmin-focal but got focal)
W: Conflicting distribution: http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal InRelease (expected virtualmin-universal but got focal)
E: Failed to fetch http://software.virtualmin.com/vm/6/gpl/apt/dists/virtualmin-focal/main/cnf/Commands-amd64  404  Not Found [IP: 163.172.162.254 80]
E: Failed to fetch http://software.virtualmin.com/vm/6/gpl/apt/dists/virtualmin-universal/main/cnf/Commands-amd64  404  Not Found [IP: 163.172.162.254 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

What is the output of the following commands:

cat /etc/apt/sources.list.d/virtualmin.list || cat /etc/apt/virtualmin.list
uname -a
cat /etc/os-release
tree /etc/apt

Please check screenshot

Have you distro upgraded from previous Ubuntu version? What file /etc/apt/sources.list contains?

This is freshly installed Ubuntu.

This is the source file

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu focal main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu focal-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu focal universe
# deb-src http://us.archive.ubuntu.com/ubuntu focal universe
deb http://us.archive.ubuntu.com/ubuntu focal-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu focal multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu focal multiverse
deb http://us.archive.ubuntu.com/ubuntu focal-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://us.archive.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu focal-security main restricted
deb http://us.archive.ubuntu.com/ubuntu focal-security universe
# deb-src http://us.archive.ubuntu.com/ubuntu focal-security universe
deb http://us.archive.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu focal-security multiverse"

I have never seen this problem on freshly installed Ubuntu.

I am not sure of hand what is wrong. Sorry.

What is the output of the following commands? Does it work?

apt-get clean && apt-get update && apt-get upgrade

Also, make sure that date/time is in sync. You can easily sync date/time by running:

systemctl restart systemd-timesyncd.service

Time is also correct.

I am still not sure what’s wrong. Sorry. Besides, I didn’t see what’s under /etc/apt . I don’t do our repos but @Joe does, he must have more insights about it. Although people with familiar issue mentioned that the following command would work:

apt-get update -y --allow-releaseinfo-change

However, I wouldn’t recommend just applying this command blindly and rather suggested to figure out what’s the real cause of these error messages.

One more thing i can’t update through the terminal but I can update through Webmin. I am using these commands through SSH

Well, Webmin “forces” an update by listing the names of the packages to be installed explicitly.

Try zipping up and attach to this ticket /etc/apt directory. I haven’t seen this error before. It would be interesting to understand what’s causing it.

download-2022.1.26_18.50.25-server-(projectok.com).tar.gz (24.6 KB)

I don’t see how those errors can be accurate, though I did make some changes to how repos are handled in preparation for Virtualmin 7, and I rolled some new procmail-wrapper packages last night to all distro repos (which hasn’t happened in a long time for Ubuntu/Debian). But, our repos were never labeled with Origin Ubuntu or Label Ubuntu or Suite “focal-security”, etc. I don’t know how your apt would have become convinced of those things…doesn’t make sense.

Oh, but you also have a screwed up virtualmin-universal, and that gets updates all the time and nothing has changed in how it gets updated at all.

Your apt metadata is corrupt. I don’t know how you got there…but, it’s nothing to do with our repos. You can see, e.g. the virtualmin-universal repo here: https://software.virtualmin.com/vm/6/gpl/apt/dists/virtualmin-universal/InRelease

All those fields are virtualmin-universal (this is just what aptly does when not given more details, apt repos are needlessly stupidly complex), and I’m pretty sure that’s always been the case for vm6 repos. Old repos were different, as I used different tools to manage them, and switching does result in some weirdness, but not like this.

Your errors make it look like you downloaded some Ubuntu repo metadata on the Virtualmin repo names somehow (or copied it in /var/lib/apt/lists). I honestly can’t imagine any reasonable scenario that gets your system to where it is.

Edit: I just checked an old repo that hasn’t been modified since 2020, long before any changes to how I’m managing the repos, and it also has the same metadata style (e.g. virtualmin-focal instead of all the Ubuntu labels), so it’s definitely your system and not our repos.

In this situation. There is a way to upgrade VM7 from VM6?

Don’t change the subject. One problem per topic.

And, Virtualmin 7 doesn’t exist yet.

Actually, I don’t know exactly. What was done?

I have installed a freshly installed ubuntu then Virtualmin. But I think the problem may come with other software that is working with Virtualmin.

It’s been over 1 month since this error

What the heck is this?

root@host:~# host 163.172.162.25
25.162.172.163.in-addr.arpa domain name pointer 25-162-172-163.instances.scw.cloud.
root@host:~# host software.virtualmin.com
software.virtualmin.com has address 163.172.162.254

I don’t know either. Your apt metadata is a mess. Our repos didn’t do it, and Webmin didn’t do it.

Then it can’t be related to the work I’ve been doing on the repos, since I just started making changes last weekend.

Did you do apt clean as Ilia suggested above? That should clear up this problem, I’m pretty sure.

The IP is right.

But, cnf is not and never has been a path on our software servers.

Wait, I missed looked the IPs. I at first thought that the IP was incorrect.

Anyways, if you’re sure that your system hasn’t been compromised and all is fine, try running:

apt-get update -y --allow-releaseinfo-change

… and let us know how it works.

Also, try moving /var/lib/apt/lists somewhere else and run update and upgrade commands over again.