• Really strange apt behaviour.

    From Robert Heller@3:633/10 to All on Thursday, September 03, 2026 02:40:02
    I am getting a strange error from apt update. The machine is a server I am accessing remotely via ssh. It is running trixie. The machine has the Brave Browser repository and it is getting a "403 Forbidden" message. I am able to use lynx to access the file in question no problem and use firefox on my local machine (a Raspberry Pi5 running Raspberry OS 12 (basically Debian 12, bookworm). I also have a Lenovo laptop which I recently install trixie on and just added the Brave Browser repository to it and apt update behaves as expected. The other *weirdness* is that the dig command returns *different* IP address for the server listed in the Brave Browser repository config file -- it seems to depend on geography and/or ISP path to the Internet backbone (some DNS magic going on here).

    What is going on?

    Remote server:

    heller@DebianServer:~$ sudo apt update
    Get:1 http://mirror.llg.one/debian trixie InRelease [140 kB]
    Hit:2 http://mirror.llg.one/debian trixie-proposed-updates InRelease Err:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
    403 Forbidden [IP: 3.167.37.65 443]
    Error: Failed to fetch https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease 403 Forbidden [IP: 3.167.37.65 443]
    Error: The repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' is not signed.
    Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
    Notice: See apt-secure(8) manpage for repository creation and user configuration details.
    heller@DebianServer:~$ lynx -head -mime_header https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease
    HTTP/1.0 200 OK
    Accept-Ranges: bytes
    Age: 2589
    Content-Length: 7546
    Content-Type: application/octet-stream
    Date: Wed, 02 Sep 2026 23:39:44 GMT
    Etag: "bd8d5fe51c8cb8f8c952ee25f2783636"
    Last-Modified: Wed, 02 Sep 2026 16:35:20 GMT
    Server: AmazonS3
    Via: 1.1 0431e23c0344851eeb0c8f1f10c6edc4.cloudfront.net (CloudFront)
    Via: 2.0 Prism
    X-Amz-Cf-Id: aAFcJ2KuHQ59C1g-xnsFdM3WIQAVBZ7iRKqIqh8UP-eqjEqQeGwCwA= X-Amz-Cf-Pop: IAD61-P4
    X-Amz-Server-Side-Encryption: AES256
    X-Amz-Version-Id: 4bmaKeAqrutHpkM8ZqWHY9e61bq6eKDp
    X-Cache: Hit from cloudfront

    Lenovo laptop:

    gollum3% sudo apt update
    Hit:1 http://security.debian.org/debian-security trixie-security InRelease Hit:2 http://deb.debian.org/debian trixie InRelease Hit:3 http://deb.debian.org/debian trixie-updates InRelease Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease All packages are up to date.
    gollum3% lynx -head -mime_header https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease
    HTTP/1.1 200 OK
    Content-Type: application/octet-stream
    Content-Length: 7546
    Connection: close
    Server: AmazonS3
    Last-Modified: Wed, 02 Sep 2026 16:35:20 GMT
    x-amz-server-side-encryption: AES256
    x-amz-version-id: 4bmaKeAqrutHpkM8ZqWHY9e61bq6eKDp
    Accept-Ranges: bytes
    Date: Wed, 02 Sep 2026 23:39:45 GMT
    ETag: "bd8d5fe51c8cb8f8c952ee25f2783636"
    X-Cache: Hit from cloudfront
    Via: 1.1 11280d8f37ba4cb1d8f36f9f2a6e4c76.cloudfront.net (CloudFront) X-Amz-Cf-Pop: JFK52-P2
    Alt-Svc: h3=":443"; ma?400
    X-Amz-Cf-Id: lA_fu9kcUl32Sk5wJbP-0hVbVPBlHx4_-52lUgEh_mv5W6TbBwg4Eg=
    Age: 2765

    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Robert Heller@3:633/10 to All on Thursday, September 03, 2026 04:00:01
    At Wed, 2 Sep 2026 20:45:10 -0400 Greg Wooledge <greg@wooledge.org> wrote:


    On Wed, Sep 02, 2026 at 20:29:55 -0400, Robert Heller wrote:
    The other *weirdness* is that the dig command returns *different*
    IP address for the server listed in the Brave Browser repository config file
    -- it seems to depend on geography and/or ISP path to the Internet backbone (some DNS magic going on here).

    What is going on?

    Well, the first thing you'll want to try is using something that queries hosts the same way apt does, rather than using dig, which exclusively uses DNS. It's possible you've got a line in your /etc/hosts file or something else which overrides DNS, which dig would not care about, but apt would.

    Canonically, you can use getent hosts ... instead of dig. There are
    lots of other choices as well.

    getent hosts agrees with dig. And there is no funny business in /etc/hosts


    heller@DebianServer:~$ sudo apt update
    Get:1 http://mirror.llg.one/debian trixie InRelease [140 kB]
    Hit:2 http://mirror.llg.one/debian trixie-proposed-updates InRelease
    Err:3 https://brave-browser-apt-release.s3.brave.com stable InRelease
    403 Forbidden [IP: 3.167.37.65 443]

    Here's what I get:

    hobbit:~$ getent hosts brave-browser-apt-release.s3.brave.com
    3.170.51.70 d9owkidwx4k9e.cloudfront.net brave-browser-apt-release.s3.brave.com
    3.170.51.27 d9owkidwx4k9e.cloudfront.net brave-browser-apt-release.s3.brave.com
    3.170.51.36 d9owkidwx4k9e.cloudfront.net brave-browser-apt-release.s3.brave.com
    3.170.51.24 d9owkidwx4k9e.cloudfront.net brave-browser-apt-release.s3.brave.com

    Of course, that's not proof of anything misconfigured on your end,
    as the full set of IP addresses may not be served up on every request.

    If you're convinced you haven't accidentally overridden DNS with a
    line in the hosts file, or some other equivalent, then the only thing
    I can suggest is that you wait a few minutes and try again.


    It is worth noting that lynx has no problem accessing files on the Braveapt repositories. Only specificly apt is having this problem.

    For whatever it's worth, I'm also using Brave via their apt repositories,
    and I haven't seen this problem.




    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Robert Heller@3:633/10 to All on Thursday, September 03, 2026 12:20:01
    At Thu, 03 Sep 2026 05:33:11 +0200 Michel Verdier <listes@verdier.net> wrote:


    On 2026-09-02, Robert Heller wrote:

    It is worth noting that lynx has no problem accessing files on the Braveapt
    repositories. Only specificly apt is having this problem.

    You send HEAD and do not really download the file. Could you try with
    wget or curl ?

    heller@DebianServer:~$ wget https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease
    --2026-09-03 06:13:08-- https://brave-browser-apt-release.s3.brave.com/dists/stable/InRelease
    Resolving brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)... 3.167.37.62, 3.167.37.65, 3.167.37.79, ...
    Connecting to brave-browser-apt-release.s3.brave.com (brave-browser-apt-release.s3.brave.com)|3.167.37.62|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7546 (7.4K) [application/octet-stream]
    Saving to: ƒ??InRelease.1ƒ??

    InRelease.1 100%[=========>] 7.37K --.-KB/s in 0s

    2026-09-03 06:13:08 (156 MB/s) - ƒ??InRelease.1ƒ?? saved [7546/7546]

    heller@DebianServer:~$ file InRelease.1
    InRelease.1: PGP signed message

    I think that it might be restrictive proxy server set up on the LAN the server is on.





    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)