Problem Updating libopencv412

I have been having the same problem trying to do a “zypper dup” for over a week now. Since the problem hasn’t gone away, I had better report it.

When I do a “zypper dup” to update my system, I get the following message:

jc@localhost:~$ sudo zypper dup
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

Problem: 1: problem with the installed libopencv412-4.12.0-3.2.x86_64
 Solution 1: install libopencv412-4.12.0-3.12.x86_64 from vendor obs://build.opensuse.org/science
  replacing libopencv412-4.12.0-3.2.x86_64 from vendor openSUSE
 Solution 2: keep obsolete libopencv412-4.12.0-3.2.x86_64

Choose from above solutions by number or cancel [1/2/c/d/?] (c): 1

Resolving dependencies...
Computing distribution upgrade...

The following package is going to be upgraded:
  libopencv412

The following package is going to change vendor:
  libopencv412  openSUSE -> obs://build.opensuse.org/science

1 package to upgrade, 1 to change vendor.

Package download size:     9.4 MiB

Package install size change:
            |      27.5 MiB  required by packages that will be installed
       0 B  |  -   27.5 MiB  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Preloading: libopencv412-4.12.0-3.12.x86_64.rpm [Error: "The requested URL returned error: 404", trying next mirror.]
Preloading: libopencv412-4.12.0-3.12.x86_64.rpm [Error: "The requested URL returned error: 404", trying next mirror.]
Preloading: libopencv412-4.12.0-3.12.x86_64.rpm [The requested URL returned error: 404]
Preload finished. [files missing] ............................................................................................................[done]
Installation has completed with error.
 
jc@localhost:~$ 

Clearly, something seems to be wrong with libopencv412.

If I keep the old version of libopencv412, zypper works successfully.

jc@localhost:~$ sudo zypper dup
[sudo] password for jc: 
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

Problem: 1: problem with the installed libopencv412-4.12.0-3.2.x86_64
 Solution 1: install libopencv412-4.12.0-3.12.x86_64 from vendor obs://build.opensuse.org/science
  replacing libopencv412-4.12.0-3.2.x86_64 from vendor openSUSE
 Solution 2: keep obsolete libopencv412-4.12.0-3.2.x86_64

Choose from above solutions by number or cancel [1/2/c/d/?] (c): 2

Resolving dependencies...
Computing distribution upgrade...

The following item is locked and will not be changed by any action:
 Installed:
  libopencv412
Nothing to do.

I don’t know what to do about this error preventing my upgrade. Any thoughts?

@featherfoot it’s all about rebuild numbers… The last digit…

Both are the same version 4.12.0 and release 3 (three changes), the OSS has been rebuilt twice “.2” and the development repository one has rebuilt twelve (.12) times…

This happens in development repositories, so when it hits openSUSE Factory it gets set to “.0” then once into the Tumbleweed snapshot there could be numerous rebuilds before the snapshot is released…

Likewise the joys of using non-standard and/or development repositories. Do you need that development repository, or was it just used temporarily before the 4.12.0 version was released?

I didn’t know that I had a development directory in my path. Can you suggest how to remove it?

@featherfoot can you show the output from zypper lr -d.

Sorry for being lazy. I eventually googbled how to delete depositories. The list repositories command sugggeste it should be the science repository. I removed that and the error message went away, It installed without complaint.

I am surprised that the science repo would be a development directory. I wonder whether this was intentional.

@featherfoot there are only four default repositories for Tumbleweed, oss, non-oss, openh264 and update. I’ve excluded the source and debug repos for simplicity as they are not enabled by default.

If it doesn’t have “home:” in the URL it’s a development/isv repository, if it has “home:” then it’s an openSUSE Build Service users $HOME repository both the later should be avoided as it will cause issues like you have observed. Using the likes of 1-click or opi (which is slated for removal due to license issues) creates problems like this.

Likewise if using Packman, then they have a Mailing list if your having issues, technically not supported either…