Refreshing and updating of opensuse Repositories fails with error “Can’t provide /repodata/repomd.xml”
I have tried to methods, 1. with yast then with “zypper ref”. Both fails with the same error.
I am using a proxy-Server with User/PW Authentication.
Connection to Internet via Browser is working fine.
Here are the messages from zypper:
Retrieving repository ‘KDE4’ metadata [error]
Repository ‘KDE4’ is invalid.
Can’t provide /repodata/repomd.xml : User-requested skipping of a file
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘KDE4’ because of the above error.
Retrieving repository ‘opensuse_update’ metadata /]Failed to download /repodata/repomd.xml from Index of /update/11.2
Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository ‘opensuse_update’ metadata [error]
Repository ‘opensuse_update’ is invalid.
Can’t provide /repodata/repomd.xml : User-requested skipping of a file
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘opensuse_update’ because of the above error.
Some of the repositories have not been refreshed because of an error.
Has someone an idea?
Christian:(
Christian,
try editing
/etc/sysconfig/proxy
and add
HTTP_PROXY=“http://USER:PASSWORD@proxy-url:PORT”
HTH
Uwe
Many Thanks Uwe,
it solves my Problem, now updating and refreshing works fine.
Christian
Ok, now let’s add a “small” bit of complexity:
How can I get updating/installing up and running (either via zypper or via YaST), if I have to use a proxy which requires authentication AND restricts access to certain user agents (here: p.ex. Mozilla Firefox)?
I tried getting it done by defining the user agent in the curl or aria2 config file but it did not work.
I am running openSuSE 11.2 here.
Thanks for any help
Hi,
I’m in the very similar situation after fresh installation of OpenSuSE 11.2. I’m unable to refresh repositories and update my box.
My issue is that I’m behind a proxy with NTLM authentication so I’ve downloaded, installed and configured ntlmaps (another proxy server written in Python with NTLM authentication support). I’ve updated also system-wide proxy settings to point to http://localhost:5865/ the ntlmaps listen on.
Despite of the testing with wget is successfull, YaST is still failing to communicate with update servers 
Any idea what can be wrong?
Aria2 package update together with setting the environment variable ZYPP_ARIA2C=0 solved the issue. Now I’m able to install / update packages. So the required steps (when one is behind NTLM authenticated proxy) after fresh OpenSuSE 11.2 are
- download and update aria2 package
- download, install, setup and start ntlmaps proxy (Python application - no compilation needed)
- configure system to use ntlmaps proxy (export http_proxy=http://localhost:5865/)
- set environment variable ZYPP_ARIA2C to 0 (export ZYPP_ARIA2C=0)
After that YaST / zypper will work as expected