Upgrade error 15.4 to 15.5

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?

Bart

Why not showing some facts about your repos as example?

zypper lr -d

https://en.opensuse.org/SDB:System_upgrade

Post also as root:
grep -Ei 'releasever|15.4|15.5' /etc/zypp/repos.d/*

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

ASU-AIO:~ # zypper lr -d
#  | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | dvd                         | openSUSE_Leap_15.4                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.4/                       | 
 2 | packman                     | packman                                                                                     | No      | ----      | ----    |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/       | 
 3 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE   | https://mirrorcache-us.opensuse.org/update/leap/15.4/backports_debug/    | 
 4 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/update/leap/15.4/backports/          | 
 5 | repo-non-oss                | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/distribution/leap/15.4/repo/non-oss/ | 
 6 | repo-oss                    | Main Repository                                                                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/distribution/leap/15.4/repo/oss/     | 
 7 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE   | https://mirrorcache-us.opensuse.org/debug/update/leap/15.4/sle/          | 
 8 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/update/leap/15.4/sle/                | 
 9 | repo-update                 | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/update/leap/15.4/oss/                | 
10 | repo-update-non-oss         | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mirrorcache-us.opensuse.org/update/leap/15.4/non-oss/            | 
ASU-AIO:~ # 

This was after I did zypper --releasever=15.5 refresh

ASU-AIO:~ # grep -Ei 'releasever|15.4|15.5' /etc/zypp/repos.d/*
/etc/zypp/repos.d/dvd.repo:name=openSUSE_Leap_${releasever}
/etc/zypp/repos.d/dvd.repo:baseurl=http://opensuse-guide.org/repo/openSUSE_Leap_${releasever}/
/etc/zypp/repos.d/packman.repo:baseurl=http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_${releasever}/
/etc/zypp/repos.d/repo-backports-debug-update.repo:baseurl=https://mirrorcache-us.opensuse.org/update/leap/$releasever/backports_debug/
/etc/zypp/repos.d/repo-backports-debug-update.repo.rpmsave:baseurl=http://download.opensuse.org/update/leap/$releasever/backports_debug/
/etc/zypp/repos.d/repo-backports-update.repo:baseurl=https://mirrorcache-us.opensuse.org/update/leap/$releasever/backports/
/etc/zypp/repos.d/repo-non-oss.repo:baseurl=https://mirrorcache-us.opensuse.org/distribution/leap/${releasever}/repo/non-oss/
/etc/zypp/repos.d/repo-oss.repo:baseurl=https://mirrorcache-us.opensuse.org/distribution/leap/15.4/repo/oss/
/etc/zypp/repos.d/repo-sle-debug-update.repo:baseurl=https://mirrorcache-us.opensuse.org/debug/update/leap/$releasever/sle/
/etc/zypp/repos.d/repo-sle-debug-update.repo.rpmsave:baseurl=http://download.opensuse.org/debug/update/leap/$releasever/sle/
/etc/zypp/repos.d/repo-sle-update.repo:baseurl=https://mirrorcache-us.opensuse.org/update/leap/$releasever/sle/
/etc/zypp/repos.d/repo-update-non-oss.repo:baseurl=https://mirrorcache-us.opensuse.org/update/leap/${releasever}/non-oss/
/etc/zypp/repos.d/repo-update.repo:baseurl=https://mirrorcache-us.opensuse.org/update/leap/${releasever}/oss/
ASU-AIO:~ # 

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!

Thanks all for your help!
Bart

Ir doesn’t matter how it happened. But users may readily check for erroneous URLs by running this command with a dummy version:

  3400g:~ # zypper --releasever=XXXXXXXX --show-enabled-only 
Warning: Enforced setting: $releasever=XXXXXXXX
#  | Alias                 | Enabled | GPG Check | Priority | URI
---+-----------------------+---------+-----------+----------+----------------------------------------------------------------------
 3 | repo-backports-update | Yes     | ( p) Yes  |   99     | http://download.opensuse.org/update/leap/XXXXXXXX/backports/
 8 | repo-non-oss          | Yes     | (r ) Yes  |   99     | http://download.opensuse.org/distribution/leap/XXXXXXXX/repo/non-oss/
 9 | repo-oss              | Yes     | (r ) Yes  |   99     | http://download.opensuse.org/distribution/leap/XXXXXXXX/repo/oss/
11 | repo-sle-update       | Yes     | ( p) Yes  |   99     | http://download.opensuse.org/update/leap/XXXXXXXX/sle/
13 | repo-update           | Yes     | (r ) Yes  |   99     | http://download.opensuse.org/update/leap/XXXXXXXX/oss
14 | repo-update-non-oss   | Yes     | ( p) Yes  |   99     | http://download.opensuse.org/update/leap/XXXXXXXX/non-oss/
3400g:~ # 

A quick and dirty upgrade wouldn’t work and resulted in a broken system: Question before upgrading to 15.5 - #7 by karlmistelberger

After rolling back and before trying again I ran the above command which revealed a broken URL. Fixed the URL double checked the list of repos and tried again: Question before upgrading to 15.5 - #12 by karlmistelberger > Sucess!

1 Like