Apt “Connection failed”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












since installing Ubuntu I have been unable to install new packages, it has even failed to update. below is a dump of connection error i see when i tried to install Wine:



E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb Connection failed [IP: 91.189.88.152 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb Connection failed [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?






share|improve this question


















  • 3




    Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
    – Nick Weinberg
    Apr 22 '17 at 21:28















up vote
0
down vote

favorite












since installing Ubuntu I have been unable to install new packages, it has even failed to update. below is a dump of connection error i see when i tried to install Wine:



E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb Connection failed [IP: 91.189.88.152 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb Connection failed [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?






share|improve this question


















  • 3




    Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
    – Nick Weinberg
    Apr 22 '17 at 21:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











since installing Ubuntu I have been unable to install new packages, it has even failed to update. below is a dump of connection error i see when i tried to install Wine:



E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb Connection failed [IP: 91.189.88.152 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb Connection failed [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?






share|improve this question














since installing Ubuntu I have been unable to install new packages, it has even failed to update. below is a dump of connection error i see when i tried to install Wine:



E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb Connection failed [IP: 91.189.88.152 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb Connection failed [IP: 91.189.88.162 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?








share|improve this question













share|improve this question




share|improve this question








edited Apr 22 '17 at 22:41









David Foerster

26.1k1361106




26.1k1361106










asked Apr 22 '17 at 20:43









ayiya

1




1







  • 3




    Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
    – Nick Weinberg
    Apr 22 '17 at 21:28













  • 3




    Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
    – Nick Weinberg
    Apr 22 '17 at 21:28








3




3




Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
– Nick Weinberg
Apr 22 '17 at 21:28





Please try running sudo apt update and then try your original command again. Also, is your internet connection working normally?
– Nick Weinberg
Apr 22 '17 at 21:28











1 Answer
1






active

oldest

votes

















up vote
1
down vote













The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:



export http_proxy=<your_proxy>:<port>





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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f907859%2fapt-connection-failed%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:



    export http_proxy=<your_proxy>:<port>





    share|improve this answer
























      up vote
      1
      down vote













      The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:



      export http_proxy=<your_proxy>:<port>





      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:



        export http_proxy=<your_proxy>:<port>





        share|improve this answer












        The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:



        export http_proxy=<your_proxy>:<port>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 22 '17 at 23:01









        Mancubus

        5318




        5318



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f907859%2fapt-connection-failed%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491