树莓派安装cmake失败问题

当运行树莓派安装使用

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

即可解决问题

发布了12 篇原创文章 · 获赞 8 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/T_infinity/article/details/79884470