安装报错:验证未通过

[root@VM-0-41-centos ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6928  100  6928    0     0  12090      0 --:--:-- --:--:-- --:--:-- 12069
Detected operating system as tencentos/8.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=tencentos&dist=8&source=script
curl: (22) The requested URL returned error: 404 
Unable to download repo config from: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=tencentos&dist=8&source=script

This usually happens if your operating system is not supported by 
packagecloud.io, or this script's OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: https://packages.gitlab.com/docs#os_distro_version

For example, to force CentOS 6: os=el dist=6 ./script.sh

If you are running a supported OS, please email support@packagecloud.io and report this.
 

解决方案:修改操作系统标识 如下


友情提示:修改器请先备份,安装之后恢复即可。
我的操作不退出vim 安装完成恢复后再退出。

[root@VM-0-41-centos ~]# vim /etc/os-release

NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora centos"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="TencentOS Server 3.2 (Final)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:tencentos:tencentos:3"
HOME_URL="https://tlinux.qq.com/"
BUG_REPORT_URL="https://tlinux.qq.com/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
NAME_ORIG="CentOS Linux"
 

结果:

[root@VM-0-41-centos ~]# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6928  100  6928    0     0  12175      0 --:--:-- --:--:-- --:--:-- 12154
Detected operating system as centos/8.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=centos&dist=8&source=script
done.
Installing yum-utils...
gitlab_gitlab-ce-source                                                                                                                                                                                                                       186  B/s | 862  B     00:04    
gitlab_gitlab-ce-source                                                                                                                                                                                                                       4.2 kB/s | 3.1 kB     00:00    
Importing GPG key 0x51312F3F:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
gitlab_gitlab-ce-source                                                                                                                                                                                                                       1.5 kB/s | 4.6 kB     00:03    
Importing GPG key 0xF27EAB47:
 Userid     : "GitLab, Inc. <support@gitlab.com>"
 Fingerprint: DBEF 8977 4DDB 9EB3 7D9F C3A0 3CFC F9BA F27E AB47
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
gitlab_gitlab-ce-source                                                                                                                                                                                                                        41  B/s | 296  B     00:07    
Last metadata expiration check: 0:00:01 ago on Wed Jun 14 09:53:50 2023.
Package yum-utils-4.0.21-11.tl3.noarch is already installed.
Dependencies resolved.
==============================================================================================================================================================================================================================================================================
 Package                                                                     Architecture                                              Version                                                               Repository                                                  Size
==============================================================================================================================================================================================================================================================================
Upgrading:
 dnf-plugins-core                                                            noarch                                                    4.0.21-14.1.tl3                                                       Updates                                                     71 k
 python3-dnf-plugins-core                                                    noarch                                                    4.0.21-14.1.tl3                                                       Updates                                                    242 k
 yum-utils                                                                   noarch                                                    4.0.21-14.1.tl3                                                       Updates                                                     73 k

Transaction Summary
==============================================================================================================================================================================================================================================================================
Upgrade  3 Packages

Total download size: 386 k
Downloading Packages:
(1/3): yum-utils-4.0.21-14.1.tl3.noarch.rpm                                                                                                                                                                                                   316 kB/s |  73 kB     00:00    
(2/3): dnf-plugins-core-4.0.21-14.1.tl3.noarch.rpm                                                                                                                                                                                            295 kB/s |  71 kB     00:00    
(3/3): python3-dnf-plugins-core-4.0.21-14.1.tl3.noarch.rpm                                                                                                                                                                                    535 kB/s | 242 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                         851 kB/s | 386 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                      1/1 
  Upgrading        : python3-dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                      1/6 
  Upgrading        : dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                              2/6 
  Upgrading        : yum-utils-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                                     3/6 
  Cleanup          : yum-utils-4.0.21-11.tl3.noarch                                                                                                                                                                                                                       4/6 
  Cleanup          : dnf-plugins-core-4.0.21-11.tl3.noarch                                                                                                                                                                                                                5/6 
  Cleanup          : python3-dnf-plugins-core-4.0.21-11.tl3.noarch                                                                                                                                                                                                        6/6 
  Running scriptlet: python3-dnf-plugins-core-4.0.21-11.tl3.noarch                                                                                                                                                                                                        6/6 
  Verifying        : dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                              1/6 
  Verifying        : dnf-plugins-core-4.0.21-11.tl3.noarch                                                                                                                                                                                                                2/6 
  Verifying        : python3-dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                      3/6 
  Verifying        : python3-dnf-plugins-core-4.0.21-11.tl3.noarch                                                                                                                                                                                                        4/6 
  Verifying        : yum-utils-4.0.21-14.1.tl3.noarch                                                                                                                                                                                                                     5/6 
  Verifying        : yum-utils-4.0.21-11.tl3.noarch                                                                                                                                                                                                                       6/6 

Upgraded:
  dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                  python3-dnf-plugins-core-4.0.21-14.1.tl3.noarch                                                  yum-utils-4.0.21-14.1.tl3.noarch                                                 

Complete!
Generating yum cache for gitlab_gitlab-ce...
Importing GPG key 0x51312F3F:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
Importing GPG key 0xF27EAB47:
 Userid     : "GitLab, Inc. <support@gitlab.com>"
 Fingerprint: DBEF 8977 4DDB 9EB3 7D9F C3A0 3CFC F9BA F27E AB47
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce-3D645A26AB9FBD22.pub.gpg
Generating yum cache for gitlab_gitlab-ce-source...

The repository is setup! You can now install packages.

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