Can`t access pkgbase pkg repo anymore

Code:
$ pkg -vv | grep base_release_0
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0",


$ curl -I https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0
HTTP/2 301 
server: nginx
date: Tue, 03 Feb 2026 13:41:51 GMT
content-type: text/html
content-length: 162
location: https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN



$ curl -I https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/
HTTP/2 302 
server: nginx
date: Tue, 03 Feb 2026 13:41:57 GMT
content-type: text/html
content-length: 138
location: https://cloudfront.aws.pkgbase.freebsd.org/FreeBSD:15:amd64/base_release_0/
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN



$ curl -i https://cloudfront.aws.pkgbase.freebsd.org/FreeBSD:15:amd64/base_release_0/
HTTP/2 403 
content-type: application/xml
server: AmazonS3
date: Tue, 03 Feb 2026 13:42:21 GMT
x-cache: Error from cloudfront
via: 1.1 c2042c6526b635ce940adba3143aa134.cloudfront.net (CloudFront)
x-amz-cf-pop: ARN53-P2
x-amz-cf-id: 1_e9n4fMbqNUJou-1Wg8wc62BiLYe7V6WyRNIv4oDSroBKl75GA55Q==

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error>$

My location is Russia.
 
Directory indexes are turned off, probably for the same reason they've been turned off on the package repos.


The real problem is:

$ sudo pkg update
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
Fetching data: 19% 16 KiB 0.0 k/s - stalled -
pkg: Failed to fetch https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/data: Timeout was reached
pkg: Failed to fetch https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/data.tzst: Requested range was not delivered by the server
Fetching packagesite: 19% 16 KiB 0.0 k/s - stalled -
pkg: Failed to fetch https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/packagesite: Timeout was reached
pkg: Failed to fetch https://pkg.freebsd.org/FreeBSD:15:amd64/base_release_0/packagesite.tzst: Requested range was not delivered by the server
Unable to update repository FreeBSD-base
Error updating repositories!
 
Code:
$ curl -I https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_0/data
HTTP/2 302 
server: nginx
date: Tue, 03 Feb 2026 14:08:27 GMT
content-type: text/html
content-length: 138
location: https://cloudfront.aws.pkgbase.freebsd.org/FreeBSD:15:amd64/base_release_0/data
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN

$ curl -i https://cloudfront.aws.pkgbase.freebsd.org/FreeBSD:15:amd64/base_release_0/data
HTTP/2 403 
content-type: application/xml
server: AmazonS3
date: Tue, 03 Feb 2026 14:08:42 GMT
x-cache: Error from cloudfront
via: 1.1 575a0c6f16652571820285002db8b856.cloudfront.net (CloudFront)
x-amz-cf-pop: ARN53-P2
x-amz-cf-id: odAi2FISZuqgBFYjEdmKyAqZ_GAQdoW9c4c8KM7QutwMwK6I0Q2Qdw==

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error>

The same problem WITHOUT directory indexes.

UPDATE:
also:

Code:
$ curl -i https://cloudfront.aws.pkgbase.freebsd.org/FreeBSD:15:amd64/base_release_0/data.tzst
HTTP/2 403 
content-type: application/xml
server: AmazonS3
date: Tue, 03 Feb 2026 14:16:43 GMT
x-cache: Error from cloudfront
via: 1.1 39e03a84352b80cf7e2b59c41f27a026.cloudfront.net (CloudFront)
x-amz-cf-pop: ARN53-P2
x-amz-cf-id: hrwZ2s9GzSCnE4CFjsizGGJgqJr5vbOVSQ2UeCc21BYgJiVCS1f4wQ==

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message></Error>$
 
Ok, I tested now in a 15.0-RELEASE VM. All is working correctly. I updated it to p2 with pkgbase.

However, I get the same errors with curl. So, that's the way it normally works. Just pkg knows how to dl the files.

Your problem hasn't been diagnosed with curl. It's something else. Maybe try to bootstrap pkg to see if that changes something.
 
Back
Top