我已经安装了 Ubuntu 16.04.2 LTS。我需要安装 matlibplot python 模块。但每当我尝试使用以下命令安装它时:
sudo apt-get install python-matplotlib
它显示以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-matplotlib : Depends: python-dateutil but it is not going to be installed
Depends: python-numpy (>= 1:1.10.0~b1) but it is not going to be installed
Depends: python-numpy-abi9
Depends: python-cycler but it is not going to be installed
Depends: python:any (>= 2.7.5-5~)
Recommends: python-glade2 but it is not going to be installed
Recommends: python-imaging but it is not going to be installed
Recommends: python-tk (>= 2.5.2-1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该如何解决这些问题?
答案1
引用:
无法纠正问题,您持有破损的包裹
可能的解决方案:
运行此命令来删除 ubuntu 中损坏的软件包。
sudo dpkg --remove --force-remove-reinstreq 软件包名称
删除软件包后使用命令更新系统
sudo apt-get 更新
附加信息:
«如何删除 ubuntu 中损坏的软件包»