Virtualmin Full LAMP script install failed on Ubuntu 24.04

Ubuntu 24.04 REQUIRED
Related packages SUGGESTED

After attempting a Full LAMP install of Virtualmin on Ubuntu 24.04 LTS using the automated script it failed. I get these errors:
The following packages have unmet dependencies:
webmin : Depends: libnet-ssleay-perl but it is not installable
Depends: libauthen-pam-perl but it is not installable
Depends: libio-pty-perl but it is not installable
Depends: unzip but it is not installable
Recommends: libdatetime-perl but it is not installable
Recommends: libdatetime-timezone-perl but it is not installable
Recommends: libdatetime-locale-perl but it is not installable
Recommends: libencode-detect-perl but it is not installable
Recommends: libsocket6-perl but it is not installable
Recommends: lynx but it is not installable
Recommends: qrencode but it is not installable
E: Unable to correct problems, you have held broken packages.
Installing Virtualmin 7 and all related packages: [2024-05-19 07:18:42 PDT] [ERROR] Failed with error: 100
[2024-05-19 07:18:42 PDT] [ERROR] Something went wrong. Exiting.
[2024-05-19 07:18:42 PDT] [ERROR] The last few log entries were:


This isn’t a Virtualmin installer issue. Try the latest Ubuntu Server 24.04 instance or, at the very least, deal with the package manager and make sure you can install all updates before running the installer.

Upgrade all packages, install any held packages, and then reboot your instance:

apt-get clean
apt-get update
apt-get upgrade -y
1 Like

I upgraded from Ubuntu 22.04 to 23.10 and then to 24.04 since my webhost only has 22.04 as an install. Does the automatic installer not work if I upgrade from 23.10? It’s a fresh install but from an upgrade. All my packages are up to date.

I don’t really recommend starting off with a messy installation like that, but that’s not the cause of the problem above. You can’t install OS packages. That’s the problem you need to solve if you want Virtualmin to be able to install (and you need that for all manner of other things, include security updates).

So, figure out why your OS package manager (apt) isn’t able to find all these packages. Check your sources.list and the files in sources.list.d.

Ok I’ll see if I can get it working. If I can’t not a big deal. I can easily go back to using 22.04. Thanks for the help.

You should just do a clean install of Ubuntu Server 24.04. Don’t make it complicated.

I got it up and running. I just needed to add more repositories to install the packages it needed. I didn’t see any errors in Virtualmin after that. But I honestly didn’t test it that much. I think I’m just going to use clean install of Debian 12 instead since it is more secure and uses less resources than Ubuntu. And my web host doesn’t offer Ubuntu 24.04 as a clean install yet anyhow.