Openbsd

pkg_add 無法在 openbsd 6.1 上安裝任何東西

  • December 25, 2017

當我嘗試 pkg_add 螢幕或任何其他 pkg 時,我看到:

ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.8/packages/i386/screen-4.0.3p1.tgz: unsigned package (signify(1) doesn't see old-style signatures)
ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.8/packages/i386/screen-4.0.3p1.tgz: unsigned package (signify(1) doesn't see old-style signatures)
ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.8/packages/i386/screen-4.0.3p1.tgz: unsigned package (signify(1) doesn't see old-style signatures)
ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.8/packages/i386/screen-4.0.3p1.tgz: unsigned package (signify(1) doesn't see old-style signatures)
ftp: local: -: Broken pipe
421 Service not available, remote server has closed connection.
Can't locate object method "errsay" via package "OpenBSD::PackageRepository::FTP" at /usr/libdata/perl5/OpenBSD/PackageRepository.pm line 845.

/etc/pkg.conf 包含:installpath = http://ftp5.usa.openbsd.org/pub/OpenBSD/%c/packages/%a/

可能你已經在PKG_PATH某個地方定義了。以root身份試試這個:

unset PKG_PATH; pkg_add screen

引用自:https://serverfault.com/questions/889554