gitlab-升级笔记(11.10.8升级到12.4.2 )

执行升级:

$ sudo apt-get upgrade gitlab-ce 

提示我运行的已经是最新版本,并没提示需要升级,但是我在dashboard看到提示有新版可以升级:

运行 ubuntu@gitlab:~$ sudo apt-cache madison gitlab-ce"不会显示比当前安装的版本更高的任何版本。

gitlab-ce | 11.10.8-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.7-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.6-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.5-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.4-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.3-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.2-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.1-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.10.0-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.9.12-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 gitlab-ce | 11.9.11-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages

.....

似乎新版本在https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/trusty main 上不可用。

检查我们系统版本:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04 LTS
Release:	14.04
Codename:	trusty

可能是因为GitLab认为trusty太老了,无法支持,并且已经停止为其构建软件包-鉴于官方支持已于4月结束,而11.10是从4月开始的-这似乎很公平。

升级 ubuntu 14.04 - 16.04

$ apt-get update && apt-get dist-upgrade

$ reboot

$do-release-upgrade

查看已经升级ubuntu成功:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial

修改apt 关于gitlab-ce的源,指向 xenial版:

$ cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list

deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main

$ sudo apt-get update

继续尝试升级,现在终于有升级了:不过提示gitlab需要先升级到11.11

$ sudo apt-get upgrade gitlab-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libio-string-perl libsub-name-perl libtimedate-perl
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 717 MB of archives.
After this operation, 114 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 12.4.2-ce.0 [717 MB]
Fetched 717 MB in 2min 40s (4,478 kB/s)                                        
(Reading database ... 144068 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_12.4.2-ce.0_amd64.deb ...
gitlab preinstall: It seems you are upgrading from major version 11 to major version 12.
gitlab preinstall: It is required to upgrade to the latest 11.11 version first before jumping to the next major version.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_12.4.2-ce.0_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/gitlab-ce_12.4.2-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

升级到11.11

sudo apt-get upgrade gitlab-ce=11.11.0-ce.0

然后升级到最新版(12.4.2):

$sudo apt-get upgrade gitlab-ce

$sudo gitlab-ctl reconfigure

$sudo gitlab-ctl restart

升级完后,再打开dashboard,看到已经升级成功:

参考:

https://forum.gitlab.com/t/upgrading-11-10-8-to-12x-on-ubuntu-16-04/28979/3

Ubuntu14.04升级到Ubuntu16.04

gitlab-升级笔记(10.3.3升级到11.0.2)

国内gitlab社区版源:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 5.4.1 requires pyqt5<5.16, which is not installed. spyder 5.4.1 requires pyqtwebengine<5.16, which is not installed. Successfully installed aiofiles-23.1.0 altair-4.2.2 blinker-1.6.2 cachetools-5.3.1 chardet-5.1.0 cmake-3.26.3 cpm_kernels-1.0.11 fastapi-0.95.2 ffmpy-0.3.0 gitdb-4.0.10 gitpython-3.1.31 gradio-3.32.0 gradio-client-0.2.5 h11-0.14.0 httpcore-0.17.2 httpx-0.24.1 latex2mathml-3.76.0 linkify-it-py-2.0.2 lit-16.0.5 markdown-it-py-2.2.0 mdit-py-plugins-0.3.3 mdtex2html-1.2.0 mdurl-0.1.2 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-cupti-cu11-11.7.101 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 nvidia-cufft-cu11-10.9.0.58 nvidia-curand-cu11-10.2.10.91 nvidia-cusolver-cu11-11.4.0.1 nvidia-cusparse-cu11-11.7.4.91 nvidia-nccl-cu11-2.14.3 nvidia-nvtx-cu11-11.7.91 orjson-3.8.14 protobuf-3.20.3 pydantic-1.10.8 pydeck-0.8.1b0 pydub-0.25.1 pygments-2.15.1 pympler-1.0.1 python-multipart-0.0.6 rich-13.4.1 semantic-version-2.10.0 sentencepiece-0.1.99 smmap-5.0.0 starlette-0.27.0 streamlit-1.22.0 streamlit-chat-0.0.2.2 torch-2.0.1 transformers-4.27.1 triton-2.0.0 tzlocal-5.0.1 uc-micro-py-1.0.2 uvicorn-0.22.0 validators-0.20.0 websockets-11.0.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv 解释下
最新发布
06-02

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值