我刚刚安装了新的 Debian 8,当我尝试安装时,ufw
它将返回:
# apt-get install ufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ufw 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 'ufw' has no installation candidate
这是我的:/etc/apt/sources.list
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
如果我尝试安装 clamav 也会发生同样的情况。
解决办法是什么?
答案1
您sources.list
仅包含安全存储库;你还需要主存储库
deb http://httpredir.debian.org/debian jessie main contrib
deb-src http://httpredir.debian.org/debian jessie main contrib
添加这两行,运行apt-get update
,您就可以安装ufw
,clamav
等等。