乘客存储库证书验证失败

时间:2015-02-28 12:21:35

标签: ruby-on-rails linux ubuntu debian passenger

我想在我的虚拟机上安装Passenger服务器,所以我执行以下操作:

sudo sh -c "echo 'deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main' >> /etc/apt/sources.list.d/passenger.list"
sudo chown root: /etc/apt/sources.list.d/passenger.list
sudo chmod 600 /etc/apt/sources.list.d/passenger.list

但是在我更新后

sudo apt-get update

我收到了这个错误:

Err https://oss-binaries.phusionpassenger.com trusty/main amd64 Packages       
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err https://oss-binaries.phusionpassenger.com trusty/main i386 Packages        
  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Ign https://oss-binaries.phusionpassenger.com trusty/main Translation-en_US    
Ign https://oss-binaries.phusionpassenger.com trusty/main Translation-en       
Fetched 2,573 kB in 11s (220 kB/s)                                             
W: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-amd64/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

W: Failed to fetch https://oss-binaries.phusionpassenger.com/apt/passenger/dists/trusty/main/binary-i386/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

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

我之前已多次安装它并且没有问题。我不知道会出现什么问题。

2 个答案:

答案 0 :(得分:1)

1)尝试按照here所述重新安装证书。也许他们已经改变了。

2)看this帖子。它描述了类似的问题和可能的解决方案。

答案 1 :(得分:0)

修复了在干净的VM上重新安装Ubuntu的问题。 可能会出现此问题,因为我复制了我的VM而没有将其关闭。