I tried an upgrade from 16.6.6 to 16.6.7 but I get an error during upgrade:
The following packages will be upgraded:
gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 1,088 MB of archives.
After this operation, 58.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic/main amd64 gitlab-ce amd64 16.7.7-ce.0 [1,088 MB]
Fetched 1,088 MB in 18s (59.8 MB/s)
(Reading database ... 184997 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_16.7.7-ce.0_amd64.deb ...
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libcrypt.so.1: version `XCRYPT_2.0' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/gitlab/embedded/lib/libruby.so.3.1)
/opt/gitlab/embedded/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /opt/gitlab/embedded/lib/libjemalloc.so.2)
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_16.7.7-ce.0_amd64.deb (--unpack):
new gitlab-ce package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_16.7.7-ce.0_amd64.deb
I’m using Ubuntu 18.04.6 LTS with the Gitlab omnibus package.
If anyone has any ideas I’m open to suggestions, thanks in advance!
Sorry I don’t this this will help, but, I can’t even install 16.7.7. I am on an Ubuntu Jammy system and when I try
sudo apt install gitlab-ce=16.7.7-ce.0
It says:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package gitlab-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Version ‘16.7.7-ce.0’ for ‘gitlab-ce’ was not found
What else is running on this Linux host, how often is it upgraded, is it a VM or bare metal?
Ubuntu Bionic was EOL in May 2023. Maybe an alternative route can be to upgrade to Ubuntu 20 or 22 LTS, and then continue with the upgrade path for GitLab.
This is installed on a bare metal system. I have been upgrading it successfully for the last year at each security release without issue. I am currently at 16.7.6, and trying to install 16.7.7 over it.
One other note… I have put gitlab-ce on hold and am upgrading it manually following the online upgrade paths so that I am not on the very latest version. I try to keep about one or two versions back but keep up to date on the security releases.
Yes, I think I made the mistake of downloading the incorrect deb off of packages.gitlab.com, leading to the glibc issue. This is clearly an easy mistake to make.
I ended up reverting the server to a recent snapshot and returning it to a known working status. I will be much more careful in future and leave myself some notes not to download the deb files from the packages.gitlab.com server without careful inspection.
I think apt wasn’t offering it as I hadn’t updated the package cache, so I thought I’d get it from the packages.gitlab.com server and install it as it was a security update, so I wanted to be covered ASAP.
It should usually offer it, but I did have this situation once when I tried updating, it wouldn’t see any new packages. I was effectively stuck on 12.9.3. It was only when I went to the Gitlab install docs, and used the line to re-initialise the repository configuration, that it then saw updated packages. You can check/verify this, by doing the following: