Am 30.07.24 um 16:11 schrieb Mark Hounschell:
On 7/30/24 09:30, Felix Miata wrote:
Because you have an NVidia GPU, the system "helpfully" added two repos:
openSUSE-repos-Leap openSUSE-repos-Leap-NVIDIA
This created a repo service that caused duplication of repos with identical URLs. If you desire to keep using this service, you need to remove the duplicates. If you would rather keep things as they used to be, remove and then lock those two packages.
AMD and Intel GPU users don't get either added automatically, thus manage repos the old-fashioned way - I think. It may be that all new installations get openSUSE-repos-Leap automatically, but it isn't required.
If like me you don't like the long-winded default repo names and change yours to more concise names, then you need to use the traditional manual management method.
So what does openSUSE (dir:/usr/share/zypp/local/service/openSUSE): [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.5/repo/oss] have to do with nvidia? I now don't have duplicate nvidia repos but still get that error.
Nothing. Please look at the output of "ls -l /etc/zypp/services.d/*". If there are 2 files, named /etc/zypp/services.d/NVIDIA.service and /etc/zypp/services.d/openSUSE.service, the error should not occur. So I assume that there are more files. Try to find the package these additional files belong to, using a command like "rpm -qf /etc/zypp/services.d/my_openSUSE.service" and remove this package. If the file does not belong to a package, you can disable this additional service by issuing "zypper rs my_openSUSE", where "rs" is short for "removeservice". When only those two services are left, you should be free from the errors you mentioned. Those service files re-generate the repositories that will be used, every time you issue "zypper ref -s" (or zypper refreshes the services automatically). So it is important to have the correct number and content of files in /etc/zypp/services.d. After the "zypper ref -s" has been issued at least once, those service files also contain the names of the repositories they create. This info is found (in your example) in file /usr/share/zypp/local/service/openSUSE/repo/repoindex.xml. Took me a while to figure this thing with services and repos, but I got it running at the office now ;) Werner