Unable to locate package docker-engine





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







15















I'm trying to install docker on Ubuntu in vmware, unsuccessfully.
These are the commands and errors I experience.



sudo apt-get update

sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine









share|improve this question

























  • Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

    – NIMISHAN
    Dec 15 '15 at 9:37











  • I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

    – praveen
    Dec 15 '15 at 9:43








  • 1





    Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

    – Tung Tran
    Dec 15 '15 at 10:26











  • Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

    – praveen
    Dec 15 '15 at 11:10













  • Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

    – igx
    Dec 15 '15 at 14:05




















15















I'm trying to install docker on Ubuntu in vmware, unsuccessfully.
These are the commands and errors I experience.



sudo apt-get update

sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine









share|improve this question

























  • Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

    – NIMISHAN
    Dec 15 '15 at 9:37











  • I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

    – praveen
    Dec 15 '15 at 9:43








  • 1





    Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

    – Tung Tran
    Dec 15 '15 at 10:26











  • Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

    – praveen
    Dec 15 '15 at 11:10













  • Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

    – igx
    Dec 15 '15 at 14:05
















15












15








15


3






I'm trying to install docker on Ubuntu in vmware, unsuccessfully.
These are the commands and errors I experience.



sudo apt-get update

sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine









share|improve this question
















I'm trying to install docker on Ubuntu in vmware, unsuccessfully.
These are the commands and errors I experience.



sudo apt-get update

sudo apt-get install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-engine






14.04 docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '15 at 9:33









Arronical

13.7k84993




13.7k84993










asked Dec 15 '15 at 9:31









praveenpraveen

1132310




1132310













  • Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

    – NIMISHAN
    Dec 15 '15 at 9:37











  • I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

    – praveen
    Dec 15 '15 at 9:43








  • 1





    Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

    – Tung Tran
    Dec 15 '15 at 10:26











  • Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

    – praveen
    Dec 15 '15 at 11:10













  • Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

    – igx
    Dec 15 '15 at 14:05





















  • Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

    – NIMISHAN
    Dec 15 '15 at 9:37











  • I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

    – praveen
    Dec 15 '15 at 9:43








  • 1





    Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

    – Tung Tran
    Dec 15 '15 at 10:26











  • Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

    – praveen
    Dec 15 '15 at 11:10













  • Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

    – igx
    Dec 15 '15 at 14:05



















Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

– NIMISHAN
Dec 15 '15 at 9:37





Make sure you have installed the prerequisites for your Ubuntu version. Then, install Docker.

– NIMISHAN
Dec 15 '15 at 9:37













I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

– praveen
Dec 15 '15 at 9:43







I already followed the steps in prerequisites sudo apt-get install linux-image-extra-$(uname -r)

– praveen
Dec 15 '15 at 9:43






1




1





Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

– Tung Tran
Dec 15 '15 at 10:26





Have you created /etc/apt/sources.list.d/docker.list and add the correct deb entries for your Ubuntu?

– Tung Tran
Dec 15 '15 at 10:26













Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

– praveen
Dec 15 '15 at 11:10







Thanks, earlier it is unable to create the /etc/apt/sources.list.d/docker.list after trying & trying finally it got created and successfully installed the docker in my machine.... thanks again.......!

– praveen
Dec 15 '15 at 11:10















Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

– igx
Dec 15 '15 at 14:05







Actually I am having the same issue although .../docker.list is correct avi@guest-Inspiron-1464:~$ cat /etc/apt/sources.list.d/docker.list deb apt.dockerproject.org/repo ubuntu-trusty main avi@guest-Inspiron-1464:~$ apt-cache policy docker-engine N: Unable to locate package docker-engine

– igx
Dec 15 '15 at 14:05












4 Answers
4






active

oldest

votes


















13














Try 'uname -a' and make sure you're running a 64-bit architecture:



Docker requires a 64-bit installation regardless of your Ubuntu version.



https://docs.docker.com/engine/installation/linux/ubuntulinux/






