如果我这样做pkg update
我会得到:
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/packagesite.txz: Not Found
Unable to update repository FreeBSD
尽管事实上如果我去http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/ 我可以看到meta.txz 和packagesize.txz。
我做了卷曲http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/它表明
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
为什么会发生这种情况?
编辑:
的输出 fetch -o - -vv http://pkg.FreeBSD.org/freebsd:9:x86:32/latest inside the jail
/
scheme: [http]
user: []
password: []
host: [pkg.FreeBSD.org]
port: [0]
document: [/freebsd:9:x86:32/latest/]
---> pkg.FreeBSD.org:80
looking up pkg.FreeBSD.org
connecting to pkg.FreeBSD.org:80
requesting http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/
>>> GET /freebsd:9:x86:32/latest/ HTTP/1.1
>>> Host: pkg.FreeBSD.org
>>> User-Agent: fetch libfetch/2.0
>>> Connection: close
>>>
<<< HTTP/1.1 404 Not Found
<<< Server: nginx
<<< Date: Sun, 17 Mar 2019 21:47:44 GMT
<<< Content-Type: text/html
<<< Content-Length: 162
<<< Connection: close
content length: [162]
<<<
offset 0, length -1, size -1, clength 162
404 Not Found
404 Not Found
nginx
fetch: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/: Not Found
答案1
在浏览器中打开http://pkg.freebsd.org/
您将看到免责声明“...不保证正常运行时间...”以及其他镜像列表
pkg0.bme.freebsd.org
pkg0.cyb.freebsd.org
pkg0.isc.freebsd.org
pkg0.kwc.freebsd.org
pkg0.twn.freebsd.org
pkg0.nyi.freebsd.org
您还会看到没有这样的存储库
pkg.FreeBSD.org/freebsd:9:x86:32/
相反,有 FreeBSD 9 存储库(不再更新)