Travis-CI中的新工作无法获取curl库 [英] A new job in Travis-CI cannot get curl library

查看:114
本文介绍了Travis-CI中的新工作无法获取curl库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Travis-CI配置了许多apt-get,并且运行良好.但是自从本周以来,apt-get失败了,某些库无法检索.我没有更改代码.我该如何解决这个问题:

I have configured Travis-CI with many apt-get, and it worked perfect. But since this week, the apt-get fails and some libraries cannot be retrieved. I have not changed the code. How can I solve this problem:

所讨论的库是curl.

The library in question is curl.

  • Working job (4 days ago): https://travis-ci.org/angoca/db2unit/jobs/47121134
  • Current job failing: https://travis-ci.org/angoca/db2unit/jobs/47634811

我面临的错误是:

$ 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?

推荐答案

特拉维斯

The Travis documentation lists a common cause of that error as being an old package database. The solution would be to add:

before_install:
    -sudo apt-get update

到您的.travis.yml文件.

干杯

这篇关于Travis-CI中的新工作无法获取curl库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