Re-installing VirtualMin

Okay, so, while trying to reconfigure my host and domain name, something was corrupted in VirtualMin that I was not able to easily recover, so I thought I would do what I’ve done a few times and uninstall and re-install VirtualMin.
Well, of course, now VirtualMin fails to install.

I have removed all packages that are installed/used by VirtualMin, as far as I can see, other than PHP. I have searched for all files and strings that contain VirtualMin and Webmin and removed the logs, ssl certs, etc… I have removed the homedir created by VirtualMin during the initial Virtual Server set up and it still fails to install completely.

It does install enough, in most cases, to be able to open the web ui on port 10000 but is lacking some of the packages and god knows what.

It always seems to fail here,

[ERROR] Something went wrong. Exiting.
[ERROR] The last few log entries were:
create mode 100644 webmin/webmincron/config
create mode 100644 webmin/webmincron/crons/167738615184605.cron
create mode 100644 webmin/webmincron/crons/167738615184881.cron
create mode 100644 webmin/webmincron/crons/167738621688544.cron
create mode 100644 webmin/webmincron/crons/167738621788544.cron
create mode 100644 webmin/webmincron/crons/167738621888544.cron
create mode 100644 webmin/webminlog/config
create mode 100644 webmin/wuftpd/config
create mode 100644 webmin/xinetd/config
create mode 100644 webmin/xterm/config
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installing Virtualmin 7 and all related packages: [2023-02-25 22:41:22 CST] [ERROR] Failed with error: 100
[2023-02-25 22:41:22 CST] [ERROR] Something went wrong. Exiting.
[2023-02-25 22:41:22 CST] [ERROR] The last few log entries were:

And that’s it…

And no, re-installing the OS is not an option.
This is on Debian 11.

Thanks …

We’d need to see more of the log.

But, I’ll also mention than uninstalling and reinstalling repeatedly is not a reasonable thing to do. The --uninstall option is basically only useful for testing. It leaves a mess (and the docs tell you to never run it on a production system).

Joe,

Thank you for the response. After changing the domain name in VirtualMin, it basically locked me out of all configurations, for some reason … and I did not anticipate anyone would be up this late to troubleshoot why the VirtualMin tab was 100% gone and 50% of Webmin was missing…

This issue was resolved, for anyone in the future, by running the following:

  629  find / -name "webmin"
  630  find . -type f -exec grep "virtualmin" '{}' \; -print
  644  sudo find / -name virtualmin
  645  sudo rm -rf /etc/webmin
  646  sudo find / -name virtualmin -exec rm -rf {} \;
  647  cd /etc/webmin
  648  sudo apt-get remove virtualmin-base
  649  sudo apt-get autoremove && sudo apt-get autoclean
  650  sudo find / -name virtualmin
  657  apt remove postfix
  658  apt autoremove
  664  chmod 755 /usr/bin/dpkg
  665  apt-get install --reinstall dpkg
  670  sudo rm /etc/systemd/system/proftpd.service
  676  rm -r /usr/sbin/virtualmin
  689  apt-get install proftpd-core
  694  apt-get install --reinstall dpkg
  695  apt-get remove dpkg-dev
  696  apt-get clean
  697  apt-get update && apt-get upgrade
  704  apt-get install -f
  705  sh virtualmin-install.sh

That was mistake number one.

That sounds like you didn’t just change “a domain name” you actually changed the domain name of the server that you set Virtualmin up with. If you do that, you have to update all the links you use to access it and clear all your caches out. If you’re using an outside DNS service like Cloudflare, you also have to update the DNS records there before it will work.

Constantly uninstalling and reinstalling is pretty much guaranteed to break your system eventually.

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