Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

2.5. FAQ

2.5.1. Shared object "libarchive.so.5" not found, required by "pkg"

問題出現在從FreeBSD 9.2 升級到 FreeBSD 10.0,升級pkg可以解決

# pkg-static upgrade
			

2.5.2. pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file

編輯下面的檔案

# cat /usr/local/etc/pkg.conf                                                                                                                                                                                                                           [0]
#packagesite: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest
PACKAGESITE	    : http://pkg.freebsd.org/${ABI}/latest
			

到 http://pkg.freebsd.org/ 查找適合你版本的URL

# cat /usr/local/etc/pkg.conf                                                                                                                                                                                                                           [0]
#packagesite: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest
#PACKAGESITE	    : http://pkg.freebsd.org/${ABI}/latest
PACKAGESITE	    : http://pkg.freebsd.org/freebsd:10:x86:64/latest			
			

更新pkg

pkg update