Install hook fails due to lack of apt-get update

Bug #1350044 reported by Jorge Castro on 2014-07-29
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
jenkins (Juju Charms Collection)
Undecided
Unassigned

Bug Description

The charm doesn't even get past the apt-get install phase due to lack of apt-get update prior to trying to install the package.

root@jorge-local-machine-1:/var/lib/juju/agents/unit-jenkins-0/charm# hooks/install
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/c/cups/libcups2_1.5.3-0ubuntu8.3_amd64.deb 404 Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/nspr/libnspr4_4.9.5-0ubuntu0.12.04.2_amd64.deb 404 Not Found [IP: 91.189.92.200 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata-java_2014c-0ubuntu0.12.04_all.deb 404 Not Found [IP: 91.189.92.201 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

José Antonio Rey (jose) wrote :

Jorge, this is a behavior presented in the local provider. I would be for fixing this in the provider rather than in every single charm, as it affects all charms.

Antonio Rosales (arosales) wrote :

This is also failing for me on local provider:

2014-09-08 04:08:05 INFO install Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-dev-bin_2.15-0ubuntu10.6_amd64.deb 404 No
t Found [IP: 91.189.88.149 80]
2014-09-08 04:08:05 INFO install Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.2.0-67.101_amd64.deb 404 Not F
ound [IP: 91.189.88.149 80]
2014-09-08 04:08:05 INFO install Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dev_2.15-0ubuntu10.6_amd64.deb 404 Not F
ound [IP: 91.189.88.149 80]
2014-09-08 04:08:05 INFO install E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2014-09-08 04:08:05 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 100

chatting with the juju-core devs the fix is to clean out lxc cached images and set "lxc-clone: false" in the environments.yaml file. This bug is due to lxc-clone being on be default in 1.20 and lxc cached image don't run apt-get update.

Note this runs in a non-local juju environment.

-thanks,
Antonio

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers