Main Repository Twice in List of Repos

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)?

I have no idea why you have #1 and #8. Never seen this (well I have seen people with repos twice, but never reported as this being the normal case forthe main repo right after installation). I do not know what others say, but it does not seem a normal to me.

I would remove the first one.

I do not know why Gnome does not see that they are the same. As I said, I have seen people with double repos, but they never reported that YaST > Software shows packages twice then.
You could check what YaST > Software makes out of your case.

I have no experience whatsoever with Gnome software (I assume it is based on PackageKit), thus I can not say if this is worth a bug report and when yes against Gnome or PackageKit.

It probably counts as a feature.

You used the NET installer. Or maybe you use live media, which include the NET installer.

The installer needs a repo to use during the install, and the name “openSUSE-Leap-15.2-1” is what it uses for that starting repo. If you use the DVD installer, then that repo will be the DVD (or the USB if you write the iso to a USB device). If you use the NET installer, then that starting repo is the main repo.

The other repos are added as part of the install.

And yes, you should disable or remove repo #1 in your list.

Ah, I now understand. Basically installation should disable it at the end of installation. But I know that is sometimes not done with the DVD also.