Question

Letsencrypt/OpenSSL issue

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

Cheers, Brose


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@iambrose

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.

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.