"zypper lp" lists patch with cannot be installed

Hi,

I administer a lot of OpenSuSE 11.1 x86_64 machines and one of them has the problem that the command “zypper lp” lists a needed patch for “translation-update”, version 532, but then “zypper patch” says that there is nothing to do.

I cannot get rid of this “needed patch”, check out these commands I tried:


machine:/root # zypper lu
Loading repository data...
Reading installed packages...
No updates found.
machine:/root # zypper lp
Loading repository data...
Reading installed packages...
Patches

Repository                 | Name               | Version | Category    | Status
---------------------------+--------------------+---------+-------------+-------
OpenSUSE11.1_GEMINI_UPDATE | translation-update | 532     | recommended | Needed
machine:/root # zypper patch
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Nothing to do.
machine:/root # zypper rm translation-update
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  translation-update


After the operation, 18.0 K will be freed.
Continue? [YES/no]:
Removing translation-update-11.1-0.2.1 [done]
machine:/root # zypper lp
Loading repository data...
Reading installed packages...
Patches

Repository                 | Name               | Version | Category    | Status
---------------------------+--------------------+---------+-------------+-------
OpenSUSE11.1_GEMINI_UPDATE | translation-update | 532     | recommended | Needed
machine:/root # zypper in translation-update
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  translation-update


Overall download size: 11.0 K. After the operation, additional 18.0 K will be used.
Continue? [YES/no]:
Retrieving package translation-update-10.3-46.29.noarch (1/1), 11.0 K (18.0 K unpacked)
Retrieving: translation-update-10.3-46.29.noarch.rpm [done]
Installing: translation-update-10.3-46.29 [done]
machine:/root # zypper lp
Loading repository data...
Reading installed packages...
Patches

Repository                 | Name               | Version | Category    | Status
---------------------------+--------------------+---------+-------------+-------
OpenSUSE11.1_GEMINI_UPDATE | translation-update | 532     | recommended | Needed
OpenSUSE11.1_GEMINI_UPDATE | translation-update | 599     | recommended | Needed
machine:/root # zypper in -t patch translation-update
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be upgraded:
  translation-update


The following NEW patch is going to be installed:
  translation-update


Overall download size: 11.0 K. No additional space will be used or freed after the operation.
Continue? [YES/no]:
Retrieving package translation-update-11.1-0.2.1.noarch (1/2), 11.0 K (18.0 K unpacked)
Installing: translation-update-11.1-0.2.1 [done]
machine:/root # zypper lp
Loading repository data...
Reading installed packages...
Patches

Repository                 | Name               | Version | Category    | Status
---------------------------+--------------------+---------+-------------+-------
OpenSUSE11.1_GEMINI_UPDATE | translation-update | 532     | recommended | Needed
machine:/root #

Any suggestions?
I also tried “zypper refresh -f” but that also did not help…

Also note that about 50 other machines use this (mirrored update repository), none of them has this problem. They are all updated correctly, showing “0 needed patches”.

Thanks for any help! It’s npt a real problem, but it’s just annoying!

RPM data base out of whack maybe?

try rpm --rebuilddb

Unfortunately “rpm --rebuilddb” did not fix the problem.
The “zypper lp” command still lists the above mentioned patch as needed…

Here it comes again: please post output of:


zypper lr -d

Don’t know if you noticed this, but AFAICS the one package is meant for 10.3 …Has this machine been upgraded from the repos ?

The output of “zypper lr -d” is the following:


machine:~ # zypper lr -d
# | Alias                                     | Name                                      | Enabled | Refresh | Priority | Type   | URI                                                                                       | Service
--+-------------------------------------------+-------------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------------------------+--------
1 | OpenSUSE11.1_GEMINI_DVD                   | OpenSUSE11.1_GEMINI_DVD                   | Yes     | Yes     |   99     | yast2  | nfs://<internal_ip_of_our_main_server>/export/install/linux/opensuse/11.1/64bit                              |
2 | OpenSUSE11.1_GEMINI_UPDATE                | OpenSUSE11.1_GEMINI_UPDATE                | Yes     | Yes     |   20     | rpm-md | nfs://<internal_ip_of_our_main_server>/export/install/linux/opensuse/11.1/update/                            |
3 | OpenSUSE11.1_NON-OSS_Repository_Esslingen | OpenSUSE11.1 NON-OSS Repository Esslingen | Yes     | Yes     |   99     | yast2  | http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/distribution/11.1/repo/oss  |
4 | OpenSUSE11.1_OSS_Repository_Esslingen     | OpenSUSE11.1 OSS Repository Esslingen     | Yes     | Yes     |   99     | yast2  | http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/distribution/11.1/repo/oss/ |
5 | OpenSUSE11.1_Update_Repository_Esslingen  | OpenSUSE11.1 Update Repository Esslingen  | No      | Yes     |   99     | rpm-md | http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.opensuse.org/update/11.1                 |

This machine has been set up before my time :slight_smile: but as far as i know it was set up with OpenSuSE 11.1 from scratch… but I will double check tomorrow!

So maybe I will remove our own (rsynced from fht-esslingen) update repository and use the #5 respository and see what happens then…

So if I use the repository #5 as update repository I still get the same problem… any further ideas?

Hello,

did you find a solution for your update problem? It seems to be the same problem here, although I am on a Opensuse 11.2 machine. Here’s the output of zypper lp and zypper patch:


# zypper lp
Loading repository data...
Reading installed packages...

Repository | Name  | Version | Category | Status
-----------+-------+---------+----------+-------
11.2       | finch | 1625    | security | needed

# zypper patch
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Nothing to do.

Any suggestions what to do? I have already tried

rpm --rebuilddb

with no success, the patch still shows as “needed” but cannot be installed.

Thanks a lot in advance,
Chris