2015-01-20 3 views
2

많은 apt-get로 Travis-CI를 구성했으며 완벽하게 작동했습니다. 그러나 이번 주부터는 apt-get이 실패하고 일부 라이브러리를 검색 할 수 없습니다. 코드를 변경하지 않았습니다. 이 문제를 어떻게 해결할 수 있습니까?Travis-CI의 새로운 직업은 컬 라이브러리를 얻을 수 없습니다.

해당 라이브러리가 말려 있습니다.

내가 직면하고 오류 :

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

답변

0

트래비스 documentation 목록 일반적인 원인 해당 오류를 이전 패키지 데이터베이스로 간주합니다.

before_install: 
    -sudo apt-get update 

당신의 .travis.yml 파일 :이 솔루션은 추가하는 것입니다.

건배,

관련 문제