Upgrade 15.4 > 15.5: which URLs need to be edited

Hi, I have a question. This guide here says that Offline upgrade is safer than doing the live upgrade over internet. SDB:System upgrade to Leap 15.5 - openSUSE Wiki

However when I tried to follow the steps in offline upgrade I don’t understand what I need to do in this step.

Prepare repository list. If you are going to use your extra repositories, it is easier to change them to point to the new URL. Open a terminal, su - to root, change to directory /etc/zypp/repos.d, make a backup copy of the repo files there into a subdirectory, and edit them, for example running “sed -i ‘s/15.3/15.4/g’ /etc/zypp/repos.d/*.repo” (why not use ${releasever} you will see now). Finally, run “zypper clean” and “zypper ref” — the later will fail if some repo is not found at the new URL. When all the URLs are correct, you can continue. It is easier to do this now, than later during the upgrade with a limited line editor.

How do I know which URLs need to be edited and what do I edit them with?

Post your Repolist:
zypper lr -d

@Hadrian Hello and welcome to the openSUSE forums.

Better not to hang your new question at the end of an old thread.
Exposure to those who may be able to help you will be much better with a new thread with a good title.

This is split off.

As to your question, did you already have a look in the files located in /etc/zypp/repos.d?

This is what I get.

Looks fine to me. But for an upgrade to 15.5 it is easiest when you have $releasever instead of hard-coded 15.4 in the URLs.

That can not be seen from the above list, but you can see it when you look at

zypper releasever FOOBAR lr -d

There should be FOOBAR in all repos where there is 15.4 now.
When not then change that.
Mind that it could be that many or all of them are already having $releasever, that is fine then also for the future.
Mind also that this differs from what you try to follow: changing from 15.4 to 15.5. That is a bit old-fashioned now.
Mind also that you have some non-official URLs without a version, you should be sure that the packages you have from them are also OK for 15.5.

dante@localhost:~> zypper releasever FOOBAR lr -d
Unknown command 'releasever'
Type 'zypper help' to get a list of global options and commands.

You did not yet exchange 15.4 against releasever, thats why you get this error. The procedure is described in the article you posted in your inital post:
https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.5#5._Update_the_repos

Another question that I have is the step 3. in this guide. SDB:System upgrade to Leap 15.5 - openSUSE Wiki

When they say move /var/cache to separate subvolume do I create new folder inside like this /var/cache/oldcache and move all the contents of /var/cache into oldcache or do I move them somewhere outside of

/var/cache

?

This chapter is not applicable for Leap versions higher than 15.3

It just says Not applicable for Leap 15.3.
It doesn’t say higher than.

Is that what they mean?

Yes. I adjusted the wiki accordingly. This chapter was copied from the prior update article Leap 15.3->15.4 and wasn’t adjusted properly. Now it is correct.

1 Like

Thank you. You must be high up the tree if you have the power to edit the official wiki. :smiley:

Nope. Everybody with credentials for forum, bugzilla and so an can also write in the wiki. But it needs some knowledge to not write nonsense :wink:

OH, sorry, my error

zypper --releasever FOOBAR lr -d

I am not sure what all the posts above are discussing.

I make an error, I deeply apologize. That the OP does not see whhat should be corrected, I can understand. but all others should ne able to correct me I assume :frowning:

I went through all the steps but I when tried to run the upgrade I got all these warnings. I don’t understand what I did wrong.

“Could not resolve host…”
Are you sure you are connected to the internet in this runlevel at all?
Can you ping the servers?

ping opensuse.org
ping 195.135.221.140

Never mind. I disconnected my VPN and that for some reason stopped the OS from connecting to the repos. After I turned it back on it worked.

I can play videos and music too. So that’s a Success! Thanks for the help everyone.

1 Like