1

I want to install Passenger server on my virtual machine, so I do the following:

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

But after I update

sudo apt-get update

I get this errors:

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.

I already installed it previously many times and had no problems. I have no idea what might go wrong.

vladzaets
  • 53
  • 10

3 Answers3

1

1) Try to re-install certificates as described here. Maybe they has been changed.

2) Look at this post. It describe similar problem and possible solutions.

Community
  • 1
  • 1
Maxim
  • 9,701
  • 5
  • 60
  • 108
0

Fixed that by reinstalling Ubuntu on clean VM. This issue might appeared because I copied my VM's without turning it off.

vladzaets
  • 53
  • 10
0

Another possible solution is to disable peer-verification

Possible Docker Command could be:

RUN echo 'Acquire::https::oss-binaries.phusionpassenger.com::Verify-Peer "false";' > /etc/apt/apt.conf.d/99phusionpassenger-cert

You may also like to read the solution posted on another thread: server certificate verification failed

shahjapan
  • 13,637
  • 22
  • 74
  • 104