如何安装 rpcbind?

如何安装 rpcbind?
$ lsb_release -a
  No LSB modules are available.
  Distributor ID:   Ubuntu
  Description:  Ubuntu 16.04.3 LTS
  Release:  16.04
  Codename: xenial
$ sudo apt-get install rpcbind
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Package rpcbind 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 'rpcbind' has no installation candidate
$ sudo apt search rpcbind
  [sudo] password for mohet01: 
  Sorting... Done
  Full Text Search... Done

如何安装rpcbind

答案1

此包rpcbind可在main存储库。

您应该通过以下命令在 sources.list 上启用存储库:

sudo apt edit-sources

一个样品sources.list请参阅手册页以了解更多详细信息):

deb http://us.archive.ubuntu.com/ubuntu xenial main restricted
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://us.archive.ubuntu.com/ubuntu xenial-updates main restricted

保存然后运行以下命令:

sudo apt update
sudo apt install rpcbind

相关内容