0

when I run $sudo apt update. It always shows me the "connection timed out" error.At the same time, I can surf on Internet but the mark of net connection condition always gives a "?". How can I fix them?

  • The error message usually mention the repository or repositories that failed to connect. – user880592 Oct 13 '18 at 7:58
  • 1
    Please update your with the full output of sudo apt update – Soren A Oct 13 '18 at 8:29
  • @li ma i think it should be sudo apt-get update not sudo apt update – Gaurav Gupta Oct 13 '18 at 12:48
  • @GauravGupta apt or apt-get both work in 16.04 and newer. See man apt. – user535733 Oct 13 '18 at 12:53
  • 1
    Are you using a proxy network ? – Hirak Oct 23 '18 at 15:48
1

Try

 echo "nameserver 8.8.8.8" >/etc/resolv.conf

or changing the download server in Software & Updates

 software-properties-gtk

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.