Letsencrypt/OpenSSL issue

February 9, 2017 876 views
Let's Encrypt Ubuntu

I try install letsencrypt ssl to my server by this tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04 but I got the following errors:

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
apt-get update hit problems but continuing anyway...
WARNING: The following packages cannot be authenticated!
libssl-dev openssl
E: There are problems and -y was used without --force-yes

Can you help me? How can I install openssl and after that the Letsencrypt? I currently using Ubuntu 14


2 Answers

Did you ensure that you ran apt-get update before attempting the install. The most common reason to see 404 errors when trying to install via apt is if your local package database is out of date.


How did you add Ondřej Surý PHP repository? Did you use a command such as the one below?

sudo add-apt-repository ppa:ondrej/php

After adding his repo you'd need to run apt-get update. You may also want to make sure that you have his signing key installed on your server as the follow suggests that it doesn't exist:

WARNING: The following packages cannot be authenticated!

You can add his key by running:

apt-key adv --fetch-keys "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4F4EA0AAE5267A6C"

I would then run:

apt-get update

... once again.

Have another answer? Share your knowledge.