Install hook fails whilst installing python-jinja2

Bug #1408673 reported by Adam Israel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

Series: trusty
Provider: local (Linux and Vagrant)

I've run into the below error while installing mysql:

2015-01-08 15:05:50 INFO install Reading package lists...
2015-01-08 15:05:50 INFO install Building dependency tree...
2015-01-08 15:05:50 INFO install Reading state information...
2015-01-08 15:05:50 INFO install The following packages were automatically installed and are no longer required:
2015-01-08 15:05:50 INFO install libfreetype6 os-prober
2015-01-08 15:05:50 INFO install Use 'apt-get autoremove' to remove them.
2015-01-08 15:05:50 INFO install The following NEW packages will be installed:
2015-01-08 15:05:50 INFO install python-dnspython
2015-01-08 15:05:50 INFO install 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2015-01-08 15:05:50 INFO install Need to get 83.1 kB of archives.
2015-01-08 15:05:50 INFO install After this operation, 545 kB of additional disk space will be used.
2015-01-08 15:05:50 INFO install WARNING: The following packages cannot be authenticated!
2015-01-08 15:05:50 INFO install python-dnspython
2015-01-08 15:05:50 INFO install E: There are problems and -y was used without --force-yes
2015-01-08 15:05:50 INFO install Traceback (most recent call last):
2015-01-08 15:05:50 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/install", line 6, in <module>
2015-01-08 15:05:50 INFO install import lib.utils as utils
2015-01-08 15:05:50 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/lib/utils.py", line 46, in <module>
2015-01-08 15:05:50 INFO install install('python-dnspython')
2015-01-08 15:05:50 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/lib/utils.py", line 41, in install
2015-01-08 15:05:50 INFO install subprocess.check_call(cmd)
2015-01-08 15:05:50 INFO install File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
2015-01-08 15:05:50 INFO install raise CalledProcessError(retcode, cmd)
2015-01-08 15:05:50 INFO install subprocess.CalledProcessError: Command '['apt-get', '-y', 'install', 'python-dnspython']' returned non-zero exit status 100
2015-01-08 15:05:50 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

There seem to be two workarounds to this:

1) add '--force-yes' to the install command

2) run apt-get update prior to the install command

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.