share|improve this answer































    7














    As mentioned in the comments, you have to




    1. find out your distribution name via lsb_release -c

    2. the file /etc/apt/sources.list.d/docker.list should have the following content (and nothing else): deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main


    In my case (Ubuntu 14.04 aka 'trusty') I added deb https://apt.dockerproject.org/repo ubuntu-trusty main






    share|improve this answer



















    • 2





      Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

      – Caz
      Aug 26 '16 at 14:05



















    1














    I fixed this issue by running apt-get update followed by apt-get install docker.io






    share|improve this answer































      0














      I had other issues including "Unable" in Ubuntu 16.04. This is bash script to solve issues in my machine.



      #!/bin/bash

      sudo apt update
      sudo rm /var/lib/apt/lists/*
      sudo rm /var/cache/apt/*.bin

      VERSION-NAME=$(lsb_release -c)
      y=$(echo $VERSION-NAME | awk '{print $2}')
      echo $y
      cd /etc/apt/sources.list.d
      touch docker_test.list
      echo "deb https://apt.dockerproject.org/repo ubuntu-$y main" > docker_test.list

      sudo apt-get install linux-image-extra-$(uname -r)
      sudo apt-get update
      sudo apt-get install docker.io


      I had different issue when I had to uninstall Docker at the time. This is bash script (source) for my machine.



      # For unistall in Ubuntu
      sudo apt-get purge docker.io
      # This will erase all your container images
      sudo rm -rf /var/lib/docker
      # This will erase all docker configs
      sudo rm -rf /etc/docker/
      sudo apt-get purge docker.io





      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',
        autoActivateHeartbeat: false,
        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%2f709699%2funable-to-locate-package-docker-engine%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        13














        Try 'uname -a' and make sure you're running a 64-bit architecture:



        Docker requires a 64-bit installation regardless of your Ubuntu version.



        https://docs.docker.com/engine/installation/linux/ubuntulinux/






        share|improve this answer




























          13














          Try 'uname -a' and make sure you're running a 64-bit architecture:



          Docker requires a 64-bit installation regardless of your Ubuntu version.



          https://docs.docker.com/engine/installation/linux/ubuntulinux/






          share|improve this answer


























            13












            13








            13







            Try 'uname -a' and make sure you're running a 64-bit architecture:



            Docker requires a 64-bit installation regardless of your Ubuntu version.



            https://docs.docker.com/engine/installation/linux/ubuntulinux/






            share|improve this answer













            Try 'uname -a' and make sure you're running a 64-bit architecture:



            Docker requires a 64-bit installation regardless of your Ubuntu version.



            https://docs.docker.com/engine/installation/linux/ubuntulinux/







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 3 '16 at 6:22









            Andre P.Andre P.

            13112




            13112

























                7














                As mentioned in the comments, you have to




                1. find out your distribution name via lsb_release -c

                2. the file /etc/apt/sources.list.d/docker.list should have the following content (and nothing else): deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main


                In my case (Ubuntu 14.04 aka 'trusty') I added deb https://apt.dockerproject.org/repo ubuntu-trusty main






                share|improve this answer



















                • 2





                  Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                  – Caz
                  Aug 26 '16 at 14:05
















                7














                As mentioned in the comments, you have to




                1. find out your distribution name via lsb_release -c

                2. the file /etc/apt/sources.list.d/docker.list should have the following content (and nothing else): deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main


                In my case (Ubuntu 14.04 aka 'trusty') I added deb https://apt.dockerproject.org/repo ubuntu-trusty main






                share|improve this answer



















                • 2





                  Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                  – Caz
                  Aug 26 '16 at 14:05














                7












                7








                7







                As mentioned in the comments, you have to




                1. find out your distribution name via lsb_release -c

                2. the file /etc/apt/sources.list.d/docker.list should have the following content (and nothing else): deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main


                In my case (Ubuntu 14.04 aka 'trusty') I added deb https://apt.dockerproject.org/repo ubuntu-trusty main






                share|improve this answer













                As mentioned in the comments, you have to




                1. find out your distribution name via lsb_release -c

                2. the file /etc/apt/sources.list.d/docker.list should have the following content (and nothing else): deb https://apt.dockerproject.org/repo ubuntu-VERSION-NAME main


                In my case (Ubuntu 14.04 aka 'trusty') I added deb https://apt.dockerproject.org/repo ubuntu-trusty main







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 10 '16 at 17:06









                SebastianSebastian

                1734




                1734








                • 2





                  Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                  – Caz
                  Aug 26 '16 at 14:05














                • 2





                  Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                  – Caz
                  Aug 26 '16 at 14:05








                2




                2





                Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                – Caz
                Aug 26 '16 at 14:05





                Look at docs.docker.com/engine/installation/linux/ubuntulinux where there are detailed instructions on setting up apt and related keys to get docker. I had it installed via docker.io (the package maintained by ubuntu) which left me with an unresolved docker-engine package trying to install nvidia-docker. I had to uninstall and purge docker.io before getting docker-engine installed.

                – Caz
                Aug 26 '16 at 14:05











                1














                I fixed this issue by running apt-get update followed by apt-get install docker.io






                share|improve this answer




























                  1














                  I fixed this issue by running apt-get update followed by apt-get install docker.io






                  share|improve this answer


























                    1












                    1








                    1







                    I fixed this issue by running apt-get update followed by apt-get install docker.io






                    share|improve this answer













                    I fixed this issue by running apt-get update followed by apt-get install docker.io







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 7 at 6:47









                    Abhishek JainAbhishek Jain

                    1111




                    1111























                        0














                        I had other issues including "Unable" in Ubuntu 16.04. This is bash script to solve issues in my machine.



                        #!/bin/bash

                        sudo apt update
                        sudo rm /var/lib/apt/lists/*
                        sudo rm /var/cache/apt/*.bin

                        VERSION-NAME=$(lsb_release -c)
                        y=$(echo $VERSION-NAME | awk '{print $2}')
                        echo $y
                        cd /etc/apt/sources.list.d
                        touch docker_test.list
                        echo "deb https://apt.dockerproject.org/repo ubuntu-$y main" > docker_test.list

                        sudo apt-get install linux-image-extra-$(uname -r)
                        sudo apt-get update
                        sudo apt-get install docker.io


                        I had different issue when I had to uninstall Docker at the time. This is bash script (source) for my machine.



                        # For unistall in Ubuntu
                        sudo apt-get purge docker.io
                        # This will erase all your container images
                        sudo rm -rf /var/lib/docker
                        # This will erase all docker configs
                        sudo rm -rf /etc/docker/
                        sudo apt-get purge docker.io





                        share|improve this answer




























                          0














                          I had other issues including "Unable" in Ubuntu 16.04. This is bash script to solve issues in my machine.



                          #!/bin/bash

                          sudo apt update
                          sudo rm /var/lib/apt/lists/*
                          sudo rm /var/cache/apt/*.bin

                          VERSION-NAME=$(lsb_release -c)
                          y=$(echo $VERSION-NAME | awk '{print $2}')
                          echo $y
                          cd /etc/apt/sources.list.d
                          touch docker_test.list
                          echo "deb https://apt.dockerproject.org/repo ubuntu-$y main" > docker_test.list

                          sudo apt-get install linux-image-extra-$(uname -r)
                          sudo apt-get update
                          sudo apt-get install docker.io


                          I had different issue when I had to uninstall Docker at the time. This is bash script (source) for my machine.



                          # For unistall in Ubuntu
                          sudo apt-get purge docker.io
                          # This will erase all your container images
                          sudo rm -rf /var/lib/docker
                          # This will erase all docker configs
                          sudo rm -rf /etc/docker/
                          sudo apt-get purge docker.io





                          share|improve this answer


























                            0












                            0








                            0







                            I had other issues including "Unable" in Ubuntu 16.04. This is bash script to solve issues in my machine.



                            #!/bin/bash

                            sudo apt update
                            sudo rm /var/lib/apt/lists/*
                            sudo rm /var/cache/apt/*.bin

                            VERSION-NAME=$(lsb_release -c)
                            y=$(echo $VERSION-NAME | awk '{print $2}')
                            echo $y
                            cd /etc/apt/sources.list.d
                            touch docker_test.list
                            echo "deb https://apt.dockerproject.org/repo ubuntu-$y main" > docker_test.list

                            sudo apt-get install linux-image-extra-$(uname -r)
                            sudo apt-get update
                            sudo apt-get install docker.io


                            I had different issue when I had to uninstall Docker at the time. This is bash script (source) for my machine.



                            # For unistall in Ubuntu
                            sudo apt-get purge docker.io
                            # This will erase all your container images
                            sudo rm -rf /var/lib/docker
                            # This will erase all docker configs
                            sudo rm -rf /etc/docker/
                            sudo apt-get purge docker.io





                            share|improve this answer













                            I had other issues including "Unable" in Ubuntu 16.04. This is bash script to solve issues in my machine.



                            #!/bin/bash

                            sudo apt update
                            sudo rm /var/lib/apt/lists/*
                            sudo rm /var/cache/apt/*.bin

                            VERSION-NAME=$(lsb_release -c)
                            y=$(echo $VERSION-NAME | awk '{print $2}')
                            echo $y
                            cd /etc/apt/sources.list.d
                            touch docker_test.list
                            echo "deb https://apt.dockerproject.org/repo ubuntu-$y main" > docker_test.list

                            sudo apt-get install linux-image-extra-$(uname -r)
                            sudo apt-get update
                            sudo apt-get install docker.io


                            I had different issue when I had to uninstall Docker at the time. This is bash script (source) for my machine.



                            # For unistall in Ubuntu
                            sudo apt-get purge docker.io
                            # This will erase all your container images
                            sudo rm -rf /var/lib/docker
                            # This will erase all docker configs
                            sudo rm -rf /etc/docker/
                            sudo apt-get purge docker.io






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 21 '18 at 0:41









                            Cloud ChoCloud Cho

                            162




                            162






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f709699%2funable-to-locate-package-docker-engine%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

                                How to change which sound is reproduced for terminal bell?

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

                                Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents