Error Refreshing Repos with YaST and Zypper

Hello All,

# cat /etc/*release
openSUSE 42.3 (x86_64)
VERSION = 42.3
CODENAME = Malachite
NAME="openSUSE Leap"
VERSION="42.3".....

*This is installed using Windows 10 WSL…

I am having trouble with my Repos for this OpenSUSE install, with *Zypper *and Yast > Software Manager. The Repos are the default repos that came with the installation. Also, I am able to get to all the Repos URIs in a web browser just fine. But, when I attempt to refresh, update, etc… from any of the repos I get an error that the Connection was Refused on port 80.

I read a few posts that said to disable ipv6. But, I believe I did that and it still isn’t working.

# cat /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Here’s the Zypper Output:

# zypper ref
Download (curl) error for 'http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/repodata/repomd.xml':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 80: Connection refused

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository oss permanently? [yes/no] (no):
Skipping repository 'oss' because of the above error.
Retrieving repository 'oss_update' metadata ----------------------------------------------------------------------------------------\]
Download (curl) error for 'http://download.opensuse.org/update/leap/42.3/oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 80: Connection refused

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Retrieving repository 'oss_update' metadata ....................................................................................[error]
Repository 'oss_update' is invalid.
[oss_update|http://download.opensuse.org/update/leap/42.3/oss/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'oss_update' because of the above error.
Could not refresh the repositories because of errors.

Just running curl or wget on those URI’s fails as well. But, I can get to them in a browser just fine. I also have no trouble pinging “download.opensuse.org”, which seems to resolve the hostname just fine.

Any ideas what could be wrong here?

Here’s what happens trying to install something like “meld”:

# zypper se meld
Retrieving repository 'oss_update' metadata -----------------------------------------------------------------------------------------]
Download (curl) error for 'http://download.opensuse.org/update/leap/42.3/oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 80: Connection refused

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Retrieving repository 'oss_update' metadata ....................................................................................[error]
Repository 'oss_update' is invalid.
[oss_update|http://download.opensuse.org/update/leap/42.3/oss/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'oss_update' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...

S | Name      | Summary                    | Type
--+-----------+----------------------------+--------
  | meld      | Visual diff and merge tool | package
  | meld-lang | Languages for package meld | package

#
# zypper in meld
Download (curl) error for 'http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/repodata/repomd.xml':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 80: Connection refused

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Do you want to disable the repository oss permanently? [yes/no] (no): no
Warning: Skipping repository 'oss' because of the above error.
Retrieving repository 'oss_update' metadata ----------------------------------------------------------------------------------------\]
Download (curl) error for 'http://download.opensuse.org/update/leap/42.3/oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Failed to connect to download.opensuse.org port 80: Connection refused

Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Retrieving repository 'oss_update' metadata ....................................................................................[error]
Repository 'oss_update' is invalid.
[oss_update|http://download.opensuse.org/update/leap/42.3/oss/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'oss_update' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
'meld' not found in package names. Trying capabilities.
No provider of 'meld' found.
Resolving package dependencies...

Nothing to do.

Thanks in Advance,
Matt

Are you behind a proxy maybe?

Hey, thanks for the reply.

Nope, no proxy…

But, I think I may have just gotten past those errors.

I went into Yast > Repos, and I disabled the 2 default Repos and disabled auto-refresh too. Then, I added the 2 mirrors below, and now the “zypper ref” command seems to be working, and attempting to install with Zypper didn’t bomb out either.

# zypper lr -u
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias         | Name          | Enabled | GPG Check | Refresh | URI
--+---------------+---------------+---------+-----------+---------+--------------------------------------------------------------------------
1 | Mirror_Update | Update Mirror | Yes     | (r ) Yes  | Yes     | http://www.gtlib.gatech.edu/pub/opensuse/update/leap/42.3/oss/
2 | OSS_Mirror    | OSS Mirror    | Yes     | (r ) Yes  | Yes     | http://www.gtlib.gatech.edu/pub/opensuse/distribution/leap/42.3/repo/oss/
3 | oss           | oss           | No      | ----      | ----    | http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/
4 | oss_update    | oss_update    | No      | ----      | ----    | http://download.opensuse.org/update/leap/42.3/oss/

Any idea why the default ones would not work, but mirrors would work fine.?

Thanks Again,
Matt

Well, download.opensuse.org will just redirect to any mirror it considers best for you.
Maybe that mirror had/has a problem, or you couldn’t reach it for some reason.

No idea why it would have worked in the browser then though.
Luck? :wink:

If it works for you, I’d say keep using the specific mirror.

Yea, I’m good with that. Thanks for the suggestions.

-Matt

Workaround for me:


sudo rm -r /var/cache/zypp/raw/*
sudo zypper update

cat /etc/os-release 
NAME="openSUSE Leap"
VERSION="15.2"