在 Ubuntu 上安装 GitLab:"Could not resolve host: packages.gitlab.com"



这是我的系统(全新安装(:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

我已经安装了OpenSSH和Postfix,并添加了GitLab存储库,但当我尝试安装GitLab时,我得到的是:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
gitlab-ce
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 743 MB of archives.
After this operation, 1,961 MB of additional disk space will be used.
Err:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 12.8.1-ce.0
Could not resolve host: packages.gitlab.com
E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/xenial/main/g/gitlab-ce/gitlab-ce_12.8.1-ce.0_amd64.deb  Could not resolve host: packages.gitlab.com
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我尝试了这两种建议,甚至尝试更换网络,希望是学校的Wi-Fi。

先尝试访问https://packages.gitlab.com/gitlab/gitlab-ce在浏览器中。

如果同样失败,则可能是域被防火墙阻止。

相关内容

最新更新