![以下软件包有未满足的依赖关系,我该怎么办?](https://linux22.com/image/977165/%E4%BB%A5%E4%B8%8B%E8%BD%AF%E4%BB%B6%E5%8C%85%E6%9C%89%E6%9C%AA%E6%BB%A1%E8%B6%B3%E7%9A%84%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB%EF%BC%8C%E6%88%91%E8%AF%A5%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F.png)
packages have unmet dependencies:
openstack-dashboard : Depends: python: (>= 2.7.1-0ubuntu2) but it is not installable
Recommends: openstack-dashboard-ubuntu-theme but it is not installed
/var/lib/dpkg/status 的状态
Package: openstack-dashboard
Status: install ok half-configured
Priority: extra
Section: net
Installed-Size: 15121
Maintainer: Chuck Short <[email protected]>
Architecture: all
Source: horizon
Version: 1:2014.2-0ubuntu1~cloud0
Config-Version: 1:2014.2-0ubuntu1~cloud0
Depends: adduser, apache2 | httpd, libapache2-mod-wsgi (>= 2.3), python-django- horizon (= 1:2014.2-0ubuntu1~cloud0), python: (>= 2.7.1-0ubuntu2)
Pre-Depends: dpkg (>= 1.15.7.2)
Recommends: openstack-dashboard-ubuntu-theme
答案1
尝试以下命令
sudo apt-get -f install
(安装缺少的依赖项)
sudo dpkg --configure -a
(配置 dpkg)