Install hook fails whilst installing python-jinja2
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/
2015-01-08 15:05:50 INFO install import lib.utils as utils
2015-01-08 15:05:50 INFO install File "/var/lib/
2015-01-08 15:05:50 INFO install install(
2015-01-08 15:05:50 INFO install File "/var/lib/
2015-01-08 15:05:50 INFO install subprocess.
2015-01-08 15:05:50 INFO install File "/usr/lib/
2015-01-08 15:05:50 INFO install raise CalledProcessEr
2015-01-08 15:05:50 INFO install subprocess.
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