请问我按照gitlab-ce的安装说明,出现的下面的问题要怎么解决呢

   1. 直接执行缺少权限 curl -fsSL https://packages.gitlab.com/gpg.key | sudo gpg 
   --dearmor > 
   
/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg,这个不能直接写入,我选择写入到home目录下,然后复制到/usr/share/keyrings
   2. 解决了权限问题,然后出现证书校验错误,这里我确认是gitlab证书的问题,我移除了gitlab证书和添加的apt的source,apt 
   update就是正确的
































































*命中:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease命中:2 
https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease         
                                                                            
       命中:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports 
InRelease                                                                   
                       命中:4 
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu focal InRelease       
                                                                            
       命中:5 https://repo.radeon.com/amdgpu/6.0.2/ubuntu focal InRelease     
                                                                            
                   命中:6 https://packages.microsoft.com/repos/code stable 
InRelease                                                                   
                                  命中:7 https://repo.steampowered.com/steam 
stable InRelease                                                           
                                                命中:8 
https://dl.google.com/linux/chrome/deb stable InRelease                     
                                                                            
       命中:9 https://repo.radeon.com/rocm/apt/6.0.2 focal InRelease         
                                     命中:10 
http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu focal InRelease         
  获取:11 http://security.ubuntu.com/ubuntu focal-security InRelease [128 
kB]命中:12 http://ppa.launchpad.net/fossfreedom/indicator-sysmonitor/ubuntu 
focal InRelease命中:14 http://ppa.launchpad.net/git-core/ppa/ubuntu focal 
InRelease                                                        命中:16 
http://ppa.launchpad.net/wireshark-dev/stable/ubuntu focal InRelease       
                                         命中:13 
https://scala.jfrog.io/artifactory/debian all InRelease                     
                   获取:17 http://security.ubuntu.com/ubuntu 
focal-security/main amd64 Packages [3,366 kB]获取:18 
http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [846 
kB]获取:19 http://security.ubuntu.com/ubuntu focal-security/main 
Translation-en [493 kB]获取:20 http://security.ubuntu.com/ubuntu 
focal-security/main amd64 DEP-11 Metadata [65.3 kB]获取:20 
http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata 
[65.3 kB]获取:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 
DEP-11 Metadata [65.3 kB]获取:20 http://security.ubuntu.com/ubuntu 
focal-security/main amd64 DEP-11 Metadata [65.3 kB]获取:20 
http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata 
[65.3 kB]获取:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 
DEP-11 Metadata [65.3 kB]忽略:15 https://scala.jfrog.io/artifactory/debian 
 InRelease获取:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 
DEP-11 Metadata [65.3 kB]获取:28 http://security.ubuntu.com/ubuntu 
focal-security/restricted amd64 DEP-11 Metadata [212 B]获取:29 
http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages 
[1,031 kB] 命中:27 https://scala.jfrog.io/artifactory/debian  Release         
                  错误:29 http://security.ubuntu.com/ubuntu 
focal-security/universe amd64 Packages   Hash 校验和不符  Hashes of expected 
file:   - Filesize:1031396 [weak]   - 
SHA256:3387009efbc73e4ca7024d0b54eda4792f9d6d46e246331b77b126be1ebc5ec6   - 
SHA1:25bac60f263265bd42e1e01abedbf48242e1655a [weak]   - 
MD5Sum:8368562c2638509086d7359139ee065f [weak]  Hashes of received file:  
 - SHA256:6b5a13b17310d588b004cb4b5148300e86203dce2e87d00a6906a1f4e3549f03  
 - SHA1:c3aacd9fc8c2500d1ca5b9aaf39ff2cb9464a68f [weak]   - 
MD5Sum:912fff6f7564b6c226ec7e316189deba [weak]   - Filesize:1031396 [weak]  
Last modification reported: Thu, 16 Jan 2025 15:43:08 +0000  Release file 
created at: Mon, 20 Jan 2025 09:38:38 +0000获取:31 
http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 
Metadata [160 kB]错误:31 http://security.ubuntu.com/ubuntu 
focal-security/universe amd64 DEP-11 Metadata  获取:32 
http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 
Metadata [940 B]已下载 1,385 kB,耗时 3秒 (476 kB/s)      正在读取软件包列表... 完成E: 无法下载 
http://security.ubuntu.com/ubuntu/dists/focal-security/universe/binary-amd64/by-hash/SHA256/3387009efbc73e4ca7024d0b54eda4792f9d6d46e246331b77b126be1ebc5ec6
 
 Hash 校验和不符   Hashes of expected file:    - Filesize:1031396 [weak]    - 
SHA256:3387009efbc73e4ca7024d0b54eda4792f9d6d46e246331b77b126be1ebc5ec6    
- SHA1:25bac60f263265bd42e1e01abedbf48242e1655a [weak]    - 
MD5Sum:8368562c2638509086d7359139ee065f [weak]   Hashes of received file:  
  - 
SHA256:6b5a13b17310d588b004cb4b5148300e86203dce2e87d00a6906a1f4e3549f03    
- SHA1:c3aacd9fc8c2500d1ca5b9aaf39ff2cb9464a68f [weak]    - 
MD5Sum:912fff6f7564b6c226ec7e316189deba [weak]    - Filesize:1031396 
[weak]   Last modification reported: Thu, 16 Jan 2025 15:43:08 +0000  
 Release file created at: Mon, 20 Jan 2025 09:38:38 +0000E: 无法下载 
http://security.ubuntu.com/ubuntu/dists/focal-security/universe/dep11/by-hash/SHA256/bff8731d88bdd2046f9a09b35f16c78942e69fccc9428e2bbc4692a88cdc6545
 
 E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。*

-- 
您收到此邮件是因为您订阅了 Google 群组的“TUNA 主邮件列表”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到tuna-general+unsubscr...@googlegroups.com。
如需查看此讨论,请访问 
https://groups.google.com/d/msgid/tuna-general/9eff199f-85fd-4e9c-a134-b3a26829e44en%40googlegroups.com。

回复