By kkaliannan24
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: http://archive.ubuntu.com quantal/main amd64 Packages 404 Not Found [IP: 91.189.91.13 80]
However, when I simply log into my server and run “apt-get update”, everything works fine.
Anyone know why?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Yep, I have the same error. Everything until http://archive.ubuntu.com 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.
Quick and dirty hack:
/etc/apt/sources.list) to your apt-repositories /var/lib/dokku/plugins/dokku-aptpre-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"
done
fi
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
fi
cd -
dokku plugins-install
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 https://github.com/progrium/buildstep.git
$ cd buildstep
$ git pull origin master
$ sudo make build
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.