Sub-process /usr/bin/dpkg returned an error code (1) when installing docker-ce on Ubuntu 16.04










0















I try to prepare Ubuntu 16.04 automatically via script for installing Rancher, which requires 17.03.2 as latest Docker version:



 default: Setting up docker-ce (17.03.2~ce-0~ubuntu-xenial) ...
default: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
default: invoke-rc.d: initscript docker, action "start" failed.
default: ● docker.service - Docker Application Container Engine
default: Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
default: Active: failed (Result: exit-code) since Tue 2018-11-13 17:25:47 UTC; 6ms ago
default: Docs: https://docs.docker.com
default: Process: 4162 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
default: Main PID: 4162 (code=exited, status=1/FAILURE)
default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Starting Docker Application Contai....
default: Nov 13 17:25:47 ubuntu-xenial dockerd[4162]: no sockets found via socket act...d
default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Main process exite...E
default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Failed to start Docker Application....
default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Unit entered faile....
default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Failed with result....
default: Hint: Some lines were ellipsized, use -l to show in full.
default: dpkg: error processing package docker-ce (--configure):
default: subprocess installed post-installation script returned error exit status 1
default: Processing triggers for libc-bin (2.23-0ubuntu10) ...
default: Processing triggers for systemd (229-4ubuntu21.8) ...
default: Processing triggers for ureadahead (0.100.0-19) ...
default: Errors were encountered while processing:
default: docker-ce
default: E: Sub-process /usr/bin/dpkg returned an error code (1)


My script according to the Docker docs:



apt-get update
apt-get upgrade -y
apt-get remove -y docker docker-engine docker.io

apt-get install
apt-transport-https
ca-certificates
curl
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"

apt-get update
apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial


It seems that Docker itself is working since I can e.g. call docker --version after starting the daemon with service docker start. But I doesn't know why those errors occurs.



Vagrantfile



# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"

config.vm.provision "shell", path: "scripts/dependencies.sh"
end


I'm using Vagrant with vagrant up --provision. Before starting, the old machine was deleted using vagrant destroy to make sure that the problems are not caused by some older runs of the script. The version is 16.04.5 LTS. The systemctl and journalctl commands gave me a very long output, that doesn't seem to have more information about the problem like




default: Nov 13 17:41:19 ubuntu-xenial systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE




Even more strange that I don't get the error when running vagrant ssh and executing all the commands hand by hand.










