Kong 1.2.0 to 1.4.0 Upgrade Error on Debian 9.11


I have installed Kong 1.2.0 CE on Debian 9.11 sometime back and things are working nicely. In attempting to upgrade to 1.4.0 I’m running into an issue.

sudo dpkg -i kong-1.4.0.stretch.amd64.deb

(Reading database … 64395 files and directories currently installed.)
Preparing to unpack kong-1.4.0.stretch.amd64.deb …
Unpacking kong (1.4.0) …
dpkg: error processing archive kong-1.4.0.stretch.amd64.deb (–install):
trying to overwrite ‘/usr/local/share/lua/5.1/openssl/rand.lua’, which is also in package kong-community-edition 1.0.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:

More details:

  1. Initial Install was done by manually install of deb package
  2. PG data store is being used

My understanding was that I could simply install the new package manually then run the migration commands listed here: https://github.com/Kong/kong/blob/master/UPGRADE.md

I have a feeling i’m missing something simple. Any ideas?

Thanks in advance!