Dpkg: error processing package openlitespeed

#1
When I try to upgrade OLS 1.6.18 to any version (1.6.19, 1.6.20 or 1.7.9) they all fail, though reverting back to 1.6.18 works fine. I've tried the usual dpkg autoclean, dependency check, dpkg-reconfigure -a, apt remove and reinstall etc. but no luck.

This is the error on Ubuntu 18.04 and this server has been on OLS for 3 years with zero issues to this point. Any suggestions?

(Reading database ... 155603 files and directories currently installed.)
Preparing to unpack openlitespeed_1.7.9-2+bionic_amd64.deb ...
Unpacking openlitespeed (1.7.9-2+bionic) over (1.6.18-1+bionic) ...
Setting up openlitespeed (1.7.9-2+bionic) ...
Generating a RSA private key
....+++++
............................................................................+++++
writing new private key to '/usr/local/lsws/admin/conf/webadmin.key'
-----
dpkg: error processing package openlitespeed (--install):
installed openlitespeed package post-installation script subprocess was killed by signal (Killed)
Errors were encountered while processing:
openlitespeed
 
#2
This seems to have resolved, somehow. The only thing I did was:

apt-mark hold openlitespeed
apt update && upgrade

and then:

dpkg -i openlitespeed_1.7.9-2+bionic_amd64.deb

And now it runs fine.
 
Top