[softwaremgmt] Locked packages in SLES10 break update
Hi everyone, we operate an own installation of the opensuse buildservice 2.0.4 and use it to build several php-related packages for various platforms including SLES 10 + 11. It happens only for SLES10, that automatic updates of our packages will fail. All packages coming from our repository are flagged as "locked" and zypper will not upgrade them. I also cannot find the lockfile in /etc/zypp/locks as suggested by http://en.opensuse.org/openSUSE:Libzypp_locksfile. When running "zypper install locked-package-name" it will complain about the locks. If one proceeds and selects "unlock" from the list of choices, then all packages will be installed, but each one will throw a dependency error during installation. I've read (German: http://www.linux-club.de/viewtopic.php?f=3&t=81259&sid=d48a82d276afac5e2c0ea0950dddd247), that any external package will be locked automatically in SLES10. Does this include external repositories (like ours) as well? The zypper version is very old on SLES10 and does not seem to support the lock-managing commands. sles10:~ # rpm -qa | grep zypp zypper-0.6.200-0.4.49 libzypp-2.100.3-0.4.23 libzypp-zmd-backend-7.1.1.0_2.16-0.4.46 I asked this on the opensuse-buildservice list, from where I was sent here. We already verified, that the packages are signed OK and that the GPG key is properly imported as well (rpm -qi). Now the question is: Is there a way our repository needs to be flagged, so that the packages will not get locked by SLES10? We rely on automatic upgrades of packages distributed from those repositories, so manual install is not a feasible solution. Is there a command in this old version of zypper to unlock the packages? With kind regards, Lars Volker -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
On Monday 06 December 2010 13:36:35 Lars Volker wrote:
The zypper version is very old on SLES10 and does not seem to support the lock-managing commands. sles10:~ # rpm -qa | grep zypp zypper-0.6.200-0.4.49 libzypp-2.100.3-0.4.23 libzypp-zmd-backend-7.1.1.0_2.16-0.4.46
The concept in this old zypp version is slightly different. Zypp just distinguishes between known (trusted) and unknown (foreign) vendor. Packages from unknown vendor are locked to prevent them from being damaged (removed or replaced by known vendor packages). This happens on a per package base, so it does not depend on the repository that provides the package, but soleley on the packages vendor string. [libzypp.changes] - Allow configuration of trusted vendors via /var/lib/zypp/db/trustedVendors. (#186636) - version 2.15.4 So if all packages in you repo use a common vendor string, you could unprotect them by creating an entry in /var/lib/zypp/db/trustedVendors. [http://old-en.opensuse.org/Standards/Libzypp_Store#db.2FtrustedVendors] An optional configuration file extending the builtin list of trusted aka known vendors. In contrary to packages from known vendors, installed packages from unknown vendors are by default protected. Libzypp will not delete or update them automaticaly. The user has to unlock them in order to change their state. The file defines a list of vendor patterns, one per line. If a pattern matches the initial portion of a vendor string (case insensitive), the vendor is considered as trusted or known. Empty lines and lines beginning with '#' are ignored. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org
participants (2)
-
Lars Volker
-
Michael Andres