![FreeBSD portupgrade 错误:软件包尚不支持](https://linux22.com/image/616657/FreeBSD%20portupgrade%20%E9%94%99%E8%AF%AF%EF%BC%9A%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%B0%9A%E4%B8%8D%E6%94%AF%E6%8C%81.png)
我正在尝试更新之前安装的一个软件包,但遇到了此错误:
# portupgrade -PP wget
USING PKGNG
Packages are not yet suported. Use pkg(8) directly.
# uname -a
FreeBSD f9.alexus.org 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
# portupgrade --help
....
-p, --package Build package when each port is installed
-P, --use-packages Use packages instead of ports whenever available;
Specified twice, --use-packages-only is implied
--use-packages-only Or -PP; Use no ports but packages only
我不知道我做错了什么。我怎样才能让 portupgrade 到不是切换到pkgng/pkg(8)
?
答案1
我认为错误信息很容易解释:
Packages are not yet suported.
....因此你必须....
Use pkg(8) directly.
或者不要指定并通过端口-PP
升级,而是尝试使用包...wget