zypper repository not found but I can access with Firefox

Hello,

When I do “sudo zypper up” than it gives me error like this:

Retrieving repository 'openSUSE-11.4-Non-Oss' metadata \]
File '/repodata/repomd.xml' not found on medium 'http://download.opensuse.org/distribution/11.4/repo/non-oss/'
Abort, retry, ignore? [a/r/i/?] (a):

But I can access Index of /distribution/11.4/repo/non-oss from firefox browser.
(This is old problem from Opensuse version 11.0 when I first tested it.)

See screenshot here:
http://img718.imageshack.us/img718/1632/error001.png](http://img718.imageshack.us/i/error001.png/)

Can you please tell me how to solve this problem.

Thanks
Bob

So the following repository is normally added in for you, so why are you trying to add it back in?

http://download.opensuse.org/distribution/11.4/repo/non-oss/

If you do find yourself trying to add it back in because you deleted it, you need to enter it as a URL and then uncheck the option for " ] Download repository description files" and see if that helps you get it working again.

Thank You,

It has just happened the same to me with OpenSUSE 12.1 I can access the repositories with a browser (Firefox or chrome) but not with Yast or zypper.
I get the error:

Download (curl) error for ‘http://download.opensuse.org/distribution/12.1/repo/oss/content’:
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org (Domain name not found)

Abort, retry, ignore? [a/r/i/?] (a):

Even with wget or curl I can fetch the URL, but it doesn’t work with zypper. IPv6 already disabled.

Any help appreciated. I am desperate.

Strange… I have the opposite it seems.

I can navigate to openSUSE sites (heck, I’m typing this from openSUSE) but no other web sites unless I use their IP address. I can #ping a site by name, but that runs on ipv4 and if I try #ping6 which runs on ipv6 I get nothing.

I blacklisted ipv6 as was recommended when this issue showed up in Fedora, but that didn’t do anything here.

Meanwhile I can update my repositories, I just can’t get out of openSUSE land.

I solved modify /etc/sysconfig/proxy :slight_smile:

Hello!

I have the same problems as you had, describing here above.
My situation was , that in office I use a proxy server and at home I don’t.
So at home I deactivated Proxy via Yast but zypper couldn’t connect do Update sites although wget and curl are successful.

After doing your solution - modify /ec/sysconfig/proxy -> no_proxy = download.opensuse.org
zypper runs completely.

Opensuse 12.1 seems to ignore sysconfig/proxy -> proxy_enabled = no

thanks for your investigation :wink:

Andrew

I am encountering a similar issue where i can’t do an update, as I keep getting 407 (proxy authentication) error. I have set the username/password in /etc/sysconfig/proxy and is also set in environment.

zypper is definitely broken. Does not work behind a proxy, when curl and wget have no issues with exactly the same settings. Hope someone knows a workaround.

Check in your network settings that you have defined a default route/gateway for IPv4. After spending some time on this problem I found that the default route/gateway was missing. After adding the default route for IPv4, zypper will now resolve the IPv4 address properly and bypass the IPv6 lookup.

If you haven’t tempered with proxies and etc ( like myself ) I suggest removing the ending slash from Index of /distribution/11.4/repo/non-oss so make it Index of /distribution/11.4/repo/non-oss

I had this issue for a while and googled it a few times, no answer. The clean install of 11.4 brought in the repos with the ending slash and at some point of time, possibly the first time after the install or after an update, yast and zypper started complaining about this issue. The error was saying:

File ‘/repodata/repomd.xml’ not found on medium 'http://download.opensuse.org/distribution/11.4/repo/non-oss/'

So I removed the ending slash and both non-oss and oss started functioning as expected. Now that may or may not be the issue your facing. If you can browse to Index of /distribution/11.4/repo/non-oss in your browser, then I suggest try this out. If you can’t browse to it, then look into networking, proxy and all other issues.

The logical response is it’s trying to join that up to join up the two which ends up with a double slash :smiley: http://download.opensuse.org/distribution/11.4/repo/non-oss//repodata/repomd.xml . Us developers normally ensure double instances of // don’t happen by using a function that joins two segments of a URL and that was happening in older versions ( 11.2 and 11.3 ) but then someone perhaps replaced the function with a plus operator :slight_smile: Sorry for the geeky spill. As they say Linux for geeks and Apple for everyone else :slight_smile:

Hope this helps.

Slightly old thread, but still: I have the same problem after trying all recommendations above.
I didn’t have a slash at the end of the repo but even tried adding one.

It did work once for the software management tools update, but then no more.
Access with firefox/wget/curl works just fine, but not Yast online update/Apper/zypper.
I am stuck :frowning:

Cant edit last post, so:

This is a new vmware image with nat network access after installing OpenSUSE 12.1 from DVD with default settings, setting proxy via yast, setting system keyboard layout to german with yast, then software update with yast (software management tools) and then failing software update with yast, apper and zypper.
Logoff/on and reboot did not help btw.

On 2012-05-10 19:06, joba1 wrote:
>
> Cant edit last post, so:

No, you can not. Intentionally.

You would be better by starting a new thread, though. This one is old, and
not necesarily the same problem as you have.

> This is a new vmware image with nat network access after installing
> OpenSUSE 12.1 from DVD with default settings, setting proxy via yast,
> setting system keyboard layout to german with yast, then software update
> with yast (software management tools) and then failing software update
> with yast, apper and zypper.

My guess would be that the proxy configuration is not correct. You can
check better by having a look at the logs. /var/log/zypp* or /var/log/yast*


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)