[zypp-devel] zypper does not "see" packages in repo
Hello, I wasn't sure which mailing list would best address this but seeing it's zypper related, zypp-devel and softwaremgmt seemed appropriate. I have 2 local yum/rpm-md repositories which I'm using to deploy packages internally at my employer, opensuse 11.3 and 12.1 systems. Both repos have been functioning as expected but after upgrading one system from 11.3 ->12.1 earlier i'm seeing some odd behavior. When I add new packages to the 12.1 repo, update it with createrepo, and run zypper refresh the new packages are not viable and I can't install/list/search those package. On the repo server I've removed the repodata files and reran createrepo to regenerate them. All files have 0644 permissions and the dirs' 755, all owned by root, I can browser to and download the w/a browser fine. On the client I've removed all the repos and added only this one. I've unset my http_proxy values so zypper makes a direct connection to the server. I've run "zypper clean -a" to purge the cache as well as removed the raw files under /var/cache/zypp/{packages,raw,solv}/. Also the /var/cache/zypp/raw/local-repo/repodata/ *primary.xml.gz doesn't contain any entry for new packages I've added. I'm totally at a loose as to what's happening here, any thoughts on where to look next? -- Later, Darin -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On Thursday 23 February 2012 20:35:00 Darin Perusich wrote:
On the client I've removed all the repos and added only this one. I've unset my http_proxy values so zypper makes a direct connection to the ^^^^^^^^^^! server. I've run "zypper clean -a" to purge the cache as well as removed the raw files under /var/cache/zypp/{packages,raw,solv}/. Also the /var/cache/zypp/raw/local-repo/repodata/ *primary.xml.gz doesn't contain any entry for new packages I've added.
On the client /var/cache/zypp/raw/<repoalias> contains the data as downloaded from the server. If the primary.xml is missing entries, check whether it actually is the same file as on the server. If it is the same, then createrepo would be buggy. If it is not the same, it's probably a proxy problem. Unsetting http_proxy does not help if you run zypper (as root). Zypper will refer to the settings in /etc/sysconfig/proxy. Unfortunately there are also some proxy related bugs in 12.1: - libzypp prior to 10.3.3 might use HTTP_PROXY from /etc/sysconfig/proxy even if PROXY_ENABLED="no". You have tio unset HTTP_PROXY as well. - libzypp is using libproxy. If you are in a KDE/GNOME session and the root shell used to start zypper/yast is _not_ a login shell ('su' gives you a root shell, 'su -' a root login shell), libproxy will prefer the KDE/GNOME settings rather than /etc/sysconfig/proxy. We are about to fix this. You can test the libproxy behavior, if you have the package libproxy-tools installed. Create a root shell as you would do for calling zypper. Then execute: _PX_DEBUG=1 proxy http://download.opensuse.org If the output reports the KDE/GNOME module being used rather than sysconfig, then you don't have a loginshell. Call 'su -' to get one. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (2)
-
Darin Perusich
-
Michael Andres