Update problem

Hello,

This evening I received message that new updates are available. I applied them using sudo zypper…, but this happened:


zlatic@dhcppc9:~> sudo zypper update 
[sudo] password for root:  
Loading repository data... 
Reading installed packages... 

The following 12 package updates will NOT be installed:
  gstreamer-plugins-ugly gstreamer-plugins-ugly-lang kmozillahelper libfreebl3 
  libfreebl3-hmac libsoftokn3 libsoftokn3-hmac MozillaFirefox 
  MozillaFirefox-branding-openSUSE mozilla-nspr mozilla-nss mozilla-nss-certs 

The following 4 packages are going to be upgraded:
  libSDL-1_2-0 libtirpc3 libtirpc3-32bit libtirpc-netconfig 

4 packages to upgrade. 
Overall download size: 407.4 KiB. Already cached: 0 B. After the operation, 967.0 B will 
be freed. 
**Continue? [y/n/v/...? shows all options] (y): **
Retrieving package libSDL-1_2-0-1.2.15-150000.3.19.1.x86_64 
                                                    (1/4), 179.0 KiB (455.8 KiB unpacked) 
Retrieving: libSDL-1_2-0-1.2.15-150000.3.19.1.x86_64.rpm ................[done (358 B/s)] 
Retrieving package libtirpc-netconfig-1.2.6-150300.3.3.1.x86_64 
                                                    (2/4),  23.5 KiB (  2.2 KiB unpacked) 
Retrieving: libtirpc-netconfig-1.2.6-150300.3.3.1.x86_64.rpm ......................[done] 
Retrieving package libtirpc3-32bit-1.2.6-150300.3.3.1.x86_64 
                                                    (3/4), 105.3 KiB (229.2 KiB unpacked) 
Retrieving delta: ./x86_64/libtirpc3-32bit-1.2.6-1.131_150300.3.3.1.x86_64.drpm, 31.9 KiB 
Retrieving: libtirpc3-32bit-1.2.6-1.131_150300.3.3.1.x86_64.drpm ..................[done] 
Applying delta: ./libtirpc3-32bit-1.2.6-1.131_150300.3.3.1.x86_64.drpm ............[done] 
Retrieving package libtirpc3-1.2.6-150300.3.3.1.x86_64 
                                                    (4/4),  99.6 KiB (219.0 KiB unpacked) 
Retrieving delta: ./x86_64/libtirpc3-1.2.6-1.131_150300.3.3.1.x86_64.drpm, 30.7 KiB 
Retrieving: libtirpc3-1.2.6-1.131_150300.3.3.1.x86_64.drpm ........................[done] 
Applying delta: ./libtirpc3-1.2.6-1.131_150300.3.3.1.x86_64.drpm ..................[done] 

Checking for file conflicts: ......................................................[done] 
(1/4) Installing: libSDL-1_2-0-1.2.15-150000.3.19.1.x86_64 ........................[done] 
(2/4) Installing: libtirpc-netconfig-1.2.6-150300.3.3.1.x86_64 ....................[done] 
(3/4) Installing: libtirpc3-32bit-1.2.6-150300.3.3.1.x86_64 .......................[done] 
(4/4) Installing: libtirpc3-1.2.6-150300.3.3.1.x86_64 .............................[done] 
Problem occurred during or after installation or removal of packages:
Failed to cache rpm database (1).                                                        
History:                                                                                 
 - 'rpmdb2solv' '-r' '/' '-D' '/usr/lib/sysimage/rpm' '-X' '-p' '/etc/products.d' '/var/c
ache/zypp/solv/@System/solv' '-o' '/var/cache/zypp/solv/@System/solvJZe0Lo'              
   rpmdb2solv: inconsistent rpm database, key 4261 not found. run 'rpm --rebuilddb' to fi
x.                                                                                       



What to do? Did I do anything wrong? How to fix, if I did?

Thank you for answering my questions.

Hm, just did a zypper up and everything went smoothly. Did you try “rpm --rebuilddb” as suggested at the end of the message?

Now, I will tell you “whole story”: This happened yesterday and I just did

sudo zupper update

again. No error happened.

Today this happened again (same error). Then I again do

sudo zupper update

Then, mailed you. After mail, I saw system suggestion that you asked me about

rpm --rebuilddb

As root, of course. So, my answer is Yes, I did it, but after I post problem. Now I wait what will happen tomorrow.Is there anything more I have to do before tomorrow comes?

Is there anything more I have to do before tomorrow comes? 

Vladimir from Čačak, Serbia

No.
Maybe the rpm Database was corrupt, rpm --rebuildb can fix it.

Sorry, I can’t tell. Just wanted to check if you have seen the advice. I can only guess some data got lost during download. If problems persist you might try using “rpm” to check the packages involved. After all it’s only 4 packages. Sorry, I don’t know the exact code, “man rpm” is quite extensive. Other idea is to force reinstall these packages. But maybe “rpm --rebuilddb” did the trick. If you don’t see any further error messages, it might be ok.