在Debian 10 Buster上安装snmp-mibs-downloader

5

我在一台安装有Debian 10 Buster的Linux机器上安装了net-snmp,现在我需要安装snmp-mibs-downloader。

虽然之前运行过

sudo apt-get update

执行以下命令时:

sudo apt-get install snmp-mibs-downloader

显示以下屏幕输出,表明它找不到所请求的数据包:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package snmp-mibs-downloader 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 'snmp-mibs-downloader' has no installation candidate

我在网上看到,可以通过编辑文件来解决这个问题。

/etc/apt/sources.list.d/nonfree.list

但它并没有解释应该在其中写什么。
任何帮助我安装 snmp-mibs-downloader 的方法都将不胜感激。
2个回答

2

你的 /etc/apt/sources.list 文件应该长成这个样子:

deb http://deb.debian.org/debian/ buster main contrib non-free
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free

然后执行apt-get update命令


1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接