以下是在Debian上升级GitLab的两种常见方法:
sudo gitlab-rake gitlab:backup:create。sudo apt update。sudo apt upgrade gitlab-ce(或gitlab-ee)。sudo gitlab-ctl restart。sudo gitlab-rake gitlab:backup:create。wget或curl下载适合Debian版本的包,如wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bullseye/gitlab-ce_14.8.0-ce.0_amd64.deb。sudo dpkg -i gitlab-ce_14.8.0-ce.0_amd64.deb,有依赖问题则用sudo apt-get install -f解决。sudo gitlab-ctl restart。升级前要确保系统时间和时区正确,升级后查看日志文件/var/log/gitlab/gitlab-rails/production.log确认无错误。