Recently I’ve had trouble running online update. I’ve found various posts about this by others, so it seems like a somewhat recurring theme. Anyway, as of now, I rebooted, logged in a root, went to Yast2 -> Online Update, and I get a dialog box saying
No active update repo. available
Exit online update now?
I say yes, goto yast -> Online Update Configuration.
Current Update Repository:
(none)
The Set Default button is greyed out.
Beforehand, I went to software repos and disabled everything except
linux-4ks5:/usr/share/man # zypper lu
Building repository ‘Main Update Repository’ cache [done]
Error building the cache:
‘repo2solv.sh’ ‘-o’ ‘/var/cache/zypp/solv/repo-update/solv’ ‘/var/cache/zypp/raw/repo-update’
gzip: deltainfo.xml.gz: invalid compressed data–format violated
repo_updateinfoxml: mismatched tag at line 3676:75
Warning: Disabling repository ‘Main Update Repository’ because of the above error.
Loading repository data…
Reading installed packages…
No updates found.
linux-4ks5:/usr/share/man #
I was able to delete all my repos. I added just the update repo, clicked OK. It downloaded a few files. Then it got thru ‘refresh metdata’, but died in ‘rebuild cache’. It gave me the following dialog box:
Well, I took a screenshot but can’t figure out how to attach it…
Might it be that there’s an error in the files on the repo?
Is it safe to rm -rf /var/cache/zypp/ ? some subdirs of this? I don’t want opensuse to ‘forget’ the state of the system, like what rpm’s are installed…
Is it safe to rm -rf /var/cache/zypp/ ? some subdirs of this? I don’t want opensuse to ‘forget’ the state of the system, like what rpm’s are installed…
It should be. But I’m not totally sure. Cache file will normally re-create themselves as you use whatever creates them.
OK, I clear out /var/cache/zypp, and then did “register now and get support” (or somesuch) in yast -> online update config. And lo, it worked! I did updates, and (almost) all is well.
If I now go into online update config, it says ‘none’ under current update repo. What is up with that? I can run online update, and there are even a few updates there (I guess posted today).
Forget Online Update Config.
I don’t use the updater applet in the sys tray either - I just use Software Management - Filter by Repo and select the channels I want to update.
Or if you like the updater applet, fine - or just use Online Update, no need to use the config.