Ubunutu + Dokku + Docker apt-get update issue

  • Posted July 16, 2014

I installed the dokku-apt plugin, which runs the command “apt-get update” in a deploy script. When running during the deploy process, this line results in the following error:

Err: quantal/main amd64 Packages 404 Not Found [IP: 80]

However, when I simply log into my server and run “apt-get update”, everything works fine.

Anyone know why?


This comment has been deleted

This is an old thread but I wanted to reply in case it helps someone else. Here are the steps I took:

  1. Remove the existing progrium/buildstep docker image by running docker rmi progrium/buildstep
  2. cd to wherever dokku is cloned (or clone the dokku repo, cd into it)
  3. Run sudo BUILD_STACK=true DOKKU_VERSION=v0.2.3 make install

This should download the latest progrium/buildstep and progrium/cedarish so that you are no longer using quantal and instead you should be running trusty.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This has been confirmed to be a bug in Dokku. You can view the issue on GitHub.

Upgrading buildstep will resolve the problem:

$ git clone
$ cd buildstep
$ git pull origin master
$ sudo make build

Quick and dirty hack:

  • Copy all sources from digitalocean server (/etc/apt/sources.list) to your apt-repositories
  • Go to /var/lib/dokku/plugins/dokku-apt
  • Replace in pre-build:
if [ -f $DIR/apt-repositories ]; then
    apt-get update
    apt-get install -y software-properties-common
    cat "$DIR/apt-repositories" | while read repository; do
        add-apt-repository -y "\$repository"

with the following:

if [ -f $DIR/apt-repositories ]; then
    cat $DIR/apt-repositories > /etc/apt/sources.list
    apt-get update
    apt-get install -y software-properties-common
  • Update dokku plugins (not sure, if required):
cd -
dokku plugins-install
  • Push!

Yep, I have the same error. Everything until quantal-security works fine, then starting with quantal/main amd64 the 404s come in spades. The server itself, as it seems, uses different set of repositories, so apt-get update works fine.

Edit: You may try to use sources from /etc/apt/sources.list on your server, by specifying those in apt-repositories, in your repo.