I’m trying to deploy openstack with the this charm openstack lxd | Juju , unfortunately units cannot be installed due to the following errors :
ubuntu@juju-9711e5-7-lxd-2:/var/lib/juju/agents/unit-openstack-dashboard-1/charm$ ./hooks/install
dpkg-query: error: --status needs a valid package name but ‘python-dnspython,’ is not: illegal package name in specifier ‘python-dnspython,’: character ‘,’ not allowed (only letters, digits and characters ‘-+._’)
Use --help for help about querying packages.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
dpkg-query: package ‘python-apache2’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Traceback (most recent call last):
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/hooks/install.real”, line 109, in
CONFIGS = register_configs()
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/hooks/horizon_utils.py”, line 179, in register_configs
release = os_release(‘openstack-dashboard’)
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 508, in os_release
get_os_codename_package(package, fatal=False) or
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 392, in get_os_codename_package
if snap_install_requested():
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/core/hookenv.py”, line 77, in wrapper
res = func(*args, **kwargs)
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 1657, in snap_install_requested
origin = config(‘openstack-origin’) or “”
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/core/hookenv.py”, line 411, in config
subprocess.check_output(config_cmd_line).decode(‘UTF-8’))
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 423, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.6/subprocess.py”, line 729, in init
restore_signals, start_new_session)
File “/usr/lib/python3.6/subprocess.py”, line 1364, in execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘config-get’: ‘config-get’
ubuntu@juju-9711e5-7-lxd-2:/var/lib/juju/agents/unit-openstack-dashboard-1/charm$ sudo ./hooks/install
dpkg-query: error: --status needs a valid package name but ‘python-dnspython,’ is not: illegal package name in specifier ‘python-dnspython,’: character ‘,’ not allowed (only letters, digits and characters '-+.’)
Use --help for help about querying packages.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python-dnspython,
dpkg-query: package ‘python-apache2’ is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python-apache2
Traceback (most recent call last):
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/hooks/install.real”, line 109, in
CONFIGS = register_configs()
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/hooks/horizon_utils.py”, line 179, in register_configs
release = os_release(‘openstack-dashboard’)
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 508, in os_release
get_os_codename_package(package, fatal=False) or
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 392, in get_os_codename_package
if snap_install_requested():
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/core/hookenv.py”, line 77, in wrapper
res = func(*args, **kwargs)
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/contrib/openstack/utils.py”, line 1657, in snap_install_requested
origin = config(‘openstack-origin’) or “”
File “/var/lib/juju/agents/unit-openstack-dashboard-1/charm/charmhelpers/core/hookenv.py”, line 411, in config
subprocess.check_output(config_cmd_line).decode(‘UTF-8’))
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 423, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.6/subprocess.py”, line 729, in init
restore_signals, start_new_session)
File “/usr/lib/python3.6/subprocess.py”, line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘config-get’: ‘config-get’