Forum archive
Dist Upgrade broke Webmin - Please Help
Hi,
I did Distribution Upgrade via Webmin after about a year of Turnkey LAMP appliance working fine. Just wanted to keep up with latest security patches.
That upgrade got hung after a while without any error. Eventually I rebooted and noticed that Webmin doesn't work any more (just getting Connection Reset). So I SSH'd into the server and did apt-get dist-upgrade from the command line. It also failed:
Total 1751 (delta 210), reused 1751 (delta 210)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Internet says "just reboot", I tried 3 reboots by now but still getting error above. Also Webmin still doesn't work, don't know which log to check for root cause on that but when I go to Webmin port I simply get "connection reset". Interestingly most other things seem to work fine on the server, including apache, mysql, etc.
Any ideas?
Having said that, running upgrade and/or dist-upgrade should not cause any major issues. Also you didn't specify whether you just ran dist-upgrade, or whether you also adjusted the repos to upgrade the Debian version. If you were trying to upgrade to a new Debian version (e.g. Stretch) before we have (which we haven't yet - it's currently in progress), then problems are to be expected. We don't yet have any packages in our stretch archive, so if you tried to dist-upgrade to that, it's probably uninstalled Webmin (we package that ourselves and haven't yet built it for Stretch). If you want to use Stretch, then let me know as I have a personal repo with TurnKey Stretch packages which you can use for now if you wish. Let me know.
Anyway, it sounds like something didn't complete during the upgrade process. To be able to even have a stab at guessing what the issue is, I'd need to see more of the output. Before it gets to the bit you've posted, it should note the package that it's having issues with. Assuming it's a package that hasn't properly installed, you may not even need to know what it is. The following my just fix it:
That should try to reinstall any packages that are broken and hopefully fix your issue in the meantime.
Hopefully that's enough to give you some ideas. If you want some more suggestions, please give me some more info about what version of TurnKey you are running and exactly what you did, plus some more of the problematic output.