Question

Unable to connect to website

I have been following this tutorial to install WP CLI and now I get a “Problem loading website” error whenever I try to access any website on my droplet, using a browser. I can still SSH or SFTP on the server without issues.

I suspect the error was caused by apt-get update from which I got the error:

E: Some index files failed to download. They have been ignored, or old ones used instead.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

I tried to run sudo dpkg --configure -a but nothing happened (looks like it froze) and I then ^C it:

sudo dpkg --configure -a
Setting up openssh-server (1:6.6p1-2ubuntu2) ...
^Cdpkg: error processing package openssh-server (--configure):
 subprocess installed post-installation script was interrupted
Errors were encountered while processing:
 openssh-server

I did managed to finish the installation of WP CLI without any issue and it works.

Any tips on how to get access the websites again? Thanks!

Show comments

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.

I managed to fix the issue. Aparently, apache2 was down and couldn’t be started. I deleted the file called apache2 and created a directory with the same name. Restarted and the issue was fixed.