share|improve this question


























    0















    I try to prepare Ubuntu 16.04 automatically via script for installing Rancher, which requires 17.03.2 as latest Docker version:



     default: Setting up docker-ce (17.03.2~ce-0~ubuntu-xenial) ...
    default: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
    default: invoke-rc.d: initscript docker, action "start" failed.
    default: ● docker.service - Docker Application Container Engine
    default: Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
    default: Active: failed (Result: exit-code) since Tue 2018-11-13 17:25:47 UTC; 6ms ago
    default: Docs: https://docs.docker.com
    default: Process: 4162 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
    default: Main PID: 4162 (code=exited, status=1/FAILURE)
    default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Starting Docker Application Contai....
    default: Nov 13 17:25:47 ubuntu-xenial dockerd[4162]: no sockets found via socket act...d
    default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Main process exite...E
    default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Failed to start Docker Application....
    default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Unit entered faile....
    default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Failed with result....
    default: Hint: Some lines were ellipsized, use -l to show in full.
    default: dpkg: error processing package docker-ce (--configure):
    default: subprocess installed post-installation script returned error exit status 1
    default: Processing triggers for libc-bin (2.23-0ubuntu10) ...
    default: Processing triggers for systemd (229-4ubuntu21.8) ...
    default: Processing triggers for ureadahead (0.100.0-19) ...
    default: Errors were encountered while processing:
    default: docker-ce
    default: E: Sub-process /usr/bin/dpkg returned an error code (1)


    My script according to the Docker docs:



    apt-get update
    apt-get upgrade -y
    apt-get remove -y docker docker-engine docker.io

    apt-get install
    apt-transport-https
    ca-certificates
    curl
    software-properties-common
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
    add-apt-repository
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu
    $(lsb_release -cs)
    stable"

    apt-get update
    apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial


    It seems that Docker itself is working since I can e.g. call docker --version after starting the daemon with service docker start. But I doesn't know why those errors occurs.



    Vagrantfile



    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    Vagrant.configure("2") do |config|
    config.vm.box = "ubuntu/xenial64"

    config.vm.provision "shell", path: "scripts/dependencies.sh"
    end


    I'm using Vagrant with vagrant up --provision. Before starting, the old machine was deleted using vagrant destroy to make sure that the problems are not caused by some older runs of the script. The version is 16.04.5 LTS. The systemctl and journalctl commands gave me a very long output, that doesn't seem to have more information about the problem like




    default: Nov 13 17:41:19 ubuntu-xenial systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE




    Even more strange that I don't get the error when running vagrant ssh and executing all the commands hand by hand.










    share|improve this question
























      0












      0








      0








      I try to prepare Ubuntu 16.04 automatically via script for installing Rancher, which requires 17.03.2 as latest Docker version:



       default: Setting up docker-ce (17.03.2~ce-0~ubuntu-xenial) ...
      default: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
      default: invoke-rc.d: initscript docker, action "start" failed.
      default: ● docker.service - Docker Application Container Engine
      default: Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      default: Active: failed (Result: exit-code) since Tue 2018-11-13 17:25:47 UTC; 6ms ago
      default: Docs: https://docs.docker.com
      default: Process: 4162 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      default: Main PID: 4162 (code=exited, status=1/FAILURE)
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Starting Docker Application Contai....
      default: Nov 13 17:25:47 ubuntu-xenial dockerd[4162]: no sockets found via socket act...d
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Main process exite...E
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Failed to start Docker Application....
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Unit entered faile....
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Failed with result....
      default: Hint: Some lines were ellipsized, use -l to show in full.
      default: dpkg: error processing package docker-ce (--configure):
      default: subprocess installed post-installation script returned error exit status 1
      default: Processing triggers for libc-bin (2.23-0ubuntu10) ...
      default: Processing triggers for systemd (229-4ubuntu21.8) ...
      default: Processing triggers for ureadahead (0.100.0-19) ...
      default: Errors were encountered while processing:
      default: docker-ce
      default: E: Sub-process /usr/bin/dpkg returned an error code (1)


      My script according to the Docker docs:



      apt-get update
      apt-get upgrade -y
      apt-get remove -y docker docker-engine docker.io

      apt-get install
      apt-transport-https
      ca-certificates
      curl
      software-properties-common
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
      add-apt-repository
      "deb [arch=amd64] https://download.docker.com/linux/ubuntu
      $(lsb_release -cs)
      stable"

      apt-get update
      apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial


      It seems that Docker itself is working since I can e.g. call docker --version after starting the daemon with service docker start. But I doesn't know why those errors occurs.



      Vagrantfile



      # -*- mode: ruby -*-
      # vi: set ft=ruby :

      Vagrant.configure("2") do |config|
      config.vm.box = "ubuntu/xenial64"

      config.vm.provision "shell", path: "scripts/dependencies.sh"
      end


      I'm using Vagrant with vagrant up --provision. Before starting, the old machine was deleted using vagrant destroy to make sure that the problems are not caused by some older runs of the script. The version is 16.04.5 LTS. The systemctl and journalctl commands gave me a very long output, that doesn't seem to have more information about the problem like




      default: Nov 13 17:41:19 ubuntu-xenial systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE




      Even more strange that I don't get the error when running vagrant ssh and executing all the commands hand by hand.










      share|improve this question














      I try to prepare Ubuntu 16.04 automatically via script for installing Rancher, which requires 17.03.2 as latest Docker version:



       default: Setting up docker-ce (17.03.2~ce-0~ubuntu-xenial) ...
      default: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
      default: invoke-rc.d: initscript docker, action "start" failed.
      default: ● docker.service - Docker Application Container Engine
      default: Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
      default: Active: failed (Result: exit-code) since Tue 2018-11-13 17:25:47 UTC; 6ms ago
      default: Docs: https://docs.docker.com
      default: Process: 4162 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
      default: Main PID: 4162 (code=exited, status=1/FAILURE)
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Starting Docker Application Contai....
      default: Nov 13 17:25:47 ubuntu-xenial dockerd[4162]: no sockets found via socket act...d
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Main process exite...E
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: Failed to start Docker Application....
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Unit entered faile....
      default: Nov 13 17:25:47 ubuntu-xenial systemd[1]: docker.service: Failed with result....
      default: Hint: Some lines were ellipsized, use -l to show in full.
      default: dpkg: error processing package docker-ce (--configure):
      default: subprocess installed post-installation script returned error exit status 1
      default: Processing triggers for libc-bin (2.23-0ubuntu10) ...
      default: Processing triggers for systemd (229-4ubuntu21.8) ...
      default: Processing triggers for ureadahead (0.100.0-19) ...
      default: Errors were encountered while processing:
      default: docker-ce
      default: E: Sub-process /usr/bin/dpkg returned an error code (1)


      My script according to the Docker docs:



      apt-get update
      apt-get upgrade -y
      apt-get remove -y docker docker-engine docker.io

      apt-get install
      apt-transport-https
      ca-certificates
      curl
      software-properties-common
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
      add-apt-repository
      "deb [arch=amd64] https://download.docker.com/linux/ubuntu
      $(lsb_release -cs)
      stable"

      apt-get update
      apt-get install -y docker-ce=17.03.2~ce-0~ubuntu-xenial


      It seems that Docker itself is working since I can e.g. call docker --version after starting the daemon with service docker start. But I doesn't know why those errors occurs.



      Vagrantfile



      # -*- mode: ruby -*-
      # vi: set ft=ruby :

      Vagrant.configure("2") do |config|
      config.vm.box = "ubuntu/xenial64"

      config.vm.provision "shell", path: "scripts/dependencies.sh"
      end


      I'm using Vagrant with vagrant up --provision. Before starting, the old machine was deleted using vagrant destroy to make sure that the problems are not caused by some older runs of the script. The version is 16.04.5 LTS. The systemctl and journalctl commands gave me a very long output, that doesn't seem to have more information about the problem like




      default: Nov 13 17:41:19 ubuntu-xenial systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE




      Even more strange that I don't get the error when running vagrant ssh and executing all the commands hand by hand.







      docker ubuntu vagrant ubuntu-16.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 17:40









      DanielDaniel

      97110




      97110






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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%2fstackoverflow.com%2fquestions%2f53286698%2fsub-process-usr-bin-dpkg-returned-an-error-code-1-when-installing-docker-ce-o%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f53286698%2fsub-process-usr-bin-dpkg-returned-an-error-code-1-when-installing-docker-ce-o%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

          27

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          Category:Rhetoric