root@PC:~# sudo apt-get update sudo: unable to resolve host PC

Err http://mirror.learn.ac.lk trusty Release.gpg Unable to connect to Err http://mirror.learn.ac.lk trusty-updates Release.gpg Unable to connect to

Reading package lists... Done

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg Unable to connect to

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

  • 2
    Sounds like there's a proxy in use on your system, and that proxy is down or unreachable. – Thomas Ward Jul 1 '18 at 16:49
  • You need not use sudo at a root prompt. – user535733 Jul 1 '18 at 18:04
  • ok , thank you very much friend, it's work – Ruwan Keerthi Jul 7 '18 at 8:46

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.