Submitted by jabowery on Sun, 05/14/2017 - 14:05 Pro Licensee
Having done the apt update and upgrade on Debian jessie 8.8 to ensure the current packages are installed, I get this when trying to activate much just-purchased license:
~# virtualmin change-licence --serial xxx --key yyy
defined(@array) is deprecated at virtual-server-lib-funcs.pl line 6824.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at virtual-server-lib-funcs.pl line 13157.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/scripts-lib.pl line 807.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/scripts-lib.pl line 1662.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/resources-lib.pl line 174.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/security-lib.pl line 13.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/feature-mail.pl line 1074.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/feature-mysql.pl line 787.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at /usr/share/webmin/virtual-server/feature-postgres.pl line 671.
(Maybe you should just omit the defined()?)
Status:
Active
Comments
Submitted by jabowery on Sun, 05/14/2017 - 14:06 Pro Licensee Comment #1
Submitted by JamieCameron on Sun, 05/14/2017 - 16:08 Comment #2
Which version of Virtualmin are you running there? Those warning messages (which are harmless) were fixed a few versions back.
Submitted by andreychek on Sun, 05/14/2017 - 16:54 Comment #3
Note that if your license has been expired for awhile, it may be running an older version. An expired license isn't able to obtain updates.
Now that you've updated the license to a current version, you'll be able to obtain updates again.
Submitted by jabowery on Mon, 05/15/2017 - 11:23 Pro Licensee Comment #4
I did
apt update
apt upgrade
and nothing new came in. Same warnings.
Submitted by andreychek on Mon, 05/15/2017 - 11:43 Comment #5
Ah, it does appear you have an older Webmin and Virtualmin version there. We may need to look into the repository details to understand why you aren't being prompted to upgrade.
What is the output of this command:
cat /etc/apt/sources.list
Submitted by jabowery on Mon, 05/15/2017 - 14:17 Pro Licensee Comment #6
# cat /etc/apt/sources.list
deb http://ftp.se.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.se.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
Submitted by jabowery on Mon, 05/15/2017 - 14:38 Pro Licensee Comment #7
A google search for:
"apt-add-repository" site:virtualmin.com
came up with nothing which is one reason I didn't think I had to (re)add a repo.
Another reason I didn't think I had to (re)add a repo is that:
# find /etc/apt |grep -i virtual
came up with nothing when I would have expected ya'll to use the
/etc/apt/sources.list.d
rather than altering/etc/apt/sources.list
directly.When I, instead, executed:
find . -type f -print0 |xargs -0 grep -i virtual
I discovered where the repo was and how to modify it so it contained the license and key information -- which I did based on my educated guess from the
wget
link sent to me upon purchase.Perhaps it would help to change the apt configuration to use the sources.list.d directory (as well as have something that mentions the repo and how to manually add it).
Submitted by andreychek on Mon, 05/15/2017 - 14:52 Comment #8
Just to verify what you're saying above -- where you able to get things corrected?
While using the sources.list.d is an option we'll consider, it's not typical for anything to be deleted from the sources.list file.
Re-adding the repository to that file, or adding a separate entry in sources.list.d, should indeed correct that for you.
And once you do that, you should be able to upgrade Virtualmin.
Let us know if you'd like a hand in doing any of that!