New licence purchased, registered, invalid

SYSTEM INFORMATION
**OS type and version:**Ubunut 18.04 LTS
**Webmin version:**1.973
**Virtualmin version:**6.16 Pro

Hello all,

I have now bought a new licence for Virtualmin and exchanged the licence data. Unfortunately, the licence is still shown as invalid.

Here is my Sources.List:

deb http://at.archive.ubuntu.com/ubuntu/ bionic main restricted universe
deb http://at.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe

deb https://software.virtualmin.com/vm/6/apt/ virtualmin-bionic main
deb https://software.virtualmin.com/vm/6/apt/ virtualmin-universal main

The authendification is under
/etc/apt/auth.conf.d/virtualmin.conf
But with and without auth, “apt update” works all the time. So i think i have the wrong sources for Virtualmin Pro.

In addition i have 4 packages with no sources, so these packages are installed but not available in any package source.

scponly 4.8-4
usermin-virtual-server-theme 6.8
virtualmin-base 1.0-35
webmin-security-updates 4.5

I’ve done this:

but did not work.

Updating Virtualmin APT repository ..
.. no lines for software.virtualmin.com found!

Thanks vor help
and best regards

Oh, this is a bug in the change-license command. The location of auth info got moved, but it looks like the change-license command doesn’t know about it. @Ilia did change-license get updated when you moved the repo auth data out of the sources.list file?

The old packages mean Virtualmin was installed a long time ago with the old repos (we switched to the 6 repos about three years ago, I think). virtualmin-base no longer exists (it’s split into two metapackages and virtualmin-config), and webmin-security-updates is included in Webmin so there’s no need for a separate package now. virtual-server-theme is mostly deprecated. And, scponly is mostly deprecated, too, in favor of ProFTPd being setup with FTP over SSH by default on port 2222. It’s probably safe to remove all but virtualmin-base…though virtualmin-base may have Depends: for them, so it may be hard to remove safely. (You’d need to convert to the new metapackages in order to insure you don’t accidentally remove necessary software later with the autoremove command.)

Thank you for your answer. I have now removed old packages, installed new metapackages and moved the virtualminsources to an seperate file. After this i execute virtualmin change-license but with errors:

Checking serial xxxx and key xxxxxx ..
.. license is not valid : No valid licence was found for your host ID xxxxxxx and serial number xxxxxxxxxx!

I didn’t get it. It was moved where, and who moved it, and what was moved exactly?

@Ilia did change-license get updated when you moved the repo auth data out of the sources.list file?

I did improve it to have authentication placed on the separate file as latest Debian systems expect it but it hasn’t gotten to production yet, it is still on the master.

After this i execute virtualmin change-license but with errors.

Are you sure you entering a key and a serial accordingly? How does the command look like exactly? (example the command and un-mask first two chars of both a serial and a key).

I have now removed old packages, installed new metapackages and moved the virtualminsources to an seperate file.

Can you show how does it look now exactly?

With this command:

virtualmin change-license --serial 55xxxxx --key dXxxxxxxxx

The file is under /etc/apt/auth.conf.d/virtualmin.conf. Here is the content:

machine software.virtualmin.com login 55xxxxx password dXxxxxxxxx
.. license is not valid : No valid licence was found for your host ID ebxxxxxx and serial number dXxxxxxxxx

And the sources.list:

cat /etc/apt/sources.list.d/virtualmin.list 
deb https://software.virtualmin.com/vm/6/apt/ virtualmin-bionic main
deb https://software.virtualmin.com/vm/6/apt/ virtualmin-universal main

If i moved the auth back to the virtualmin.list, i get the same errors. And /etc/virtualmin-license have the right content.

As a note, I just update my most recent license upgrade and I ran into two things:

  1. the change-licence command is spelled licence and not license. I don’t know if that makes a difference.
  2. The help tip on the command reads:
virtualmin change-licence --serial number
                          --key id
                          [--no-check]

What it’s asking for is virtualmin change-licence --serial <serialnumber> --key <key>

I had written it with = signs and had tried --serial number <serialnumber> and was stumped, until I finally got it right.

This could be a bit more clear.

It makes. Because virtualmin change-licence fixes everything here. In contrast to virtualmin change-license i got this error message that you had already read. Strange. But fixed. :slight_smile:

Those should be identical, as change-license is just a resolved symlink to change-licence (on a package side). US English spells it as license and UK/AU goes with licence. Either way, those are identical commands, they cannot produce different results, unless you manually mis-updated (not recommended) one and not the other.

Yes it is strange, but until today the licence works.

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