Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | 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			
			
comments powered by Disqus