Why is Main Repository’s URI included twice?
After a fresh install of Leap and Tumbleweed, I always have two entries: repo-oss, and openSUSE-Leap-15.2-1 both pointing to http://download.opensuse.org/distribution/leap/15.2/repo/oss (and http://download.opensuse.org/distribution/leap/15.2/repo/oss/ (note the final slash)).
This leads to gnome-software showing (installed) software listed twice.
I usually “fix” it by disabling one of them (here: 1 disabled, keeping 8 enabled):
chris@linux:~> zypper lr --uri
Repository priorities in effect: (See 'zypper lr -P' for details)
90 (raised priority) : 1 repository
99 (default priority) : 4 repositories
# | Alias | Name | Enabled | GPG Check | Refresh | URI
---+---------------------------+------------------------------------+---------+-----------+---------+-----------------------------------------------------------------------------
1 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | http://download.opensuse.org/distribution/leap/15.2/repo/oss
2 | packman-essentials | packman-essentials | Yes | (r ) Yes | Yes | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/Essentials
3 | repo-debug | Debug Repository | No | ---- | ---- | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
4 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
5 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | http://download.opensuse.org/debug/update/leap/15.2/oss/
6 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
7 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
8 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
9 | repo-source | Source Repository | No | ---- | ---- | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
10 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
11 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/15.2/oss
12 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | http://download.opensuse.org/update/leap/15.2/non-oss/
But why this behaviour?
Is this a bug? Feature? No good idea to disable the second repo (but then what about gnome-software showing software twice)?