我正在尝试更新之前安装的一个软件包,但遇到了此错误:
# 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