If a user wants to fix the issue posted above > for Rock/x86_64 in 2 steps:
Edit: For this to work you have to perform this on the .repo file you are actually using. If you are using more than one .repo file you may have problems that can only be resolved with a fresh install and reading some documentation.
First we move the repo file so we still have it available in case something goes wrong:
$ sudo mv /etc/yum.repos.d/openmandriva-rock-x86_64.repo /etc/yum.repos.d/openmandriva-rock-X86_64.repo.bak
then we reinstall the package distro-release-repos:
$ sudo rpm -Uvh --force http://ftp.tu-chemnitz.de/pub/linux/openmandriva/rock/repository/x86_64/main/release/distro-release-repos-4.2-1-omv4002.x86_64.rpm
Then use Software Repository Selector if you need to add unsupported, restricted, or non-free repos.
For Rock/znver1:
$ sudo mv /etc/yum.repos.d/openmandriva-rock-znver1.repo /etc/yum.repos.d/openmandriva-rock-znver1.repo.bak
$ sudo rpm -Uvh --force http://ftp.tu-chemnitz.de/pub/linux/openmandriva/rock/repository/znver1/main/release/distro-release-repos-4.2-1-omv4002.znver1.rpm
Post-edit: If user wants to be sure ALL the .repo files are the new ones this is shown here.