sudo apt-get update error. [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • Why can't apt resolve names?

    2 answers




Version 18.04 sudo apt-get update



I am trying to "update" but am getting the following message:



Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Could not resolve 'archive.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or cold ones used instead.


I have tried to follow various solutions for this but cannot resolve it.



I have tried to update using ethernet in case it was the wifi. I still get the same error.



I have tried to do:



echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/nell


but get



tee: /etc/resolvconf/resolv.conf.d/base: No such file or directory










share|improve this question















marked as duplicate by karel, N0rbert, user535733, Eric Carvalho, pomsky Nov 26 at 17:40


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















    up vote
    0
    down vote

    favorite













    This question already has an answer here:




    • Why can't apt resolve names?

      2 answers




    Version 18.04 sudo apt-get update



    I am trying to "update" but am getting the following message:



    Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
    Could not resolve 'archive.ubuntu.com'
    Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
    Could not resolve 'archive.ubuntu.com'
    Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
    Could not resolve 'archive.ubuntu.com'
    Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
    Could not resolve 'archive.ubuntu.com'
    Reading package lists... Done
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com'
    W: Some index files failed to download. They have been ignored, or cold ones used instead.


    I have tried to follow various solutions for this but cannot resolve it.



    I have tried to update using ethernet in case it was the wifi. I still get the same error.



    I have tried to do:



    echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/nell


    but get



    tee: /etc/resolvconf/resolv.conf.d/base: No such file or directory










    share|improve this question















    marked as duplicate by karel, N0rbert, user535733, Eric Carvalho, pomsky Nov 26 at 17:40


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:




      • Why can't apt resolve names?

        2 answers




      Version 18.04 sudo apt-get update



      I am trying to "update" but am getting the following message:



      Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
      Could not resolve 'archive.ubuntu.com'
      Reading package lists... Done
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com'
      W: Some index files failed to download. They have been ignored, or cold ones used instead.


      I have tried to follow various solutions for this but cannot resolve it.



      I have tried to update using ethernet in case it was the wifi. I still get the same error.



      I have tried to do:



      echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/nell


      but get



      tee: /etc/resolvconf/resolv.conf.d/base: No such file or directory










      share|improve this question
















      This question already has an answer here:




      • Why can't apt resolve names?

        2 answers




      Version 18.04 sudo apt-get update



      I am trying to "update" but am getting the following message:



      Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
      Could not resolve 'archive.ubuntu.com'
      Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease
      Could not resolve 'archive.ubuntu.com'
      Reading package lists... Done
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com'
      W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com'
      W: Some index files failed to download. They have been ignored, or cold ones used instead.


      I have tried to follow various solutions for this but cannot resolve it.



      I have tried to update using ethernet in case it was the wifi. I still get the same error.



      I have tried to do:



      echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/nell


      but get



      tee: /etc/resolvconf/resolv.conf.d/base: No such file or directory





      This question already has an answer here:




      • Why can't apt resolve names?

        2 answers








      apt 18.04 updates files connection






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 28 at 13:04

























      asked Nov 26 at 12:42









      flamed

      11




      11




      marked as duplicate by karel, N0rbert, user535733, Eric Carvalho, pomsky Nov 26 at 17:40


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by karel, N0rbert, user535733, Eric Carvalho, pomsky Nov 26 at 17:40


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I think you're on a right track.



          Could not resolve 'archive.ubuntu.com' indicates some kind of a network issue, possible a DNS failure.



          Maybe let's figure the Ethernet first (wifi should work out-of-the box most of the times, but there are some problematic chipsets).



          In ubuntu uses network manager and we check the settings in GUI:





          1. Open network settings



            1.1. Hit the windows key



            1.2. Type settings



            1.3. Go to Network at the bottom



          2. Is the Wired indicated as connected?



          wired network settings




          1. Does the configuration (after clicking the gear icon) look sane?


          network details



          You can put your dns settings there in the IPv4 tab.



          I'm on ubuntu 18.10, but it should look similar in 18.04 except a different theme






          share|improve this answer





















          • Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
            – flamed
            Nov 26 at 13:00












          • Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
            – Igor Kupczyński
            Nov 26 at 13:03












          • I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
            – flamed
            Nov 26 at 13:06










          • ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
            – flamed
            Nov 26 at 13:08












          • Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
            – Igor Kupczyński
            Nov 26 at 13:20


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          I think you're on a right track.



          Could not resolve 'archive.ubuntu.com' indicates some kind of a network issue, possible a DNS failure.



          Maybe let's figure the Ethernet first (wifi should work out-of-the box most of the times, but there are some problematic chipsets).



          In ubuntu uses network manager and we check the settings in GUI:





          1. Open network settings



            1.1. Hit the windows key



            1.2. Type settings



            1.3. Go to Network at the bottom



          2. Is the Wired indicated as connected?



          wired network settings




          1. Does the configuration (after clicking the gear icon) look sane?


          network details



          You can put your dns settings there in the IPv4 tab.



          I'm on ubuntu 18.10, but it should look similar in 18.04 except a different theme






          share|improve this answer





















          • Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
            – flamed
            Nov 26 at 13:00












          • Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
            – Igor Kupczyński
            Nov 26 at 13:03












          • I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
            – flamed
            Nov 26 at 13:06










          • ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
            – flamed
            Nov 26 at 13:08












          • Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
            – Igor Kupczyński
            Nov 26 at 13:20















          up vote
          0
          down vote













          I think you're on a right track.



          Could not resolve 'archive.ubuntu.com' indicates some kind of a network issue, possible a DNS failure.



          Maybe let's figure the Ethernet first (wifi should work out-of-the box most of the times, but there are some problematic chipsets).



          In ubuntu uses network manager and we check the settings in GUI:





          1. Open network settings



            1.1. Hit the windows key



            1.2. Type settings



            1.3. Go to Network at the bottom



          2. Is the Wired indicated as connected?



          wired network settings




          1. Does the configuration (after clicking the gear icon) look sane?


          network details



          You can put your dns settings there in the IPv4 tab.



          I'm on ubuntu 18.10, but it should look similar in 18.04 except a different theme






          share|improve this answer





















          • Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
            – flamed
            Nov 26 at 13:00












          • Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
            – Igor Kupczyński
            Nov 26 at 13:03












          • I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
            – flamed
            Nov 26 at 13:06










          • ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
            – flamed
            Nov 26 at 13:08












          • Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
            – Igor Kupczyński
            Nov 26 at 13:20













          up vote
          0
          down vote










          up vote
          0
          down vote









          I think you're on a right track.



          Could not resolve 'archive.ubuntu.com' indicates some kind of a network issue, possible a DNS failure.



          Maybe let's figure the Ethernet first (wifi should work out-of-the box most of the times, but there are some problematic chipsets).



          In ubuntu uses network manager and we check the settings in GUI:





          1. Open network settings



            1.1. Hit the windows key



            1.2. Type settings



            1.3. Go to Network at the bottom



          2. Is the Wired indicated as connected?



          wired network settings




          1. Does the configuration (after clicking the gear icon) look sane?


          network details



          You can put your dns settings there in the IPv4 tab.



          I'm on ubuntu 18.10, but it should look similar in 18.04 except a different theme






          share|improve this answer












          I think you're on a right track.



          Could not resolve 'archive.ubuntu.com' indicates some kind of a network issue, possible a DNS failure.



          Maybe let's figure the Ethernet first (wifi should work out-of-the box most of the times, but there are some problematic chipsets).



          In ubuntu uses network manager and we check the settings in GUI:





          1. Open network settings



            1.1. Hit the windows key



            1.2. Type settings



            1.3. Go to Network at the bottom



          2. Is the Wired indicated as connected?



          wired network settings




          1. Does the configuration (after clicking the gear icon) look sane?


          network details



          You can put your dns settings there in the IPv4 tab.



          I'm on ubuntu 18.10, but it should look similar in 18.04 except a different theme







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 at 12:52









          Igor Kupczyński

          363




          363












          • Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
            – flamed
            Nov 26 at 13:00












          • Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
            – Igor Kupczyński
            Nov 26 at 13:03












          • I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
            – flamed
            Nov 26 at 13:06










          • ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
            – flamed
            Nov 26 at 13:08












          • Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
            – Igor Kupczyński
            Nov 26 at 13:20


















          • Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
            – flamed
            Nov 26 at 13:00












          • Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
            – Igor Kupczyński
            Nov 26 at 13:03












          • I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
            – flamed
            Nov 26 at 13:06










          • ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
            – flamed
            Nov 26 at 13:08












          • Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
            – Igor Kupczyński
            Nov 26 at 13:20
















          Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
          – flamed
          Nov 26 at 13:00






          Thank you for your reply! In Network it just shows VPN and Network Proxy, there's no "Wired" option there
          – flamed
          Nov 26 at 13:00














          Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
          – Igor Kupczyński
          Nov 26 at 13:03






          Can you actually connect to internet? Either on wifi or ethernet? E.g. you can test with ping google.com or ping 8.8.8.8
          – Igor Kupczyński
          Nov 26 at 13:03














          I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
          – flamed
          Nov 26 at 13:06




          I can connect the actual machine (MacBook Pro) by either wifi or ethernet (I am using it now but am in Safari), but it seems that when using VM/Ubuntu I am not connected. Under wifi is says "no wifi adapter found"
          – flamed
          Nov 26 at 13:06












          ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
          – flamed
          Nov 26 at 13:08






          ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: imp_seq=2 ttl=63 time=4.54 ms
          – flamed
          Nov 26 at 13:08














          Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
          – Igor Kupczyński
          Nov 26 at 13:20




          Oh, this is under Virtualbox, maybe this link will help unix.stackexchange.com/questions/37122/… ?
          – Igor Kupczyński
          Nov 26 at 13:20



          Popular posts from this blog

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?