E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Traceback (most recent call last):
File "./hooks/install", line 17, in <module>
bootstrap_charm_deps()
File "lib/charms/bootstrap.py", line 12, in bootstrap_charm_deps
apt_install(['python3-pip', 'python3-yaml'])
File "lib/charms/bootstrap.py", line 48, in apt_install
check_call(cmd + packages, env=env)
File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['apt-get', '--option=Dpkg::Options::=--force-confold', '--assume-yes', 'install', 'python3-pip', 'python3-yaml']' returned non-zero exit status 100
root@jacek-local-machine-1:/var/lib/juju/agents/unit-prometheus-0/charm# apt-get --option=Dpkg::Options::=--force-confold --assume-yes install python3-pip python3-yaml
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.