У меня проблема с Debian 9.6. При установке gitlab возвращается ошибка:
Setting up gitlab (8.13.11+dfsg1-8+deb9u3) ...
Creating/updating gitlab user account...
Making gitlab owner of /var/lib/gitlab...
Could not find gem 'rails (~> 4.2, >= 4.2.7.1)' in any of the gem sources listed
in your Gemfile.
dpkg: error processing package gitlab (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
Я проверил и установил на сервере пакет ruby и ruby-rails.
Я распаковал файл deb и отследил проблему до этой части в сценарии postintall:
if ! runuser -u ${gitlab_user} -- sh -c 'bundle --local --quiet'; then
if [ "$1" = "triggered" ]; then
# probably triggered in the middle of an system upgrade; ignore failure
# but abort here
echo "#########################################################################"
echo "# Failed to detect gitlab dependencies; if you are in the middle of an #"
echo "# upgrade, this is probably fine, there will be another attempt later. #"
echo "# #"
echo "# If you are NOT in the middle of an upgrade, there is probably a real #"
echo "# issue. Please report a bug. #"
echo "#########################################################################"
exit 0
else
# something is really broken
exit 1
fi
fi
В основном ошибка, упомянутая в вопросе, вызывается следующей командой: runuser -u ${gitlab_user} -- sh -c 'bundle --local --quiet'
Любое предположение о том, что могло вызвать это?