安装aptitude,利用aptitude对依赖关系进行智能处理 sudo apt-get install aptitude 安装包 # 安装cmake sudo aptitude install cmake