Yesterday, I attempted to upgrade one of my computers from Leap 15.4 to Leap 15.5. I did a refresh of the existing repositories, did zypper up to make sure 15.4 was up to date. Then, did zypper releasever=15.5 refresh
And zypper --releasever=15.5 dup.
zypper --releasever=15.5 dup
Warning: Enforced setting: $releasever=15.5
Retrieving repository 'openSUSE_Leap_15.5 metadata ......
<<<lines removed>>>
Loading repository data ...
Reading installed packages ...
Warning: You are about to do a distributation upgrade ------
Computing distribution upgrade ...
The following 871 packages are going to be downgraded:
<<< 871 file names >>>
Followed by the usual list of files to be reinstalled, removed and a message the system requires a reboot.
Because of the long list of files that were going to changed, the line about it being a downgrade instead of an upgrade was missed. I, of course, told it to go ahead!
After I rebooted, I checked and was running 15.4! So, I had to do zypper up and wait while my system was finally up to where it was when I started. I checked the syntax of my original command and, tried it again. Only this time I didn’t let ti do the downgrade.
I am left wondering what went wrong.
Are all the 15.5 directories in place in the repositories?
ISTR on 15.4 to 15.5 upgrades that some package versions are reportedly older in 15.5. Downgrading is an occasionally expected zypper dup occurrence, whether from TW to TW, or Leap to Leap. Some downgrading shouldn’t have caused errors, if you are only using standard repos. 871 to be downgraded sounds terribly wrong, unless possibly you have upwards of 4k or 5k total packages installed. Mine usually only have around 1,200-1,500. Awaiting output from requested zypper lr -d…
OK! I found the problem. The distribution/leap url was hard coded to 15.4. Thanks to Sauerland for the command that showed this problem. It’s all fixed now.
I don’t, and, most likely, will never know how it got like that. Chalk it up to stuff happens!