Online upgrade to 15.4 -- added repos make for problems

I use six added openSUSE repos in 15.3, These are science, education, electronics, games, graphics, and geo. I have installed many packages from them. I ran command checking for their availability in leap 15.4. See below:

(base) tom@mydesktop:~> sudo zypper --releasever=15.4 ref
[sudo] password for root:  
Warning: Enforced setting: $releasever=15.4
Retrieving repository 'Packman Repository' metadata ...........................[done]
Building repository 'Packman Repository' cache ................................[done]
Retrieving repository 'leap 15.4 -- games' metadata ..........................[error]
Repository 'leap 15.4 -- games' is invalid.
[openSUSE_Leap_${releasever}|https://download.opensuse.org/repositories/games:/tools/
openSUSE_Leap_15.4/] Valid metadata not found at specified URL
History:
 - [openSUSE_Leap_${releasever}|https://download.opensuse.org/repositories/games:/too
ls/openSUSE_Leap_15.4/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- games' because of the above error.
Retrieving repository 'leap 15.4 -- science' metadata ........................[error]
Repository 'leap 15.4 -- science' is invalid.
[openSUSE_Leap_${releasever}_1|https://download.opensuse.org/repositories/science/ope
nSUSE_Leap_15.4/] Valid metadata not found at specified URL
History:                                                                              
 - [openSUSE_Leap_${releasever}_1|https://download.opensuse.org/repositories/science/
openSUSE_Leap_15.4/] Repository type can't be determined.                             
                                                                                      
Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- science' because of the above error.
Retrieving repository 'leap 15.4 -- education' metadata ......................[error]
Repository 'leap 15.4 -- education' is invalid.
[openSUSE_Leap_${releasever}_2|https://download.opensuse.org/repositories/Education/o
penSUSE_Leap_15.4/] Valid metadata not found at specified URL                         
History:                                                                              
 - [openSUSE_Leap_${releasever}_2|https://download.opensuse.org/repositories/Educatio
n/openSUSE_Leap_15.4/] Repository type can't be determined.                           
                                                                                      
Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- education' because of the above error.
Retrieving repository 'leap 15.4 -- geo' metadata ............................[error]
Repository 'leap 15.4 -- geo' is invalid.
[openSUSE_Leap_${releasever}_3|https://download.opensuse.org/repositories/Application
:/Geo/openSUSE_Leap_15.4/] Valid metadata not found at specified URL                  
History:                                                                              
 - [openSUSE_Leap_${releasever}_3|https://download.opensuse.org/repositories/Applicat
ion:/Geo/openSUSE_Leap_15.4/] Repository type can't be determined.                    
                                                                                      
Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- geo' because of the above error.
Retrieving repository 'leap 15.4 -- electronics' metadata ....................[error]
Repository 'leap 15.4 -- electronics' is invalid.
[openSUSE_Leap_${releasever}_4|https://download.opensuse.org/repositories/electronics
/openSUSE_Leap_15.4/] Valid metadata not found at specified URL                       
History:                                                                              
 - [openSUSE_Leap_${releasever}_4|https://download.opensuse.org/repositories/electron
ics/openSUSE_Leap_15.4/] Repository type can't be determined.                         
                                                                                      
Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- electronics' because of the above error.
Retrieving repository 'leap 15.4 -- graphics' metadata .......................[error]
Repository 'leap 15.4 -- graphics' is invalid.
[openSUSE_Leap_${releasever}_5|https://download.opensuse.org/repositories/graphics/op
enSUSE_Leap_15.4/] Valid metadata not found at specified URL                          
History:                                                                              
 - [openSUSE_Leap_${releasever}_5|https://download.opensuse.org/repositories/graphics
/openSUSE_Leap_15.4/] Repository type can't be determined.                            
                                                                                      
Please check if the URIs defined for this repository are pointing to a valid reposito
ry.
Skipping repository 'leap 15.4 -- graphics' because of the above error.
Retrieving repository 'Update Repository of openSUSE Backports' metadata ..................................................................................[done]
Building repository 'Update Repository of openSUSE Backports' cache .......................................................................................[done]
Retrieving repository 'Non-OSS Repository' metadata .......................................................................................................[done]
Building repository 'Non-OSS Repository' cache ............................................................................................................[done]
Retrieving repository 'Main Repository' metadata ..........................................................................................................[done]
Building repository 'Main Repository' cache ...............................................................................................................[done]
Retrieving repository 'Update Repository with updates from SUSE Linux Enterprise 15' metadata .............................................................[done]
Building repository 'Update Repository with updates from SUSE Linux Enterprise 15' cache ..................................................................[done]
Retrieving repository 'Update Repository (OSS)' metadata ..................................................................................................[done]
Building repository 'Update Repository (OSS)' cache .......................................................................................................[done]
Retrieving repository 'Update Repository (Non-Oss)' metadata ..............................................................................................[done]
Building repository 'Update Repository (Non-Oss)' cache ...................................................................................................[done]
Some of the repositories have not been refreshed because of an error.
(base) tom@mydesktop:~> 

All of these repos are invalid and have no 15.4 equivalent yet as seen above.

I stopped there and went to a different approach.

Second try, I deleted all of the above added repos from my repo list. Then I ran:
“sudo zypper --releasever=15.4 dup”. That command posed 2 choices as to whether I wanted to revert installed packages (those from the above added repos) for an openSUSE main repo package or leave as is. The list went on for probably 200 packages that had to be treated one-by-one before I gave up and cancelled it. I am now back to leap 15.3.

I am anticipating that the above added repos will eventually be updated for leap 15.4 and I will wait and upgrade when they are available.

Any other thoughts? thanks, tom kosvic

Hi
Just a case of bad timing… there have been a few infrastructure hiccups today forums database, mirrorcache etc…

Plus repo naming has changed, it’s just 15.4 now, you need to check each of those repositories…

e.g: https://download.opensuse.org/repositories/graphics/15.4/

So, I should find the new names for these additional repos in 15.4 and install these 15.4 url names into repo list and then do zypper dup???

thanks, tom kosvic

Hi
Yes, as long as you check they have all changed to just 15.4 (I suspect they should have).

I changed all the “additional” repos to “15.4” after checking that that name was ok. I installed the new names through Yast software and they all entered satisfactorily.

I ran from terminal zypper dup to 15.4. There are 65 problems indicated. An excerpt of the command is below:

(base) tom@mydesktop:~> sudo zypper --releasever=15.4 dup
Warning: Enforced setting: $releasever=15.4
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Ma
ke sure these repositories are compatible before you continue. See 'man zypper' for m
ore information about this command.
Computing distribution upgrade...
65 Problems:
Problem: problem with the installed libspatialindex6-1.9.3-lp153.11.3.x86_64
Problem: problem with the installed python-sip-common-4.19.19-1.52.x86_64
Problem: problem with the installed libbox2d2-2.4.1-lp153.15.1.x86_64
Problem: problem with the installed OpenSceneGraph-3.6.5-lp153.63.1.x86_64
Problem: problem with the installed OpenSceneGraph-plugins-3.6.5-lp153.63.1.x86_64
Problem: problem with the installed assimp-devel-5.2.4-lp153.38.1.x86_64
Problem: problem with the installed bleachbit-4.4.2-1.1.noarch
Problem: problem with the installed gstreamer-plugins-bad-1.16.3-pm153.3.6.5.x86_64
Problem: problem with the installed gstreamer-plugins-bad-lang-1.16.3-pm153.3.6.5.noa
rch
Problem: problem with the installed gstreamer-plugins-libav-1.16.2-pm153.2.6.x86_64
Problem: problem with the installed gstreamer-plugins-ugly-1.16.3-pm153.3.5.5.x86_64
Problem: problem with the installed gstreamer-plugins-ugly-lang-1.16.3-pm153.3.5.5.no
arch
Problem: problem with the installed jsoncpp-devel-1.9.5-lp153.2.5.x86_64
Problem: problem with the installed libCGAL_ImageIO14-5.2.2-lp153.68.1.x86_64
Problem: problem with the installed libCGAL_Qt5-14-5.2.2-lp153.68.1.x86_64
Problem: problem with the installed libOpenSceneGraph-devel-3.6.5-lp153.60.2.x86_64
Problem: problem with the installed libOpenSceneGraph158-3.6.5-lp153.60.2.x86_64
Problem: problem with the installed libOpenThreads-devel-3.6.5-lp153.63.1.x86_64
Problem: problem with the installed libOpenThreads21-3.6.5-lp153.63.1.x86_64
Problem: problem with the installed libSDL2-2_0-0-2.0.22-lp153.133.2.x86_64
Problem: problem with the installed libSDL2-devel-2.0.22-lp153.133.2.x86_64
Problem: problem with the installed libSDL2_gfx-1_0-0-1.0.4-lp153.22.4.x86_64
Problem: problem with the installed libSDL2_gfx-devel-1.0.4-lp153.22.4.x86_64
Problem: problem with the installed libSDL2_image-2_0-0-2.0.5-lp153.35.5.x86_64
Problem: problem with the installed libSDL2_image-devel-2.0.5-lp153.35.5.x86_64
Problem: problem with the installed libSDL2_net-2_0-0-2.0.1-lp153.14.5.x86_64
Problem: problem with the installed libSDL2_net-devel-2.0.1-lp153.14.5.x86_64
Problem: problem with the installed libSDL2_ttf-2_0-0-2.0.18-lp153.18.5.x86_64
Problem: problem with the installed libSDL2_ttf-devel-2.0.18-lp153.18.5.x86_64
Problem: problem with the installed libSDL_gfx15-2.0.26-lp153.36.4.x86_64
Problem: problem with the installed libSDL_image-1_2-0-1.2.12+hg695-lp153.34.4.x86_64
Problem: problem with the installed libSDL_mixer-1_2-0-1.2.12-lp153.57.2.x86_64
Problem: problem with the installed libSDL_net-1_2-0-1.2.8-lp153.344.4.x86_64
Problem: problem with the installed libSDL_sound-1_0-1-1.0.3-lp153.186.1.x86_64
Problem: problem with the installed libSDL_ttf-2_0-0-2.0.11-lp153.351.4.x86_64
Problem: problem with the installed libassimp5-5.2.4-lp153.38.1.x86_64
Problem: problem with the installed libctl5-4.5.0-lp153.23.16.x86_64
Problem: problem with the installed libgeos-3_9_1-3.9.1-lp153.43.1.x86_64
Problem: problem with the installed libgmic1-3.0.2-lp153.47.1.x86_64
Problem: problem with the installed libgnuastro14-0.16-lp153.20.1.x86_64
Problem: problem with the installed libgstadaptivedemux-1_0-0-1.16.3-pm153.3.6.5.x86_
64


For each problem package, I get the choices below.

Problem: problem with the installed libspatialindex6-1.9.3-lp153.11.3.x86_64
 Solution 1: install libspatialindex6-1.9.3-lp154.11.1.x86_64 from vendor obs://build
.opensuse.org/science
  replacing libspatialindex6-1.9.3-lp153.11.3.x86_64 from vendor obs://build.opensuse
.org/games
 Solution 2: keep obsolete libspatialindex6-1.9.3-lp153.11.3.x86_64

**Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): **1



Should I proceed and just select option 1 for each problem until the list is exhausted?

For now, I cancelled to avoid corrupting my system.

Please advise, thanks, tom kosvic

Hi
Yes, they are switching from the 15.3 to 15.4 versions, but just check each one :wink: I suspect you will be fine.

Many Problems should be gone if you let zypper resolve:

sudo zypper --releasever=15.4 dup --allow-vendor-change

But that requires that $releasever is in the proper place on each URL. I have my doubts that it is in the OP’s case. I read things like

Yes, as long as you check they have all changed to just 15.4 (I suspect they should have).

The repos where I have manually changed the urls from “openSUSE_Leap_15.3” to just “15.4” are hardcoded rather than having “releasever” in the name.

I think I have to change vendor individually on each of 65 rather than having zypper automatically do it through vendor change.

If not correct, let me know.

thanks, tom kosvic

Hi
Use the dry run feature :wink: also add -vvv so it will give more output…

I ran zypper dup and singlestepped through the 65 vendor changes but after that there additionally were many more changes removing files, adding files,etc that followed. I have no idea how many more changes there were. I cancelled. I will wait for a while to upgrade. I have software set up to view and analyze the first Webb images to be released july 12th. I will wait until after that so as to not lose what i have set up.

Where do I suggest that the repo maintainers keep the naming format for the additional 15.4 repos (like science,graphics, etc) and use “openSUSE_Leap_15.4” rather than just “15.4”. Changing the format does not let you easily use the “releasever” upgrade simplificatian process. You still need to make manual changes due to the different naming format. They could just make another copy with the old naming scheme.

