Uninstall and reinstall issue

I was trying to reinstall the Couchbase server upon my system and I followed the commands as suggested for a Bionic Ubuntu. However now whenever I try to reinstall a copy of the Server it gives me the error
installed couchbase-server-community package pre-removal script subprocess returned error exit status 127
Please help.