Unable to update my ubuntu server 14.04 using apt-get update











up vote
3
down vote

favorite
1












I am unable to update my ubuntu server 14.04 using apt-get update.



Outcome is:



W: failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/inrelease 


And another error is:



/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1 : cannot open shared object


How can I solve this?










share|improve this question
























  • Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
    – bain
    May 6 '14 at 12:13












  • Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
    – bain
    May 6 '14 at 13:50










  • deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
    – user278527
    May 6 '14 at 13:52










  • What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
    – bain
    May 6 '14 at 14:50

















up vote
3
down vote

favorite
1












I am unable to update my ubuntu server 14.04 using apt-get update.



Outcome is:



W: failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/inrelease 


And another error is:



/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1 : cannot open shared object


How can I solve this?










share|improve this question
























  • Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
    – bain
    May 6 '14 at 12:13












  • Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
    – bain
    May 6 '14 at 13:50










  • deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
    – user278527
    May 6 '14 at 13:52










  • What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
    – bain
    May 6 '14 at 14:50















up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





I am unable to update my ubuntu server 14.04 using apt-get update.



Outcome is:



W: failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/inrelease 


And another error is:



/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1 : cannot open shared object


How can I solve this?










share|improve this question















I am unable to update my ubuntu server 14.04 using apt-get update.



Outcome is:



W: failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/inrelease 


And another error is:



/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1 : cannot open shared object


How can I solve this?







updates 14.04






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 6 '14 at 9:16







user224082

















asked May 6 '14 at 9:09









user278527

19113




19113












  • Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
    – bain
    May 6 '14 at 12:13












  • Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
    – bain
    May 6 '14 at 13:50










  • deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
    – user278527
    May 6 '14 at 13:52










  • What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
    – bain
    May 6 '14 at 14:50




















  • Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
    – bain
    May 6 '14 at 12:13












  • Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
    – bain
    May 6 '14 at 13:50










  • deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
    – user278527
    May 6 '14 at 13:52










  • What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
    – bain
    May 6 '14 at 14:50


















Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
– bain
May 6 '14 at 12:13






Was this a fresh install of 14.04 or an upgrade? Can you post the output of grep '^deb ' /etc/apt/sources.list
– bain
May 6 '14 at 12:13














Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
– bain
May 6 '14 at 13:50




Something is wrong with your sources.list - restore it by following the answer to askubuntu.com/questions/459542/…
– bain
May 6 '14 at 13:50












deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
– user278527
May 6 '14 at 13:52




deb us.archive.ubuntu.com/ubuntu trusty main restricted deb-src us.archive.ubuntu.com/ubuntu trusty main restricted deb us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb-src us.archive.ubuntu.com/ubuntu trusty-updates main restricted deb us.archive.ubuntu.com/ubuntu trusty universe deb-src us.archive.ubuntu.com/ubuntu trusty universe deb us.archive.ubuntu.com/ubuntu trusty-updates universe deb-src us.archive.ubuntu.com/ubuntu trusty-updates universe
– user278527
May 6 '14 at 13:52












What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
– bain
May 6 '14 at 14:50






What happens if you follow the answer on askubuntu.com/questions/128369/… (do "select best server" in Software Sources)? And when you run apt-get update, before the "Failed to fetch" errors are there any lines that begin with "Err http://"?
– bain
May 6 '14 at 14:50












3 Answers
3






active

oldest

votes

















up vote
0
down vote













I just had this same issue. My company has a firewall that stopped apt-get from getting to the http sources. They still allow ftp traffic, so I was able to work around the firewall by changing all the "http" sites in sources.list to "ftp". For example, in file /etc/apt/sources.list, I changed line:



deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main


to



deb ftp://us.archive.ubuntu.com/ubuntu/ trusty-security main


Now apt-get is able to fetch the files from the repositories.