thanks all, tom kosvic

Hi
That was a change decided on many moons ago, it will be staying like that going forward.

I would suggest that a note be added to https://en.opensuse.org/SDB:System_upgrade

in the paragraph on “extra repositories handing” explaining that for the extra repos the url name has to be changed in format and “releasever” cannot be used for those repos as discussed in the article.

Where would I submit that suggestion?

thanks, tom kosvic

Hi
Just log in and edit the wiki :wink:

Which will be wrong because names of those repositories are entirely up to maintainers of those repositories so whatever you write here will not apply universally and you will need to add more and more special cases. It already quite clearly tells you:

Whilst zypper dup can now better handle extra repositories during an upgrade, it may be desirable to manually check if replacement repositories for the new release are available, and to either adjust the URLs in /etc/zypp/repos.d before the upgrade, or to re-add the repositories after the upgrade
Anything more detailed will become obsolete pretty fast.

It is up to each maintainer. https://build.opensuse.org/project/repository_state/Apache/openSUSE_Leap_15.4

The link above points only to the apache repo and I see no immediately available reference regarding the naming of repos.

tom kosvic

Whilst zypper dup can now better handle extra repositories during an upgrade, it is necessary to manually check if replacement repositories for the new release are available, and to either adjust the URLs in /etc/zypp/repos.d before the upgrade, or to re-add the repositories after the upgrade. In particular, those using additional repos from https://download.opensuse.org/repositories/ should expect differing repo naming structure between openSUSE leap 15.3 and openSUSE leap 15.4 and will need to modify the URLs accordingly in order to successfully do an online upgrade.

But the default changed in the openSUSE build service:
> Repositories
> Add from a distribution
check openSUSE Leap 15.4
the result is /15.4/ directory.

Was this change really intentional ?
I’m asking because the information on the distribution type (Leap, …) is gone, and 15.4 is not very informative.

If it is a bug, then adding links until obs is fixed would make the update smoother
(it’s a lot easier to check that zypper --releasever=15.4 refresh works well than to look for the new location of repo)

If it’s deliberate, then so be it (I’m not arguing).