Solved pkg sight forbidden

userxbw

Well-Known Member

Reaction score: 31
Messages: 424


latest and quarterly are forbidden , I just did a fresh install of Fbsd 12 and am getting a forbidden when trying to install pkg, and in ports it failed to build. fresh port extract so yeah, it failed.

did this
from post #35 fm MiNi FaQ on pkg in that link below.
Code:
FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
and it gave me some "i do not know what you're talking about" error, indecating that the web addess is wrong is all. I do not at the moment know what ${ABI} value is ...


so i am back in Linux posting this...
 

yuripv

Well-Known Member

Reaction score: 125
Messages: 285

Tried using https instead of http?

EDIT: default .conf file uses http, so it shouldn't be the issue, sorry.

Anyway, the link works for me, opening it in browser.
 
OP
userxbw

userxbw

Well-Known Member

Reaction score: 31
Messages: 424

Tried using https instead of http?

EDIT: default .conf file uses http, so it shouldn't be the issue, sorry.

Anyway, the link works for me, opening it in browser.
Screenshot_2020-01-25_12-05-45.png


I went back and ran this and echo'ed each line into a file then mounted my linux partiton copied it over and in Linux to post it. I removed that mod I did / removed the file from the mini faq suggestion then here...
Code:
root@FreeBSD:~ # pkg update
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/meta.txz: Forbidden
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/packagesite.txz: Forbidden
Unable to update repository FreeBSD 
Error updating repositories!
that is what it is doing.
 

T-Daemon

Aspiring Daemon

Reaction score: 302
Messages: 722

Try these other mirrors:

pkg0.cyb.freebsd.org
pkg0.isc.freebsd.org
pkg0.jinx.freebsd.org
pkg0.kwc.freebsd.org
pkg0.nyi.freebsd.org
pkg0.tuk.freebsd.org
pkg0.twn.freebsd.org
 
OP
userxbw

userxbw

Well-Known Member

Reaction score: 31
Messages: 424

Try these other mirrors:

pkg0.cyb.freebsd.org
pkg0.isc.freebsd.org
pkg0.jinx.freebsd.org
pkg0.kwc.freebsd.org
pkg0.nyi.freebsd.org
pkg0.tuk.freebsd.org
pkg0.twn.freebsd.org
excuse my ignorance, but what file and where is it, so I can edit it? I do assum it is a pkg conf file located somewhere on the system. ;)

can't mount ufs in linux to edit it then boot into it to check it. :(:(

found this
then clicking on the
Code:
This server's package sets:
FreeBSD:12:amd64
link to that sight(?) it comes up forbidden too

I tried a few of them and they are all the same.

Screenshot_2020-01-25_12-05-45.png


notice the leading address pkg0.cyb
 
OP
userxbw

userxbw

Well-Known Member

Reaction score: 31
Messages: 424

Can you ping the URL's?
yes, I even portsnap extract the system

I think if I change that mini fqa file suggestion.
Code:
http://pkg0.cyb.freebsd.org/FreeBSD:12:amd64/
from this FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
to that
FreeBSD: { url: "pkg+http:/pkg0.cyb.freebsd.org/${ABI}/latest" }
I am going to try that now.
 
OP
userxbw

userxbw

Well-Known Member

Reaction score: 31
Messages: 424

Okay this is where I am at now....
in
To configure pkg(8) to pick up the 'latest' packages instead of 'quarterly', create a file /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: { url: "pkg+http://pkg0.cyb.freebsd.org/${ABI}/latest" }
that got me pkg update to work, BUT...
I can search the pkg search (something) it shows up then to install it, I get this.
Code:
pkg: http://pkg0.cyb.freebsd.org/FreeBSD:12:amd64/latest/All/xorg-7.7_3.txz: Not Found
I did how ever navigate the web page

http://pkg0.cyb.freebsd.org/FreeBSD:12:amd64/release_1/All/
and found xorg

so In assumtion I'd have to change that config to read this?

FreeBSD: { url: "pkg+http://pkg0.cyb.freebsd.org/${ABI}/release_1" }

then when it changes I got to update that whereas this was a never had to do that before situation. or is that release_1 before the stable release?
 
OP
userxbw

userxbw

Well-Known Member

Reaction score: 31
Messages: 424

it just started working, the sight, after a bit, it unclogged itself I guess, using that set up above.
FreeBSD: { url: "pkg+http:/pkg0.cyb.freebsd.org/${ABI}/latest" }
 
Top