zqifa的博客

我不管,反正我最萌~

Package has no installation candidate解决方法

今天在安装软件的时候出现了Package has no installation candidate的问题,如:

# apt-get install <packagename>
Reading package lists... Done
Building dependency tree... Done
Package aptitude 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 <packagename> has no installation candidate

解决方法如下:

# apt-get update
# apt-get upgrade
# apt-get install <packagename>

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

作者:zqifa

出处:https://www.l1mn.com

原文地址:https://www.l1mn.com/p/c81jw2.html

本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。

分类:linuxbug
标签:linuxbug

Copyright © zqifa 联系方式:z___qf@163.com