Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirroring microsoft repositories seems to not work #188

Open
aselsing opened this issue Feb 5, 2024 · 4 comments
Open

Mirroring microsoft repositories seems to not work #188

aselsing opened this issue Feb 5, 2024 · 4 comments

Comments

@aselsing
Copy link

aselsing commented Feb 5, 2024

In short: We mirror the following:
deb https://packages.microsoft.com/ubuntu/22.04/prod jammy main
Our arch:
set defaultarch amd64

Then hosts are configured with:
deb [arch=amd64] http://FQDN/mirror/packages.microsoft.com/ubuntu/22.04/prod jammy main

Our hosts, on apt update returns the following error, stopping the apt process.
E: Failed to fetch http://FQDN/mirror/packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/main/binary-all/Packages 404 Not Found [IP: REMOVED 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

@nE0sIghT
Copy link

nE0sIghT commented Feb 5, 2024

I think it's because there are no md5 sums in the Microsoft packages repository and this repository doesn't use Acquire-By-Hash.
You can try apt-mirror2 - it works well with such repositories.

@aselsing
Copy link
Author

aselsing commented Feb 5, 2024

@nE0sIghT We already use this version of apt-mirror in production.
It would be great if there was a PR/fix for this git repo.

@nE0sIghT
Copy link

nE0sIghT commented Feb 5, 2024

It's unlikely you'll wait for the fix. Look to the #139

@chutzimir
Copy link
Contributor

@aselsing #185 has a fix which lets you disable Acquire-by-hash. But as @nE0sIghT mentioned, apt-mirror2 looks very good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants