1:执行
sudo apt-get update
2:执行
sudo apt-get install gitlab-ce
3:如果依旧失败出现以下提示
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gitlab-ce
执行
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
4:如果执行crul语句出错提示以下内容
Command 'curl' not found, but can be installed with:
apt install curl
执行:
apt install curl
5再次执行
sudo apt-get update
sudo apt-get install gitlab-ce
参考文件