Just upgraded a VM from 15.2 to 15.3.
Following on from a previous thread I edited the repso to use $releasever instead of being hardcoded.
The upgrade went like a charm (mostly!) with “zypper --releasever=15.3 dup --allow-vendor-change”.
However after that I kept getting errors when executing commands like “zypper up”.
Progress:~ # zypper up
Warning: The /etc/products.d/baseproduct symlink is dangling or missing!
The link must point to your core products .prod file in /etc/products.d.
Retrieving repository 'Main Repository (NON-OSS)' metadata ..............................................................[done]
Building repository 'Main Repository (NON-OSS)' cache ...................................................................[done]
Retrieving repository 'Main Repository (OSS)' metadata ..................................................................[done]
Building repository 'Main Repository (OSS)' cache .......................................................................[done]
Retrieving repository 'packman' metadata ...............................................................................[error]
Repository 'packman' is invalid.
[packman|http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_/] Valid metadata not found at specified URL
History:
- [packman|http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_/] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'packman' because of the above error.
Retrieving repository 'openSUSE-Leap--Update' metadata ..................................................................[done]
Building repository 'openSUSE-Leap--Update' cache .......................................................................[done]
Retrieving repository 'openSUSE-Leap--Update-Non-Oss' metadata ..........................................................[done]
Building repository 'openSUSE-Leap--Update-Non-Oss' cache ...............................................................[done]
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
Nothing to do.
Progress:~ #
It looked like the $releasever substitution was not happening. Not sure how it found any repositories but maybe there is a non release specific default.
Traced it down to the /etc/products.d/baseproduct symlink being broken. OK, I actually read the first warning!
Progress:/etc/products.d # ls -la
total 28
drwxr-xr-x 2 root root 4096 Mar 5 17:52 .
drwxr-xr-x 163 root root 12288 Mar 7 11:33 ..
-rw-r--r-- 1 root root 1874 Mar 1 11:35 Leap-Addon-NonOss.prod
-rw-r--r-- 1 root root 4301 Mar 1 11:35 Leap.prod
lrwxrwxrwx 1 root root 13 Jul 30 2017 baseproduct -> openSUSE.prod
Progress:/etc/products.d #
There is no file openSUSE.prod. Fixed it and tested it as follows.
Progress:/etc/products.d # rm baseproduct
Progress:/etc/products.d # ln -s Leap.prod baseproduct
Progress:/etc/products.d # ls -al
total 28
drwxr-xr-x 2 root root 4096 Mar 7 11:48 .
drwxr-xr-x 163 root root 12288 Mar 7 11:33 ..
-rw-r--r-- 1 root root 1874 Mar 1 11:35 Leap-Addon-NonOss.prod
-rw-r--r-- 1 root root 4301 Mar 1 11:35 Leap.prod
lrwxrwxrwx 1 root root 9 Mar 7 11:48 baseproduct -> Leap.prod
Progress:/etc/products.d # zypper up
Retrieving repository 'Main Repository (NON-OSS)' metadata ..............................................................[done]
Building repository 'Main Repository (NON-OSS)' cache ...................................................................[done]
Retrieving repository 'Main Repository (OSS)' metadata ..................................................................[done]
Building repository 'Main Repository (OSS)' cache .......................................................................[done]
Retrieving repository 'openSUSE-Leap-15.3-Update' metadata ..............................................................[done]
Building repository 'openSUSE-Leap-15.3-Update' cache ...................................................................[done]
Retrieving repository 'openSUSE-Leap-15.3-Update-Non-Oss' metadata ......................................................[done]
Building repository 'openSUSE-Leap-15.3-Update-Non-Oss' cache ...........................................................[done]
Loading repository data...
Reading installed packages...
Nothing to do.
Are others encountering this too?