Ubuntu 出现apt-get: Package has no installation candidate问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 出现apt-get: Package has no installation candidate问题相关的知识,希望对你有一定的参考价值。

When I run

sudo apt-get install cmake

I get the following response:

Package cmake is not available, but is referred to by another package.This may mean the package is missing, has been obsoleted, or is only available from another sourceE: Package ‘cmake‘ has no installation candidate

解决方法如下:
# apt-get update
# apt-get upgrade
# apt-get install <packagename>

这样就可以正常使用apt-get了~

以上是关于Ubuntu 出现apt-get: Package has no installation candidate问题的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 出现apt-get: Package has no installation candidate问题

Ubuntu 出现apt-get: Package has no installation candidate问题 - 刘毅枫的博客 - 博客频道 - CSDN.NET

Ubuntu apt-get: Package has no installation candidate

apt-get install Unable to locate package

sudo apt-get install,出现了下面的Unable to locate package错误:

ubuntu 常用apt-get命令