{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1205","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1205/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1205/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1205/events","html_url":"https://github.com/progrium/dokku/issues/1205","id":79390370,"number":1205,"title":"Every apt command fails with \"Could not get lock ... Temporarily unavailable\"","user":{"login":"mikker","id":2819,"avatar_url":"https://avatars.githubusercontent.com/u/2819?v=3","gravatar_id":"","url":"https://api.github.com/users/mikker","html_url":"https://github.com/mikker","followers_url":"https://api.github.com/users/mikker/followers","following_url":"https://api.github.com/users/mikker/following{/other_user}","gists_url":"https://api.github.com/users/mikker/gists{/gist_id}","starred_url":"https://api.github.com/users/mikker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikker/subscriptions","organizations_url":"https://api.github.com/users/mikker/orgs","repos_url":"https://api.github.com/users/mikker/repos","events_url":"https://api.github.com/users/mikker/events{/privacy}","received_events_url":"https://api.github.com/users/mikker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/progrium/dokku/labels/0.4.0","name":"0.4.0","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2015-05-22T10:09:11Z","updated_at":"2015-08-26T17:44:42Z","closed_at":null,"body":"I'm not sure when it happened but something seems to have gone awry with my dokku setup and now every apt command fails eg:\r\n\r\n```\r\n$ apt-get update && apt-get upgrade -y\r\nIgn http://ppa.launchpad.net trusty InRelease\r\nHit http://ppa.launchpad.net trusty Release.gpg\r\nHit http://ppa.launchpad.net trusty Release\r\nHit http://ppa.launchpad.net trusty/main amd64 Packages\r\nHit http://ppa.launchpad.net trusty/main i386 Packages\r\nHit http://ppa.launchpad.net trusty/main Translation-en\r\nIgn http://security.ubuntu.com trusty-security InRelease\r\nIgn http://mirrors.digitalocean.com trusty InRelease\r\nGet:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]\r\nIgn http://mirrors.digitalocean.com trusty-updates InRelease\r\nGet:2 http://security.ubuntu.com trusty-security Release [63.5 kB]\r\nHit http://mirrors.digitalocean.com trusty Release.gpg\r\nHit http://mirrors.digitalocean.com trusty-updates Release.gpg\r\nHit http://mirrors.digitalocean.com trusty Release\r\nHit http://mirrors.digitalocean.com trusty-updates Release\r\nGet:3 http://security.ubuntu.com trusty-security/main Sources [81.4 kB]\r\nHit http://mirrors.digitalocean.com trusty/main Sources\r\nHit http://mirrors.digitalocean.com trusty/universe Sources\r\nHit http://mirrors.digitalocean.com trusty/main amd64 Packages\r\nGet:4 http://security.ubuntu.com trusty-security/universe Sources [25.2 kB]\r\nHit http://mirrors.digitalocean.com trusty/universe amd64 Packages\r\nGet:5 http://security.ubuntu.com trusty-security/main amd64 Packages [272 kB]\r\nHit http://mirrors.digitalocean.com trusty/main i386 Packages\r\nGet:6 http://get.docker.io docker InRelease\r\nHit http://mirrors.digitalocean.com trusty/universe i386 Packages\r\nIgn http://get.docker.io docker InRelease\r\nHit http://mirrors.digitalocean.com trusty/main Translation-en\r\nGet:7 http://security.ubuntu.com trusty-security/universe amd64 Packages [104 kB]\r\nHit http://mirrors.digitalocean.com trusty/universe Translation-en\r\nGet:8 http://security.ubuntu.com trusty-security/main i386 Packages [260 kB]\r\nHit http://mirrors.digitalocean.com trusty-updates/main Sources\r\nHit http://mirrors.digitalocean.com trusty-updates/universe Sources\r\nGet:9 http://security.ubuntu.com trusty-security/universe i386 Packages [104 kB]\r\nHit https://packagecloud.io trusty InRelease\r\nHit http://mirrors.digitalocean.com trusty-updates/main amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/universe amd64 Packages\r\nHit http://security.ubuntu.com trusty-security/main Translation-en\r\nHit http://mirrors.digitalocean.com trusty-updates/main i386 Packages\r\nHit http://security.ubuntu.com trusty-security/universe Translation-en\r\nHit http://get.docker.io docker Release.gpg\r\nHit http://mirrors.digitalocean.com trusty-updates/universe i386 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/main Translation-en\r\nHit https://packagecloud.io trusty/main amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/universe Translation-en\r\nHit https://packagecloud.io trusty/main i386 Packages\r\nGet:10 https://packagecloud.io trusty/main Translation-en_US\r\nHit http://get.docker.io docker Release\r\nIgn http://mirrors.digitalocean.com trusty/main Translation-en_US\r\nHit http://get.docker.io docker/main amd64 Packages\r\nIgn http://mirrors.digitalocean.com trusty/main Translation-en_US.UTF-8\r\nIgn http://mirrors.digitalocean.com trusty/universe Translation-en_US\r\nIgn http://mirrors.digitalocean.com trusty/universe Translation-en_US.UTF-8\r\nHit http://get.docker.io docker/main i386 Packages\r\nIgn https://packagecloud.io trusty/main Translation-en_US\r\nIgn https://packagecloud.io trusty/main Translation-en\r\nIgn https://packagecloud.io trusty/main Translation-en_US.UTF-8\r\nGet:11 http://get.docker.io docker/main Translation-en_US\r\nIgn http://get.docker.io docker/main Translation-en_US\r\nIgn http://get.docker.io docker/main Translation-en\r\nIgn http://get.docker.io docker/main Translation-en_US.UTF-8\r\nFetched 911 kB in 24s (37.9 kB/s)\r\n^Cading package lists... 99%\r\nroot@brnbw dokku $ apt-get update && apt-get upgrade -y -V\r\nIgn http://ppa.launchpad.net trusty InRelease\r\nHit http://ppa.launchpad.net trusty Release.gpg\r\nHit http://ppa.launchpad.net trusty Release\r\nHit http://ppa.launchpad.net trusty/main amd64 Packages\r\nHit http://ppa.launchpad.net trusty/main i386 Packages\r\nHit http://ppa.launchpad.net trusty/main Translation-en\r\nIgn http://security.ubuntu.com trusty-security InRelease\r\nIgn http://mirrors.digitalocean.com trusty InRelease\r\nHit http://security.ubuntu.com trusty-security Release.gpg\r\nIgn http://mirrors.digitalocean.com trusty-updates InRelease\r\nHit http://security.ubuntu.com trusty-security Release\r\nHit http://mirrors.digitalocean.com trusty Release.gpg\r\nHit http://security.ubuntu.com trusty-security/main Sources\r\nHit http://security.ubuntu.com trusty-security/universe Sources\r\nHit http://mirrors.digitalocean.com trusty-updates Release.gpg\r\nHit http://security.ubuntu.com trusty-security/main amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty Release\r\nHit http://security.ubuntu.com trusty-security/universe amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates Release\r\nHit http://security.ubuntu.com trusty-security/main i386 Packages\r\nHit http://mirrors.digitalocean.com trusty/main Sources\r\nHit http://security.ubuntu.com trusty-security/universe i386 Packages\r\nHit http://security.ubuntu.com trusty-security/main Translation-en\r\nHit http://mirrors.digitalocean.com trusty/universe Sources\r\nHit http://security.ubuntu.com trusty-security/universe Translation-en\r\nHit http://mirrors.digitalocean.com trusty/main amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty/universe amd64 Packages\r\nGet:1 http://get.docker.io docker InRelease\r\nHit http://mirrors.digitalocean.com trusty/main i386 Packages\r\nHit http://mirrors.digitalocean.com trusty/universe i386 Packages\r\nIgn http://get.docker.io docker InRelease\r\nHit http://mirrors.digitalocean.com trusty/main Translation-en\r\nHit http://mirrors.digitalocean.com trusty/universe Translation-en\r\nHit http://mirrors.digitalocean.com trusty-updates/main Sources\r\nHit http://mirrors.digitalocean.com trusty-updates/universe Sources\r\nHit http://get.docker.io docker Release.gpg\r\nHit http://mirrors.digitalocean.com trusty-updates/main amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/universe amd64 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/main i386 Packages\r\nHit https://packagecloud.io trusty InRelease\r\nHit http://mirrors.digitalocean.com trusty-updates/universe i386 Packages\r\nHit http://mirrors.digitalocean.com trusty-updates/main Translation-en\r\nHit http://mirrors.digitalocean.com trusty-updates/universe Translation-en\r\nHit https://packagecloud.io trusty/main amd64 Packages\r\nHit http://get.docker.io docker Release\r\nHit https://packagecloud.io trusty/main i386 Packages\r\nGet:2 https://packagecloud.io trusty/main Translation-en_US\r\nHit http://get.docker.io docker/main amd64 Packages\r\nIgn http://mirrors.digitalocean.com trusty/main Translation-en_US\r\nIgn http://mirrors.digitalocean.com trusty/main Translation-en_US.UTF-8\r\nHit http://get.docker.io docker/main i386 Packages\r\nIgn http://mirrors.digitalocean.com trusty/universe Translation-en_US\r\nIgn http://mirrors.digitalocean.com trusty/universe Translation-en_US.UTF-8\r\nGet:3 http://get.docker.io docker/main Translation-en_US\r\nIgn https://packagecloud.io trusty/main Translation-en_US\r\nIgn https://packagecloud.io trusty/main Translation-en\r\nIgn https://packagecloud.io trusty/main Translation-en_US.UTF-8\r\nIgn http://get.docker.io docker/main Translation-en_US\r\nIgn http://get.docker.io docker/main Translation-en\r\nIgn http://get.docker.io docker/main Translation-en_US.UTF-8\r\nReading package lists... Done\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nCalculating upgrade... Done\r\nThe following packages have been kept back:\r\n   linux-generic (3.13.0.52.59 => 3.13.0.53.60)\r\n   linux-headers-generic (3.13.0.52.59 => 3.13.0.53.60)\r\n   linux-image-generic (3.13.0.52.59 => 3.13.0.53.60)\r\n   lxc-docker (1.6.1 => 1.6.2)\r\nThe following packages will be upgraded:\r\n   dokku (0.3.18 => 0.3.18)\r\n1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.\r\n1 not fully installed or removed.\r\nNeed to get 21.6 kB of archives.\r\nAfter this operation, 0 B of additional disk space will be used.\r\nFetched 21.6 kB in 2s (9,434 B/s)\r\nPreconfiguring packages ...\r\n(Reading database ... 97660 files and directories currently installed.)\r\nPreparing to unpack .../dokku_0.3.18_amd64.deb ...\r\nUnpacking dokku (0.3.18) over (0.3.18) ...\r\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\r\nSetting up dokku (0.3.18) ...\r\nPurging old database entries in /usr/share/man...\r\nProcessing manual pages under /usr/share/man...\r\nPurging old database entries in /usr/share/man/fr.UTF-8...\r\nProcessing manual pages under /usr/share/man/fr.UTF-8...\r\nPurging old database entries in /usr/share/man/tr...\r\nProcessing manual pages under /usr/share/man/tr...\r\nPurging old database entries in /usr/share/man/fi...\r\nProcessing manual pages under /usr/share/man/fi...\r\nPurging old database entries in /usr/share/man/ko...\r\nProcessing manual pages under /usr/share/man/ko...\r\nPurging old database entries in /usr/share/man/da...\r\nProcessing manual pages under /usr/share/man/da...\r\nPurging old database entries in /usr/share/man/gl...\r\nProcessing manual pages under /usr/share/man/gl...\r\nPurging old database entries in /usr/share/man/pt_BR...\r\nProcessing manual pages under /usr/share/man/pt_BR...\r\nPurging old database entries in /usr/share/man/ro...\r\nProcessing manual pages under /usr/share/man/ro...\r\nPurging old database entries in /usr/share/man/hu...\r\nProcessing manual pages under /usr/share/man/hu...\r\nPurging old database entries in /usr/share/man/vi...\r\nProcessing manual pages under /usr/share/man/vi...\r\nPurging old database entries in /usr/share/man/id...\r\nProcessing manual pages under /usr/share/man/id...\r\nPurging old database entries in /usr/share/man/pl...\r\nProcessing manual pages under /usr/share/man/pl...\r\nPurging old database entries in /usr/share/man/uk...\r\nProcessing manual pages under /usr/share/man/uk...\r\nPurging old database entries in /usr/share/man/sv...\r\nProcessing manual pages under /usr/share/man/sv...\r\nPurging old database entries in /usr/share/man/fr...\r\nProcessing manual pages under /usr/share/man/fr...\r\nPurging old database entries in /usr/share/man/zh...\r\nProcessing manual pages under /usr/share/man/zh...\r\nPurging old database entries in /usr/share/man/sl...\r\nProcessing manual pages under /usr/share/man/sl...\r\nPurging old database entries in /usr/share/man/es...\r\nProcessing manual pages under /usr/share/man/es...\r\nPurging old database entries in /usr/share/man/it...\r\nProcessing manual pages under /usr/share/man/it...\r\nPurging old database entries in /usr/share/man/eo...\r\nProcessing manual pages under /usr/share/man/eo...\r\nPurging old database entries in /usr/share/man/fr.ISO8859-1...\r\nProcessing manual pages under /usr/share/man/fr.ISO8859-1...\r\nPurging old database entries in /usr/share/man/pt...\r\nProcessing manual pages under /usr/share/man/pt...\r\nPurging old database entries in /usr/share/man/sk...\r\nProcessing manual pages under /usr/share/man/sk...\r\nPurging old database entries in /usr/share/man/ja...\r\nProcessing manual pages under /usr/share/man/ja...\r\nPurging old database entries in /usr/share/man/de...\r\nProcessing manual pages under /usr/share/man/de...\r\nPurging old database entries in /usr/share/man/hr...\r\nProcessing manual pages under /usr/share/man/hr...\r\nPurging old database entries in /usr/share/man/zh_CN...\r\nProcessing manual pages under /usr/share/man/zh_CN...\r\nPurging old database entries in /usr/share/man/zh_TW...\r\nProcessing manual pages under /usr/share/man/zh_TW...\r\nPurging old database entries in /usr/share/man/cs...\r\nProcessing manual pages under /usr/share/man/cs...\r\nPurging old database entries in /usr/share/man/sr...\r\nProcessing manual pages under /usr/share/man/sr...\r\nPurging old database entries in /usr/share/man/el...\r\nProcessing manual pages under /usr/share/man/el...\r\nPurging old database entries in /usr/share/man/ru...\r\nProcessing manual pages under /usr/share/man/ru...\r\nPurging old database entries in /usr/share/man/nl...\r\nProcessing manual pages under /usr/share/man/nl...\r\nPurging old database entries in /usr/local/share/man...\r\nProcessing manual pages under /usr/local/share/man...\r\n0 man subdirectories contained newer manual pages.\r\n0 manual pages were added.\r\n0 stray cats were added.\r\n0 old database entries were purged.\r\nUser 'dokku' already exists\r\ndocker:x:999:dokku\r\nE: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)\r\nE: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?\r\ndpkg: error processing package dokku (--configure):\r\n subprocess installed post-installation script returned error exit status 100\r\nErrors were encountered while processing:\r\n dokku\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n```\r\n\r\n```\r\n$ docker version\r\nClient version: 1.6.1\r\nClient API version: 1.18\r\nGo version (client): go1.4.2\r\nGit commit (client): 97cd073\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.6.1\r\nServer API version: 1.18\r\nGo version (server): go1.4.2\r\nGit commit (server): 97cd073\r\nOS/Arch (server): linux/amd64\r\n$ dokku version\r\n0.3.18\r\n```\r\n\r\nCan I circumvent the user creation in any way or is this in fact a bug? "},"comment":{"url":"https://api.github.com/repos/progrium/dokku/issues/comments/135120673","html_url":"https://github.com/progrium/dokku/issues/1205#issuecomment-135120673","issue_url":"https://api.github.com/repos/progrium/dokku/issues/1205","id":135120673,"user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T17:44:41Z","updated_at":"2015-08-26T17:44:41Z","body":"That *could* work, though it sounds wonky. I guess make the PR and we'll see how it looks.\r\n\r\nNote: this will require that we do something for upgraded dokku installs to remove the old core plugins or weird stuff might happen."}}