Почему я добираюсь, Ошибка “Подпроцесс/usr/bin/dpkg возвратил код ошибки (1)” (связанный с панелью инструментов OpenStack)?

Каждый раз, когда я пытаюсь использовать sudo apt-get update и затем sudo apt-get upgrade, Я всегда связывал одну ошибку с openstack-dashboard.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  openstack-dashboard-ubuntu-theme
The following packages will be upgraded:
  heroku
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/14.0 MB of archives.
After this operation, 190 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 413428 files and directories currently installed.)
Removing openstack-dashboard-ubuntu-theme (2:9.1.2-0ubuntu3) ...
Collecting and compressing static assets...
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    from django.core.management import execute_from_command_line  # noqa
ImportError: No module named django.core.management
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)
0
задан 18 February 2018 в 12:36

1 ответ

Вы получите эту ошибку каждый раз, когда Вы обновляете или устанавливаете новый пакет потому что пакет openstack-dashboard-ubuntu-theme повреждается в Вашей системе. Решение для этого:

sudo rm /var/lib/dpkg/info/openstack-dashboard-ubuntu-theme.*

Проверьте, решена ли Ваша проблема, если не затем выполняются, они управляют впоследствии.

sudo apt remove --purge openstack-dashboard-ubuntu-theme
sudo apt -f install
sudo apt update
0
ответ дан 31 October 2019 в 00:02

Другие вопросы по тегам:

Похожие вопросы: