【问题标题】:openstack-dashboard-ubuntu-theme Error while installing packageopenstack-dashboard-ubuntu-theme 安装包时出错
【发布时间】:2017-07-05 14:48:50
【问题描述】:

我正在尝试在我的 Django 应用程序中实现 elastic search。 为此,我需要在我的ubuntu 16.04 系统中安装open JDK-7。 安装时出现以下错误。

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)

我也尝试了以下命令来解决这些问题。但没有奏效

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

提前致谢

【问题讨论】:

    标签: java django ubuntu-16.04 openstack openjdk


    【解决方案1】:

    在我的情况下,我能够看出这是由于缺少模块而导致 apache 未重新启动的问题:wsgi

    我安装了它:

    apt-get install libapache2-mod-wsgi
    

    激活它:

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

    service apache2 restart
    

    我能够卸载 openstack-dashboard-ubuntu-theme:

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

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-05
      • 2012-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多