Netbsd
NetBSD - 無法安裝 pkgin
我在 Raspberry Pi 1 Model B 上執行 NetBSD。
uname -a NetBSD rpi 7.99.64 NetBSD 7.99.64 (RPI.201703032010Z) evbarm
我正在嘗試安裝
pkgin
,但收到有關版本不匹配的錯誤…pkg_add -f pkgin pkg_add: Warning: package `pkgin-0.9.4nb4' was built for a platform: pkg_add: NetBSD/earmv6hf 7.99.42 (pkg) vs. NetBSD/earmv6hf 7.99.64 (this host) pkg_add: Warning: package `pkg_install-20160410nb1' was built for a platform: pkg_add: NetBSD/earmv6hf 7.99.58 (pkg) vs. NetBSD/earmv6hf 7.99.64 (this host) pkg_add: Can't create pkgdb entry: /var/db/pkg/pkg_install-20160410nb1: Permission denied pkg_add: Can't install dependency pkg_install>=20130901, continuing pkg_add: Warning: package `libarchive-3.3.1' was built for a platform: pkg_add: NetBSD/earmv6hf 7.99.59 (pkg) vs. NetBSD/earmv6hf 7.99.64 (this host) pkg_add: Can't create pkgdb entry: /var/db/pkg/libarchive-3.3.1: Permission denied pkg_add: Can't install dependency libarchive>=3.2.1nb2, continuing pkg_add: Can't create pkgdb entry: /var/db/pkg/pkgin-0.9.4nb4: Permission denied pkg_add: 1 package addition failed
如何安裝正確的版本?
pkg_add
應該以超級使用者權限執行。您可以切換到 root 使用su -l
來執行它,或者,如果您已經sudo
安裝,您可以使用sudo pkg_add
.