Installing build-essential fails in Docker

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








up vote
3
down vote

favorite












Basically I have:



FROM ubuntu:18.04

RUN apt update
RUN apt install -y software-properties-common ca-certificates wget curl ssh

RUN apt install -y build-essential


Which ends up in:



...

Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2217 kB]
Fetched 44.2 MB in 3s (15.0 MB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-19.20_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt install -y build-essential' returned a non-zero code: 100


Are there some broken packages now?







share|improve this question
























    up vote
    3
    down vote

    favorite












    Basically I have:



    FROM ubuntu:18.04

    RUN apt update
    RUN apt install -y software-properties-common ca-certificates wget curl ssh

    RUN apt install -y build-essential


    Which ends up in:



    ...

    Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
    Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
    Get:50 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2217 kB]
    Fetched 44.2 MB in 3s (15.0 MB/s)
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-19.20_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    The command '/bin/sh -c apt install -y build-essential' returned a non-zero code: 100


    Are there some broken packages now?







    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      Basically I have:



      FROM ubuntu:18.04

      RUN apt update
      RUN apt install -y software-properties-common ca-certificates wget curl ssh

      RUN apt install -y build-essential


      Which ends up in:



      ...

      Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
      Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
      Get:50 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2217 kB]
      Fetched 44.2 MB in 3s (15.0 MB/s)
      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-19.20_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
      The command '/bin/sh -c apt install -y build-essential' returned a non-zero code: 100


      Are there some broken packages now?







      share|improve this question












      Basically I have:



      FROM ubuntu:18.04

      RUN apt update
      RUN apt install -y software-properties-common ca-certificates wget curl ssh

      RUN apt install -y build-essential


      Which ends up in:



      ...

      Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
      Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
      Get:50 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2217 kB]
      Fetched 44.2 MB in 3s (15.0 MB/s)
      E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-19.20_amd64.deb 404 Not Found [IP: 91.189.88.149 80]
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
      The command '/bin/sh -c apt install -y build-essential' returned a non-zero code: 100


      Are there some broken packages now?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 26 at 12:29









      user205301

      5661313




      5661313




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Solved this by giving --no-cache to Docker.






          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%2f1028396%2finstalling-build-essential-fails-in-docker%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
            2
            down vote













            Solved this by giving --no-cache to Docker.






            share|improve this answer
























              up vote
              2
              down vote













              Solved this by giving --no-cache to Docker.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                Solved this by giving --no-cache to Docker.






                share|improve this answer












                Solved this by giving --no-cache to Docker.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 26 at 12:52









                user205301

                5661313




                5661313



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028396%2finstalling-build-essential-fails-in-docker%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