cmake 安装的依赖解决问题

cmake 安装的依赖解决问题

我想cmake在我的系统中安装,但出现以下错误。我认为我系统中的 libexpat1 库版本与 libexpat1-dev 所需的版本不兼容。我该如何安装所需的版本?

sudo apt-get install cmake
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cmake : Depends: cmake-data (= 3.5.1-1ubuntu1) but it is not going to be installed
        Depends: libjsoncpp1 but it is not going to be installed
 libexpat1-dev : Depends: libexpat1 (= 2.0.1-7.2ubuntu1.4) but 2.1.0-7ubuntu0.16.04.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

相关内容