Groups
Groups
Sign in
Groups
Groups
TUNA 主邮件列表
Conversations
About
Send feedback
Help
Gitlab CE of Ubuntu 20.04
58 views
Skip to first unread message
Xuewei Wu
unread,
Jan 20, 2025, 5:43:14 AM
1/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TUNA 主邮件列表
请问我按照gitlab-ce的安装说明,出现的下面的问题要怎么解决呢
直接执行缺少权限 curl -fsSL
https://packages.gitlab.com/gpg.key
| sudo gpg --dearmor > /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg,这个不能直接写入,我选择写入到home目录下,然后复制到/usr/share/keyrings
解决了权限问题,然后出现证书校验错误,这里我确认是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 +0000
E: 无法下载
http://security.ubuntu.com/ubuntu/dists/focal-security/universe/dep11/by-hash/SHA256/bff8731d88bdd2046f9a09b35f16c78942e69fccc9428e2bbc4692a88cdc6545
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
Miao Wang
unread,
Jan 20, 2025, 5:48:56 AM
1/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tuna-g...@googlegroups.com
> 2025年1月20日 18:22,Xuewei Wu <
xuewe...@gmail.com
> 写道:
>
> 请问我按照gitlab-ce的安装说明,出现的下面的问题要怎么解决呢
> • 直接执行缺少权限 curl -fsSL
https://packages.gitlab.com/gpg.key
| sudo gpg --dearmor > /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg,这个不能直接写入,我选择写入到home目录下,
此处您的操作是正确的,文档存在一定问题,正在修改中。
从您给出的错误信息看,推测是从 ubuntu security 源中下载依赖的包出错。考虑到您使用的源地址是 http 协议的,不排除您所在的网络存在中间缓存,并给出了有问题的响应。该问题与 TUNA 的 gitlab-ce 源无关。
祝好,
Miao Wang
Xuewei Wu
unread,
Jan 20, 2025, 6:12:28 AM
1/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TUNA 主邮件列表
但是我屏蔽了gitlab-ce的source list就是正确的,屏蔽gitlab-ce应该也不会改变ubuntu security吧
您可以尝试同样的操作吗
Miao Wang
unread,
Jan 20, 2025, 6:18:24 AM
1/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tuna-g...@googlegroups.com
> 2025年1月20日 19:11,Xuewei Wu <
xuewe...@gmail.com
> 写道:
>
> 但是我屏蔽了gitlab-ce的source list就是正确的,屏蔽gitlab-ce应该也不会改变ubuntu security吧
有可能是偶发的因素造成的。建议您可以考虑将 security 源的协议改为 https 再试。或者可以忽略 apt-get update 的错误,尝试正常继续安装软件包。
Xuewei Wu
unread,
Jan 20, 2025, 6:19:57 AM
1/20/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TUNA 主邮件列表
您提到的http协议的问题确实有帮助,我将http改为https,然后加入gitlab的证书和源,update可以正确执行了
顺带一体,我原本的source.list也是使用清华源的ubuntu source.list
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
在2025年1月20日星期一 UTC+8 18:48:56<Miao Wang> 写道:
Reply all
Reply to author
Forward
0 new messages