ubuntu16.04在安装torch的sudo bash install-deps 命令的时候,出现了有libxml2-dev破损包存在
libgraphicsmagick1-dev : Depends: libxml2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages. 如下图所示:
这时候首先第一想法是安装:libxml2-dev
sudo apt-get install libxml2-dev
sudo apt-get install libxml2
这是安装在Linux下安装libxml2-dev的命令,如果无错的话,那就皆大欢喜。如果出现一下这样的错误:
The following packages have unmet dependencies:
libxml2-dev : Depends: libxml2 (= 2.9.3+dfsg1-1) but 2.9.3+dfsg1-1ubuntu0.5 is to be installed
E: Unable to correct problems, you have held broken packages.
<