Skip to content

New Mozilla apt repo does not work with apt-mirror #187

Description

@lazywebm

Tried setting up a mirror for the new Mozilla apt repo following their recent announcement [1], but it's failing with an error. The problem seems to be a trailing slash being added to the repo URL.

Config:

deb [arch=amd64] https://packages.mozilla.org/apt mozilla main

Error:

Processing indexes: [PPPPPPPPPPPPPPPPPPPPPapt-mirror: can't open index packages.mozilla.org/apt//dists/mozilla/main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 864.

Tried with with the last official release (v0.5.4) installed via apt on Debian stable, as well as the drop-in replacement from the master branch here, as of 2024-01-25.

[1] https://support.mozilla.org/en-US/kb/install-firefox-linux#w_install-firefox-deb-package-for-debian-based-distributions

Activity

  1. nE0sIghT commented on Jan 25, 2024

    @nE0sIghT

    This is because of 76bd728
    The comment states I cannot find a single repository serving the uncompressed index files, so we found one :-)

    I fixed this in the apt-mirror2

  2. lazywebm commented on Jan 25, 2024

    @lazywebm
    Author

    Ah, thanks for the hint. I've manually reverted 76bd728 on my system, which works too.

  3. lazywebm commented on Mar 13, 2024

    @lazywebm
    Author

    Following up on my comment from my comment above, the manual revert did not fix the issue. Doing an "apt update" on a system where I added my Mozilla repo mirror yields this error:

    Get:12 https://aptmirror.example.com/mozilla/apt mozilla/main amd64 Packages [81,4 kB]
    Err:12 https://aptmirror.example.com/mozilla/apt mozilla/main amd64 Packages
      File has unexpected size (65113 != 81391). Mirror sync in progress? [IP: xxx.xxx.xxx.xxx]
      Hashes of expected file:
       - Filesize:81391 [weak]
       - SHA256:0f0566d8ac81be981bc41771ad2e2fc8640cf383cfce0109acbd84b95605bc73
       - MD5Sum:2f66ff5102fb43fbba4367c28209da4f [weak]
      Release file created at: Wed, 13 Mar 2024 00:19:53 +0000
    Get:13 https://aptmirror.example.com/mozilla/apt mozilla/main all Packages [4.517 kB]
    Err:13 https://aptmirror.example.com/mozilla/apt mozilla/main all Packages
      
    Reading package lists... Done
    E: Failed to fetch https://aptmirror.example.com/mozilla/apt/dists/mozilla/main/binary-amd64/Packages  File has unexpected size (65113 != 81391). Mirror sync in progress? [IP: xxx.xxx.xxx.xxx] 
       Hashes of expected file:
        - Filesize:81391 [weak]
        - SHA256:0f0566d8ac81be981bc41771ad2e2fc8640cf383cfce0109acbd84b95605bc73
        - MD5Sum:2f66ff5102fb43fbba4367c28209da4f [weak]
       Release file created at: Wed, 13 Mar 2024 00:19:53 +0000
    E: Failed to fetch https://aptmirror.example.com/mozilla/apt/dists/mozilla/main/binary-all/Packages  
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    
  4. nE0sIghT commented on Mar 13, 2024

    @nE0sIghT

    @lazywebm
    This is another issue which is not specific for Mozilla repo, but exists for all repos.
    It's architectural problem which can not be easy fixed in the apt-mirror AFAIK.

    It's fixed in the apt-mirror2 which controls repository consistency.

  5. lazywebm commented on Mar 18, 2024

    @lazywebm
    Author

    Thanks for pointing that out, made it work with apt-mirror2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions