gpt4 book ai didi

ubuntu - Travis-CI 中的新作业无法获取 curl 库

转载 作者:太空宇宙 更新时间:2023-11-03 16:59:09 25 4
gpt4 key购买 nike

我已经用许多 apt-get 配置了 Travis-CI,它运行得很好。但是从这周开始,apt-get 失败了,有些库无法找回。我没有更改代码。我该如何解决这个问题:

有问题的库是 curl。

我遇到的错误是:

$ sudo apt-get install aria2 curl -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libgeos-3.2.2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libc-ares2
The following NEW packages will be installed:
aria2 libc-ares2
The following packages will be upgraded:
curl
1 upgraded, 2 newly installed, 0 to remove and 125 not upgraded.
Need to get 1,949 kB of archives.
After this operation, 5,179 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libc-ares2 amd64 1.7.5-1 [36.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/universe aria2 amd64 1.13.0-1 [1,775 kB]
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22.0-3ubuntu4.11
404 Not Found [IP: 2001:67c:1562::14 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main curl amd64 7.22.0-3ubuntu4.11
404 Not Found [IP: 2001:67c:1562::14 80]
Fetched 1,811 kB in 0s (6,802 kB/s)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.22.0-3ubuntu4.11_amd64.deb 404 Not Found [IP: 2001:67c:1562::14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

最佳答案

特拉维斯 documentation列出该错误的常见原因是旧包数据库。解决方案是添加:

before_install:
-sudo apt-get update

到你的 .travis.yml 文件。

干杯,

关于ubuntu - Travis-CI 中的新作业无法获取 curl 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28046457/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com