I am at 15.5 fixing to upgrade to 15.6. But I think I need to fix the below error first. I get this when in yast2 I click on "Yast Software Repositories". Errors occurred while restoring the repository configuration. Error refreshing service openSUSE (dir:/usr/share/zypp/local/service/openSUSE): [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.5/repo/oss] Repository already exists. Regards Mark
Mark Hounschell composed on 2024-07-30 08:33 (UTC-0400):
I am at 15.5 fixing to upgrade to 15.6. But I think I need to fix the below error first. I get this when in yast2 I click on "Yast Software Repositories".
Errors occurred while restoring the repository configuration.
Error refreshing service openSUSE (dir:/usr/share/zypp/local/service/openSUSE): [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.5/repo/oss] Repository already exists.
What does zypper lr -d report? -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 7/30/24 08:58, Felix Miata wrote:
Mark Hounschell composed on 2024-07-30 08:33 (UTC-0400):
I am at 15.5 fixing to upgrade to 15.6. But I think I need to fix the below error first. I get this when in yast2 I click on "Yast Software Repositories". Errors occurred while restoring the repository configuration. Error refreshing service openSUSE (dir:/usr/share/zypp/local/service/openSUSE): [openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.5/repo/oss] Repository already exists. What does
zypper lr -d
report?
#zypper lr -d # | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service ---+----------------------------------------------+--------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------+--------- 1 | KDE3 | KDE3 | Yes | (r ) Yes | Yes | 99 | rpm-md | https://download.opensuse.org/repositories/KDE:/KDE3/15.5/ | 2 | NVIDIA:repo-non-free | repo-non-f-> | Yes | ( p) Yes | Yes | 99 | N/A | https://download.nvidia.com/opensuse/leap/15.5 | 3 | download.nvidia.com-$releasever | nVidia Gra-> | Yes | (r ) Yes | Yes | 99 | rpm-md | https://download.nvidia.com/opensuse/leap/15.5 | 4| ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Re-> | No | ---- | ---- | 99 | N/A | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/ | 5 | openSUSE:repo-non-oss | repo-non-o-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/distribution/leap/15.5/repo/non-oss | 6| openSUSE:repo-non-oss-debug | repo-non-o-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/debug/distribution/leap/15.5/repo/non-oss | 7| openSUSE:repo-openh264 | repo-openh-> | No | ---- | ---- | 99 | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap | openSUSE 8 | openSUSE:repo-oss | repo-oss (-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/distribution/leap/15.5/repo/oss | 9| openSUSE:repo-oss-debug | repo-oss-d-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/debug/distribution/leap/15.5/repo/oss | 10| openSUSE:repo-oss-source | repo-oss-s-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/source/distribution/leap/15.5/repo/oss | 11 | openSUSE:update-backports | update-bac-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/update/leap/15.5/backports | 12| openSUSE:update-backports-debug | update-bac-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/update/leap/15.5/backports_debug | 13 | openSUSE:update-non-oss | update-non-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/update/leap/15.5/non-oss | 14| openSUSE:update-non-oss-debug | update-non-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/debug/update/leap/15.5/non-oss | 15 | openSUSE:update-oss | update-oss-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/update/leap/15.5/oss | 16| openSUSE:update-oss-debug | update-oss-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/debug/update/leap/15.5/oss | 17 | openSUSE:update-sle | update-sle-> | Yes | ( p) Yes | Yes | 99 | N/A | http://cdn.opensuse.org/update/leap/15.5/sle | 18| openSUSE:update-sle-debug | update-sle-> | No | ---- | ---- | 99 | N/A | http://cdn.opensuse.org/debug/update/leap/15.5/sle | 19| opensuse-guide.org-openSUSE_Leap_$releasever| Libdvdcss -> | No | ---- | ---- | 99 | N/A | http://opensuse-guide.org/repo/openSUSE_Leap_15.5/ | Mark
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. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
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. Mark
On Tue, Jul 30, 2024 at 5:11 PM Mark Hounschell <dmarkh@cfl.rr.com> wrote:
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?
NVIDIA service gets installed automatically when NVIDIA hardware is present and the package that adds NVIDIA service has hard requirements for the package that installs openSUSE service. By default, those with NVIDIA get both, those without NVIDIA get none.
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
participants (4)
-
Andrei Borzenkov
-
Felix Miata
-
Mark Hounschell
-
Werner Flamme