Gitlab安装问题之Ubuntu 20.0.4 报错E: Unable to locate package gitlab-ee

简介: Gitlab安装问题之Ubuntu 20.0.4 报错E: Unable to locate package gitlab-ee

前言

相信大家对Gitlab都不会很陌生,作为与Github并齐且能够安装私自Git服务的应用,嗨得不行。

但是,很多人在linux安装中,出现各样问题,即时按照官网介绍。

其中,一个很多人遇到的问题是,报错E: Unable to locate package gitlab-ee

官网安装

说完问题,不得不说一下,官网安装教程,弄清楚,怎么操作才报错的。

  1. 安装必要依赖
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates tzdata perl
sudo apt-get install -y postfix
1
2
3
4

3.安装GItlab库以及安装包

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" apt-get install gitlab-ee
1
2
3
  1. 访问登录
  2. 自定义设置

一般在第三步,就会报错E: Unable to locate package gitlab-ee

问题原因

究其原因,无非就是找不到包。

查了很多的资料,包括修改/etc/apt/sources.list.d/gitlab_gitlab-ee.list

例如:

image.png

总结看来,都是无效操作。

问题解决

解决方式很简单,进入Gitlab包网站,https://packages.gitlab.com/gitlab/gitlab-ee/install

deb脚本安装:

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
1

相较之前,多了个参数-s

亲测可以完美解决


目录
相关文章
|
2月前
gitlab迁移后报错OpenL::cipher::CipherError
gitlab迁移后报错OpenL::cipher::CipherError
112 0
|
5月前
|
Ubuntu
ubuntu报错:OpenSSL is not properly installed on your system.
ubuntu报错:OpenSSL is not properly installed on your system.
102 0
|
6月前
|
安全
Gitlab配置webhook报错:Urlis blocked: Requests to the local netwo..解决
Gitlab配置webhook报错:Urlis blocked: Requests to the local netwo..解决
245 0
|
9月前
|
Ubuntu
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
161 0
|
2天前
|
运维 Devops Shell
云效产品使用报错问题之在codeup上创建的代码分支或者代码变动,同步到gitlab失败如何解决
本合集将整理呈现用户在使用过程中遇到的报错及其对应的解决办法,包括但不限于账户权限设置错误、项目配置不正确、代码提交冲突、构建任务执行失败、测试环境异常、需求流转阻塞等问题。阿里云云效是一站式企业级研发协同和DevOps平台,为企业提供从需求规划、开发、测试、发布到运维、运营的全流程端到端服务和工具支撑,致力于提升企业的研发效能和创新能力。
|
4月前
|
Ubuntu 计算机视觉 C++
Ubuntu 20.04 编译 Opencv 4.11,详细步骤(带图)及报错解决,我的踩坑之旅~
Ubuntu 20.04 编译 Opencv 4.11,详细步骤(带图)及报错解决,我的踩坑之旅~
613 0
|
5月前
|
存储 缓存 NoSQL
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
138 0
|
4月前
Gitlab出现502报错解决
Gitlab出现502报错解决
84 0
|
5月前
|
Ubuntu Linux Docker
Ubuntu安装docker报错:Command ‘lsb_release‘ not found
Ubuntu安装docker报错:Command ‘lsb_release‘ not found
108 0
|
7月前
|
Ubuntu 网络协议 虚拟化
ubuntu固定ip&FDFS上传文件报错
ubuntu固定ip&FDFS上传文件报错