[opensuse] why does zypper try to rebuild the cache?
Hi, was just looking for some package infor using zypper search as user, woodstock:~% zs gimp Building repository 'Wine (openSUSE_Tumbleweed)' cache ..................[error] Error building the cache: Can't create cache at /var/cache/zypp/solv/Emulators_Wine - no writing permissions. Warning: The metadata cache needs to be built for the 'Wine (openSUSE_Tumbleweed)' repository. You can run 'zypper refresh' as root to do this. Disabling repository 'Wine (openSUSE_Tumbleweed)'. ...and the same for all other repositories. They are all set to NOT autorefresh. Why is zypper trying to refresh anyhow? The metadata is there, and readable. And it uses the existing ones in the end, and finds what I looked for. Last update installed a new zypper rpm, but no version change, and no changes in configuration files. Puzzled... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Peter Suetterlin wrote:
Hi,
was just looking for some package infor using zypper search as user,
woodstock:~% zs gimp Building repository 'Wine (openSUSE_Tumbleweed)' cache ..................[error] Error building the cache: Can't create cache at /var/cache/zypp/solv/Emulators_Wine - no writing permissions. Warning: The metadata cache needs to be built for the 'Wine (openSUSE_Tumbleweed)' repository. You can run 'zypper refresh' as root to do this. Disabling repository 'Wine (openSUSE_Tumbleweed)'.
...and the same for all other repositories. They are all set to NOT autorefresh. Why is zypper trying to refresh anyhow? The metadata is there, and readable.
And it uses the existing ones in the end, and finds what I looked for.
Sorry, my fault - it reports 'System Package', so that's from the rpm database. Is there a way to find out why it wants to rebuild, or to check the integrity of the database? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 19/09/2018 07.03, Peter Suetterlin wrote:
Peter Suetterlin wrote:
Hi,
was just looking for some package infor using zypper search as user,
...
And it uses the existing ones in the end, and finds what I looked for.
Sorry, my fault - it reports 'System Package', so that's from the rpm database.
Is there a way to find out why it wants to rebuild, or to check the integrity of the database?
I think that initially, some months ago, when run as user it did not try to refresh the database, and now it does. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
Is there a way to find out why it wants to rebuild, or to check the integrity of the database?
I think that initially, some months ago, when run as user it did not try to refresh the database, and now it does.
I'm quite sure somehow the database got 'corrupted'. Eventually I also ran zypper as root, and also there it insisted it cannot use the existing one and rebuilt all of them. It wasn't refreshing, only rebuilding! Since then things are fine again, it doesn't (try to) rebuild unless I tell it to. So I wonder if some library for accessing the files has changed binary format. I find it extremely unlikely that *all* files got corrupted at the same time (but only those, and nothing else).... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20/09/2018 07.04, Peter Suetterlin wrote:
Carlos E. R. wrote:
Is there a way to find out why it wants to rebuild, or to check the integrity of the database?
I think that initially, some months ago, when run as user it did not try to refresh the database, and now it does.
I'm quite sure somehow the database got 'corrupted'. Eventually I also ran zypper as root, and also there it insisted it cannot use the existing one and rebuilt all of them. It wasn't refreshing, only rebuilding!
Since then things are fine again, it doesn't (try to) rebuild unless I tell it to.
So I wonder if some library for accessing the files has changed binary format. I find it extremely unlikely that *all* files got corrupted at the same time (but only those, and nothing else)....
Maybe zypper crashed one day and left the databases in an inconsistent state. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas))
participants (2)
-
Carlos E. R.
-
Peter Suetterlin