Distributions: Ubuntu 14.04 (trusty): Unable to download index

Created on 19 Feb 2016  路  1Comment  路  Source: nodesource/distributions

Followed directions on the site, have apt-transport-https installed. I see the following error when running apt-get update:

W: Failed to fetch https://deb.nodesource.com/node_4.x/dists/trusty/main/binary-amd64/Packages  

E: Some index files failed to download. They have been ignored, or old ones used instead.

yet I'm able to access the index via curl:

$ curl https://deb.nodesource.com/node_4.x/dists/trusty/main/binary-amd64/Packages --head
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 19 Feb 2016 15:56:04 GMT
Content-Type: text/plain
Content-Length: 2294
Last-Modified: Wed, 17 Feb 2016 04:49:18 GMT
Connection: keep-alive
ETag: "56c3fbce-8f6"
Strict-Transport-Security: max-age=15552000
Accept-Ranges: bytes

Most helpful comment

Whoops. Nevermind. Finally found the verbose/debug options for apt:

$ apt-get update -o 'Debug::Acquire::https=true'
...
100% [Sources 27.9 MB] [Waiting for headers]* Connected to deb.nodesource.com (192.241.233.42) port 443 (#8)
* error reading ca cert file /etc/ssl/certs/ca-certificates.crt (Error while reading file.)
* Closing connection 8
* Hostname was found in DNS cache
*   Trying 192.241.233.42...
...

Obviously my ca-certs are messed up. Solved via

sudo apt-get --reinstall install ca-certificates

>All comments

Whoops. Nevermind. Finally found the verbose/debug options for apt:

$ apt-get update -o 'Debug::Acquire::https=true'
...
100% [Sources 27.9 MB] [Waiting for headers]* Connected to deb.nodesource.com (192.241.233.42) port 443 (#8)
* error reading ca cert file /etc/ssl/certs/ca-certificates.crt (Error while reading file.)
* Closing connection 8
* Hostname was found in DNS cache
*   Trying 192.241.233.42...
...

Obviously my ca-certs are messed up. Solved via

sudo apt-get --reinstall install ca-certificates

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timofey-retailnext picture timofey-retailnext  路  5Comments

MichaelBitard picture MichaelBitard  路  4Comments

Ignition picture Ignition  路  4Comments

maane018 picture maane018  路  5Comments

xNarkon picture xNarkon  路  3Comments