I’m trying to update Leap 15.6 before I upgrade to 16 but zypper ref fails because the repo structure no longer ends with /content. For example:
Download (curl) error for 'https://download.opensuse.org/update/leap/15.6/backports/x86_64/content':
Error code: Connection failed
The types are all set to rpm-md in the .repo files and that type was listed in the output when I did zypper lr -d. In trying to resolve this issue I ran zypper clean --all and now they show as type N/A when listed, even though the type is still set in the .repo files.
If I visit the repo URLs without /content then I find them successfully.
I’ve tried removing the repos and re-adding them, but that made no difference.
Is there a way to perhaps update zypper to work with the updated repo structure?
Repository 'Update repository of openSUSE Backports' is invalid.
[repo-backports-update|https://download.opensuse.org/update/leap/15.6/backports/] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/update/leap/15.6/backports/'
- Download (curl) error for 'https://download.opensuse.org/update/leap/15.6/backports/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Update repository of openSUSE Backports' because of the above error.
Repository 'Update repository with updates from SUSE Linux Enterprise 15' is invalid.
[repo-sle-update|https://download.opensuse.org/update/leap/15.6/sle/] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/update/leap/15.6/sle/'
- Download (curl) error for 'https://download.opensuse.org/update/leap/15.6/sle/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Update repository with updates from SUSE Linux Enterprise 15' because of the above error.
Repository 'Main Update Repository' is invalid.
[repo-update|https://download.opensuse.org/update/leap/15.6/oss] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/update/leap/15.6/oss'
- Download (curl) error for 'https://download.opensuse.org/update/leap/15.6/oss/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Main Update Repository' because of the above error.
Repository 'Update Repository (Non-Oss)' is invalid.
[repo-update-non-oss|https://download.opensuse.org/update/leap/15.6/non-oss/] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/update/leap/15.6/non-oss/'
- Download (curl) error for 'https://download.opensuse.org/update/leap/15.6/non-oss/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Update Repository (Non-Oss)' because of the above error.
Repository 'Non-OSS Repository' is invalid.
[repo-non-oss|https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/'
- Download (curl) error for 'https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Non-OSS Repository' because of the above error.
Repository 'Main Repository' is invalid.
[repo-oss|https://download.opensuse.org/distribution/leap/15.6/repo/oss/] Failed to retrieve new repository metadata.
History:
- [|] Error trying to read from 'https://download.opensuse.org/distribution/leap/15.6/repo/oss/'
- Download (curl) error for 'https://download.opensuse.org/distribution/leap/15.6/repo/oss/content':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 443 after 0 ms: Could not connect to server
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Main Repository' because of the above error.
Could not refresh the repositories because of errors.
thanks. I’m just investigating @hui s reply above. It seems that I can’t get to the internet from that server. It serves files, but perhaps only to another internal server.
Thank you @Sauerland and @hui - routing information on this server was missing, which was preventing it from reaching outside the local network. Once I resolved that zypper ref now works.