1,卸载sudo的cmake,卸载命令如下: sudo apt -y remove cmake 2,重新编译安装,参考如下: https://zhuanlan.zhihu.com/p/519732843