OK, made some more progress after removing the local bundler. Now I am getting the following error:
Setting up gitlab (11.5.4+dfsg-1) ... We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. Password: However, no matter what password I enter (tried both su and sudo password), I am not able to proceed. Thanks, On Mon, Dec 17, 2018 at 10:41 PM Pirate Praveen <prav...@onenetbeyond.org> wrote: > > On 12/18/18 12:07 PM, Pranith Kumar wrote: > > Thanks for the pointer. > > > > I renamed /var/lib/gems and when I run dpkg configure, I get: > > > > Setting up gitlab (11.5.4+dfsg-1) ... > > Traceback (most recent call last): > > 1: from /usr/local/bin/bundle:23:in `<main>' > > :23:in `load': cannot load such file -- > > /usr/share/rubygems-integration/all/gems/bundler-1.16.1/exe/bundle > > (LoadError) > > dpkg: error processing package gitlab (--configure): > > installed gitlab package post-installation script subprocess returned > > error exit status 1 > > Errors were encountered while processing: > > gitlab > > > > Any idea what this error is? > > You are still using a gem installed bundler. It is trying to use bundle > from system path and finding /usr/local/bin/bundle. You should remove > it. I'm not sure if we should call /usr/bin/bundle from postinst to > avoid situations like this. > -- Pranith