当运行树莓派安装使用
sudo apt-get install cmake
命令时出现一下报错
Package cmake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'cmake' has no installation candidate
E: Package 'libgtk2.0-dev' has no installation candidate
当出现这些命令时,尝试使用以下命令
sudo apt-get upgrade -y
sudo apt-get upgrade
sudo apt-get install cmake
即可解决问题