share|improve this answer




























    up vote
    0
    down vote













    edit /etc/resolve.conf file and change nameserver adress e.g 8.8.8.8 if thats not solving your problem try this tutorial






    share|improve this answer





















    • Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
      – Karl Richter
      Jun 20 '15 at 11:22


















    up vote
    -2
    down vote













    You should try sudo apt-get upgrade that will run as superuser and upgrade you to 16.04 if you dont want that try sudo apt-get update to run the command as superuser thats what u usually do if your updating your current version there also could be no new updated versions but I bet there are if you want to check you can use sudo apt-get dist-upgrade to upgrade your current verison of ubuntu like 14.04 to 14.14 for expmple though ther might not be a 14.14 version of ubuntu!!! Thank you for the question!






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f461656%2funable-to-update-my-ubuntu-server-14-04-using-apt-get-update%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      I just had this same issue. My company has a firewall that stopped apt-get from getting to the http sources. They still allow ftp traffic, so I was able to work around the firewall by changing all the "http" sites in sources.list to "ftp". For example, in file /etc/apt/sources.list, I changed line:



      deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main


      to



      deb ftp://us.archive.ubuntu.com/ubuntu/ trusty-security main


      Now apt-get is able to fetch the files from the repositories.






      share|improve this answer

























        up vote
        0
        down vote













        I just had this same issue. My company has a firewall that stopped apt-get from getting to the http sources. They still allow ftp traffic, so I was able to work around the firewall by changing all the "http" sites in sources.list to "ftp". For example, in file /etc/apt/sources.list, I changed line:



        deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main


        to



        deb ftp://us.archive.ubuntu.com/ubuntu/ trusty-security main


        Now apt-get is able to fetch the files from the repositories.






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          I just had this same issue. My company has a firewall that stopped apt-get from getting to the http sources. They still allow ftp traffic, so I was able to work around the firewall by changing all the "http" sites in sources.list to "ftp". For example, in file /etc/apt/sources.list, I changed line:



          deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main


          to



          deb ftp://us.archive.ubuntu.com/ubuntu/ trusty-security main


          Now apt-get is able to fetch the files from the repositories.






          share|improve this answer












          I just had this same issue. My company has a firewall that stopped apt-get from getting to the http sources. They still allow ftp traffic, so I was able to work around the firewall by changing all the "http" sites in sources.list to "ftp". For example, in file /etc/apt/sources.list, I changed line:



          deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main


          to



          deb ftp://us.archive.ubuntu.com/ubuntu/ trusty-security main


          Now apt-get is able to fetch the files from the repositories.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 30 '14 at 1:29









          L. Quinones

          1




          1
























              up vote
              0
              down vote













              edit /etc/resolve.conf file and change nameserver adress e.g 8.8.8.8 if thats not solving your problem try this tutorial






              share|improve this answer





















              • Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
                – Karl Richter
                Jun 20 '15 at 11:22















              up vote
              0
              down vote













              edit /etc/resolve.conf file and change nameserver adress e.g 8.8.8.8 if thats not solving your problem try this tutorial






              share|improve this answer





















              • Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
                – Karl Richter
                Jun 20 '15 at 11:22













              up vote
              0
              down vote










              up vote
              0
              down vote









              edit /etc/resolve.conf file and change nameserver adress e.g 8.8.8.8 if thats not solving your problem try this tutorial






              share|improve this answer












              edit /etc/resolve.conf file and change nameserver adress e.g 8.8.8.8 if thats not solving your problem try this tutorial







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Dec 31 '14 at 15:26









              programmer one

              11




              11












              • Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
                – Karl Richter
                Jun 20 '15 at 11:22


















              • Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
                – Karl Richter
                Jun 20 '15 at 11:22
















              Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
              – Karl Richter
              Jun 20 '15 at 11:22




              Some ISP disallow the usage of google's nameserver 8.8.8.8 which might be you in further trouble. Keep that in mind.
              – Karl Richter
              Jun 20 '15 at 11:22










              up vote
              -2
              down vote













              You should try sudo apt-get upgrade that will run as superuser and upgrade you to 16.04 if you dont want that try sudo apt-get update to run the command as superuser thats what u usually do if your updating your current version there also could be no new updated versions but I bet there are if you want to check you can use sudo apt-get dist-upgrade to upgrade your current verison of ubuntu like 14.04 to 14.14 for expmple though ther might not be a 14.14 version of ubuntu!!! Thank you for the question!






              share|improve this answer



























                up vote
                -2
                down vote













                You should try sudo apt-get upgrade that will run as superuser and upgrade you to 16.04 if you dont want that try sudo apt-get update to run the command as superuser thats what u usually do if your updating your current version there also could be no new updated versions but I bet there are if you want to check you can use sudo apt-get dist-upgrade to upgrade your current verison of ubuntu like 14.04 to 14.14 for expmple though ther might not be a 14.14 version of ubuntu!!! Thank you for the question!






                share|improve this answer

























                  up vote
                  -2
                  down vote










                  up vote
                  -2
                  down vote









                  You should try sudo apt-get upgrade that will run as superuser and upgrade you to 16.04 if you dont want that try sudo apt-get update to run the command as superuser thats what u usually do if your updating your current version there also could be no new updated versions but I bet there are if you want to check you can use sudo apt-get dist-upgrade to upgrade your current verison of ubuntu like 14.04 to 14.14 for expmple though ther might not be a 14.14 version of ubuntu!!! Thank you for the question!






                  share|improve this answer














                  You should try sudo apt-get upgrade that will run as superuser and upgrade you to 16.04 if you dont want that try sudo apt-get update to run the command as superuser thats what u usually do if your updating your current version there also could be no new updated versions but I bet there are if you want to check you can use sudo apt-get dist-upgrade to upgrade your current verison of ubuntu like 14.04 to 14.14 for expmple though ther might not be a 14.14 version of ubuntu!!! Thank you for the question!







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 13 '17 at 1:48

























                  answered Jul 8 '17 at 5:58









                  Galien1

                  27




                  27






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f461656%2funable-to-update-my-ubuntu-server-14-04-using-apt-get-update%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Category:香港粉麵

                      List *all* the tuples!

                      Channel [V]