I have updated about 12 machines from 15.1 to 15.2 - 6 real and 6 virtualbox machines. Here are lessons learned.
first - make sure you are up to date
sudo zypper ref ; zypper up
reboot if any library need rebooting
second - for everyone check your repo’s to see if you have 15.1 or $releasever on you http lines.
if you have 15.1 replace all the 15.1 with $releasever
to see:
grep http /etc/zypp/repos.d/*
to fix
sudo sed -i ‘s/15.1/$releasever/g’ /etc/zypp/repos.d/*.repo
If your 15.1 machine is a guest in virtualbox you need to remove the old virtualbox entries
sudo zypper rm virtualbox*
now disable added repos like packman and adobe
to see the repo numbers
sudo zypper lr
to disable
sudo zypper mr -d # # (where # is the repo number from the list)
I got burned by packagekit running and refreshing the repos’s so we need to kill packagekitd
sudo pkill packagekitd
this next section works for wifi and ethernet - it is required for wifi
sudo zypper -vvv --releasever 15.2 ref
sudo zypper -vvv --releasever 15.2 dup --download only --allow-vendor-change
when this finishes you have to get into a console
in VirtualBox guests you use right-ctl+insert+f1 (or f2 or f3) it may be slow keep trying - it may need to switch to get root to type in - I went f3 then f1 to get root.
on real computers you use crtl+alt+f1 (of f2 or f3)
at login
root
your root password
init 3 (important to kill the gui or things can go wrong - don’t worry about any lines that follow this - press return/enter if garbage is on the prompt line after this)
zypper -vvv --releasever dup --allow-vendor-change
say yes to questions on license ctrl+c out and say yes
when done
if this is virtualbox guest
zypper rm virtual*
for all
zypper mr -e # # (this is the same as you disabled above)
reboot