-
Notifications
You must be signed in to change notification settings - Fork 12
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
If download from a given mirror fails try from another one and finally download from suse #432
Comments
1, 2, 3 - this logic is for package managers (zypper or dnf) - you can learn that those provide possibility for retry of different mirrors (maybe it needs additional configuration). If any case from what I see it is not an issue with download redirector, e.g. you can complain to https://github.com/openSUSE/libzypp 4 - openSUSE infrastructure is mature enough to block corrupted / dangerous rpms if those where injected by an attacker or by mistake. But if you want to avoid certain countries - you can add parameter
|
Ah I didn't notice that you mention that repo.opensuse.id had the file. So please direct the complain to zypper team, in edge case you could fetch the file manually from the good mirror and put it into corresponding directory under /var/cache/zypp/packages/ and zypper would pick it up instead of downloading. |
While zypper team is working on improving download experience - there is another tool to help with zypper downloads, it is mentioned at the end in this news article https://news.opensuse.org/2024/03/14/qol-improvements-for-the-download-redirector/ I will close the ticket, because it is not much in MirrorCache to improve such experience. |
Please fix a few security issues with mirror selection code:
If download from a given mirror fails try from another one and finally download from Suse.
If I click i key to ignore failed download for some packages download the rest and install the rest instead of aborting whole update/upgrade with text: Warning: You have chosen to ignore a problem with download or installation of a package which might lead to broken dependencies of other packages. It is recommended to run 'zypper verify' after the operation has finished.
Installation has completed with error.
Never download from an excluded mirror domains list
exclude *.ru and *.by domains from:
-Mirrors in other countries, but same continent: Europe as they do not belong to Europe continent
When I saw that zypper ref; zypper dup tries to download from *.ru and *.by hostile domains I have immediately blocked all their IPs on iptables and router firewall to avoid downloading malware. zypper still keep trying to download from mirror.tspu.ru - I press r to retry from another mirror but it keep choosing this one despite being rejected. Adding .mirrorlist to url shows that there is another mirror at repo.opensuse.id but it is never selected. An example from 17.11.2023 05:19: http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm.mirrorlist
shows mirrors:
Mirrors
List of best mirrors for IP address in (PL)
Mirrors which handle this country: 0
None
Mirrors in other countries, but same continent: 1
mirror.tspu.ru (RU)
Mirrors in other parts of the world: 1
repo.opensuse.id (ID)
Here is stubborn zypper ref; zypper dup:
Retrieving: libfreebl3-3.94-3.16.x86_64 (mozilla) (591/734), 391.0 KiB
Retrieving: libfreebl3-3.94-3.16.x86_64.rpm ............................................................................................................................................................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm':
Error code: Connection failed
Error message: Failed to connect to mirror.tspu.ru port 80 after 0 ms: Couldn't connect to server
Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: libfreebl3-3.94-3.16.x86_64.rpm ............................................................................................................................................................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm':
Error code: Connection failed
Error message: Failed to connect to mirror.tspu.ru port 80 after 0 ms: Couldn't connect to server
Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: libfreebl3-3.94-3.16.x86_64.rpm ............................................................................................................................................................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm':
Error code: Connection failed
Error message: Failed to connect to mirror.tspu.ru port 80 after 0 ms: Couldn't connect to server
Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: libfreebl3-3.94-3.16.x86_64.rpm ............................................................................................................................................................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm':
Error code: Connection failed
Error message: Failed to connect to mirror.tspu.ru port 80 after 0 ms: Couldn't connect to server
Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: libfreebl3-3.94-3.16.x86_64.rpm ............................................................................................................................................................................................................................[error]
Download (curl) error for 'http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libfreebl3-3.94-3.16.x86_64.rpm':
Error code: Connection failed
Error message: Failed to connect to mirror.tspu.ru port 80 after 0 ms: Couldn't connect to server
Abort, retry, ignore? [a/r/i/...? shows all options] (a):
The same problem is for:
http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/mozilla-nss-certs-3.94-3.16.x86_64.rpm
http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/mozilla-nss-3.94-3.16.x86_64.rpm
http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/libsoftokn3-3.94-3.16.x86_64.rpm
http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/MozillaThunderbird-115.4.3-1.1.x86_64.rpm
stubborn zypper dup does not try to download from repo.opensuse.id instead of hostile mirror.tspu.ru
There is something wrong that Mozilla packages initially are available from repo.opensuse.id and hostile mirror.tspu.ru only.
greetings,
Zbigniew
The text was updated successfully, but these errors were encountered: