{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/WSL/issues/2702","repository_url":"https://api.github.com/repos/Microsoft/WSL","labels_url":"https://api.github.com/repos/Microsoft/WSL/issues/2702/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WSL/issues/2702/comments","events_url":"https://api.github.com/repos/Microsoft/WSL/issues/2702/events","html_url":"https://github.com/Microsoft/WSL/issues/2702","id":277394151,"number":2702,"title":"invoke-rc.d: could not determine current runlevel","user":{"login":"spences10","id":234708,"avatar_url":"https://avatars2.githubusercontent.com/u/234708?v=4","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"labels":[{"id":353748837,"url":"https://api.github.com/repos/Microsoft/WSL/labels/duplicate","name":"duplicate","color":"cccccc","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-28T13:58:57Z","updated_at":"2017-11-30T11:22:33Z","closed_at":"2017-11-30T11:22:33Z","author_association":"NONE","body":"* Your Windows build number:  (Type `ver` at a Windows Command Prompt)\r\n**Microsoft Windows [Version 10.0.16299.64]**\r\n\r\n* What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)\r\nTrying to remove `docker.io` so I can install Docker CE\r\n\r\nCurrent status:\r\n\r\n```\r\n/mnt/c/Users/spenc\r\n⟩ sudo apt remove docker.io\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nThe following packages were automatically installed and are no longer required:\r\n  containerd runc\r\nUse 'sudo apt autoremove' to remove them.\r\nThe following packages will be REMOVED:\r\n  docker.io\r\n0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.\r\nAfter this operation, 62.7 MB disk space will be freed.\r\nDo you want to continue? [Y/n] y\r\n(Reading database ... 30768 files and directories currently installed.)\r\nRemoving docker.io (1.13.1-0ubuntu1~16.04.2) ...\r\ninvoke-rc.d: could not determine current runlevel\r\n * Stopping Docker: docker\r\nNo process in pidfile '/var/run/docker-ssd.pid' found running; none killed.\r\ninvoke-rc.d: initscript docker, action \"stop\" failed.\r\ndpkg: error processing package docker.io (--remove):\r\n subprocess installed pre-removal script returned error exit status 1\r\ndpkg: error while cleaning up:\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n docker.io\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n```\r\n\r\nTried all manner of solutions on SO, sorry don't have the links\r\n\r\nI tried following along to this: https://github.com/Microsoft/WSL/issues/1761\r\n\r\nStill get the same output, I tried to ignore and go to the next step and install the `.deb` file with:\r\n\r\n```\r\n⟩ sudo dpkg -i /mnt/c/Users/spenc/Desktop/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb\r\ndpkg: considering removing docker.io in favour of docker-ce ...\r\ndpkg: docker.io is not properly installed; ignoring any dependencies on it\r\ndpkg: yes, will remove docker.io in favour of docker-ce\r\n(Reading database ... 30768 files and directories currently installed.)\r\nPreparing to unpack .../docker-ce_17.09.0~ce-0~ubuntu_amd64.deb ...\r\ninvoke-rc.d: could not determine current runlevel\r\n * Stopping Docker: docker\r\nNo process in pidfile '/var/run/docker-ssd.pid' found running; none killed.\r\ninvoke-rc.d: initscript docker, action \"stop\" failed.\r\ndpkg: error processing archive /mnt/c/Users/spenc/Desktop/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb (--install):\r\n subprocess installed pre-removal script returned error exit status 1\r\ndpkg: error while cleaning up:\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n /mnt/c/Users/spenc/Desktop/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb\r\n```\r\n\r\nBut I'm not getting very far\r\n\r\n* What's wrong / what should be happening instead: remove the program?\r\n\r\n* Strace of the failing command, if applicable:  (If `some_command` is failing, then run `strace -o some_command.strace -f some_command some_args`, and link the contents of `some_command.strace` in a [gist](https://gist.github.com/) here)\r\n\r\nI can't work out what this means  tried this `strace -o apt.strace -f remove docker.io` but nothing happenend\r\n\r\nSee [our contributing instructions](https://github.com/Microsoft/BashOnWindows/blob/master/CONTRIBUTING.md) for assistance.\r\n"}}
{"actor":{"display_login":"therealkenc"}}