2017-07-05 2 views
0

J'essaye de mettre en œuvre elastic search dans mon application. Pour cela, j'ai besoin d'installer open JDK-7 dans mon système ubuntu 16.04. Lors de l'installation, j'obtiens l'erreur suivante.openstack-dashboard-ubuntu-theme Erreur lors de l'installation du paquet

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
The following additional packages will be installed: 
    libatk-wrapper-java libatk-wrapper-java-jni openjdk-7-jre 
Suggested packages: 
    openjdk-7-demo openjdk-7-source visualvm icedtea-7-jre-jamvm sun-java6-fonts 
    fonts-ipafont-gothic fonts-ipafont-mincho fonts-indic 
The following packages will be REMOVED: 
    openstack-dashboard-ubuntu-theme 
The following NEW packages will be installed: 
    libatk-wrapper-java libatk-wrapper-java-jni openjdk-7-jdk openjdk-7-jre 
    openjdk-7-jre-headless 
0 upgraded, 5 newly installed, 1 to remove and 28 not upgraded. 
2 not fully installed or removed. 
Need to get 0 B/55.9 MB of archives. 
After this operation, 77.7 MB of additional disk space will be used. 
Do you want to continue? [Y/n] y 
(Reading database ... 515256 files and directories currently installed.) 
Removing openstack-dashboard-ubuntu-theme (2:9.1.0-0ubuntu1) ... 
Collecting and compressing static assets... 
Traceback (most recent call last): 
    File "manage.py", line 25, in <module> 
    execute_from_command_line(sys.argv) 
    File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 350, in execute_from_command_line 
    utility.execute() 
    File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 302, in execute 
    settings.INSTALLED_APPS 
    File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 55, in __getattr__ 
    self._setup(name) 
    File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 43, in _setup 
    self._wrapped = Settings(settings_module) 
    File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 99, in __init__ 
    mod = importlib.import_module(self.SETTINGS_MODULE) 
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module 
    __import__(name) 
    File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 381, in <module> 
    from openstack_auth import policy 
    File "/usr/lib/python2.7/dist-packages/openstack_auth/policy.py", line 24, in <module> 
    from openstack_auth import user as auth_user 
    File "/usr/lib/python2.7/dist-packages/openstack_auth/user.py", line 18, in <module> 
    from django.contrib.auth import models 
    File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py", line 4, in <module> 
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager 
    File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/base_user.py", line 49, in <module> 
    class AbstractBaseUser(models.Model): 
    File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 94, in __new__ 
    app_config = apps.get_containing_app_config(module) 
    File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 239, in get_containing_app_config 
    self.check_apps_ready() 
    File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in check_apps_ready 
    raise AppRegistryNotReady("Apps aren't loaded yet.") 
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. 
dpkg: error processing package openstack-dashboard-ubuntu-theme (--remove): 
subprocess installed post-removal script returned error exit status 1 
Errors were encountered while processing: 
openstack-dashboard-ubuntu-theme 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

J'ai aussi essayé les commandes suivantes pour corriger ces issues.But il n'a pas travaillé

apt-get remove --auto-remove openstack-dashboard-ubuntu-theme 

Merci à l'avance

Répondre

1

j'ai pu discerner dans mon cas, il était question de faire avec apache redémarrer en raison d'un module manquant à savoir: wsgi

Je l'ai installé:

apt-get install libapache2-mod-wsgi 

plus il activé:

sudo a2enmod wsgi 
sudo /etc/init.d/apache2 reload 

ou

service apache2 restart 

Le j'ai pu désinstaller le OpenStack-tableau de bord-ubuntu-thème:

dpkg --remove --force-remove-reinstreq openstack-dashboard-ubuntu-theme 

Hope it helps.