Today I experienced this result while doing zypper lu on my headless server.
Skipping repository 'Main Repository' because of the above error.
Problem retrieving files from 'Update repository with updates from SUSE Linux Enterprise 15'.
Download (curl) error for 'http://download.opensuse.org/update/leap/15.4/sle/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org
Please see the above error message for a hint.
This message is repeated for all of the enabled repositories.
Running this command and zypper up on all my desktops responded as expected.
The server has internet access as I can ping several DNS.
The $releasever is proper and is being used by checking
**DEL-OSS:~ #** zypper --releasever @--HERE--@ lr -u
Warning: Enforced setting: $releasever=@--HERE--@
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG
Check | Refresh | URI
---+-------------------------------+----------------------------------------------------------------------------+---------+----
-------+---------+-------------------------------------------------------------------------------
1 | openSUSE-Leap-${releasever]-2 | openSUSE-Leap-${releasever]-2 | No | ---
- | ---- | hd:/?device=/dev/disk/by-id/usb-Samsung_Flash_Drive_0374017110002465-0:0-part2
2 | repo-backports-debug-update | Update repository of openSUSE Backports (Debug) | No | ---
- | ---- | http://download.opensuse.org/update/leap/@--HERE--@/backports_debug/
3 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r
) Yes | Yes | http://download.opensuse.org/update/leap/@--HERE--@/backports/
4 | repo-debug | Debug Repository | No | ---
- | ---- | http://download.opensuse.org/debug/distribution/leap/@--HERE--@/repo/oss/
5 | repo-debug-non-oss | Debug Repository (Non-OSS)
Again, this message is repeated for all repositories.
I checked that the actual urls are the same as on the desktops that are working.
I rebooted the server.
The server responds properly as far as allowing access from any of my desktops. I can copy and save files to it, can (obviously) ssh into it.
Don’t know where else to look.
Bart