I see installed packages from two repositories at once. This is fine ?

Installed Leap15.4 from the image openSUSE-Leap-15.4-NET-x86_64-Build243.2-Media.
I see installed packages from two repositories at once. This is fine ?

USR> uname -a
Linux localhost.localdomain 5.14.21-150400.22-default #1 SMP PREEMPT_DYNAMIC Wed May 11 06:57:18 UTC 2022 (49db222) x86_64 x86_64 x86_64 GNU/Linux


USR> LANG=C zypper se -si kernel
Loading repository data...
Reading installed packages...

S  | Name                        | Type    | Version               | Arch   | Repository
---+-----------------------------+---------+-----------------------+--------+-------------------------------------------------------------
i**+ | kernel-default              | package | 5.14.21-150400.22.1   | x86_64 | openSUSE-Leap-15.4-1
i+ | kernel-default              | package | 5.14.21-150400.22.1   | x86_64 | Main Repository**
**i+ | kernel-default-extra        | package | 5.14.21-150400.22.1   | x86_64 | openSUSE-Leap-15.4-1
i+ | kernel-default-extra        | package | 5.14.21-150400.22.1   | x86_64 | Main Repository
i+ | kernel-default-optional     | package | 5.14.21-150400.22.1   | x86_64 | openSUSE-Leap-15.4-1
i+ | kernel-default-optional     | package | 5.14.21-150400.22.1   | x86_64 | Main Repository**
i+ | kernel-firmware-all         | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
i+ | kernel-firmware-amdgpu      | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
i+ | kernel-firmware-ath10k      | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
.....
i+ | kernel-firmware-ueagle      | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
i+ | kernel-firmware-usb-network | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
**i+ | nfs-kernel-server           | package | 2.1.1-150100.10.24.1  | x86_64 | openSUSE-Leap-15.4-1
i+ | nfs-kernel-server           | package | 2.1.1-150100.10.24.1  | x86_64 | Main Repository
i+ | purge-kernels-service       | package | 0-8.3.1               | noarch | openSUSE-Leap-15.4-1
i+ | purge-kernels-service       | package | 0-8.3.1               | noarch | Main Repository**

Serg

Hi
Disable the openSUSE-Leap-15.4-1 which is likely your install media zypper lr -d will show.

IOW, you have repos enabled that duplicate URIs. URIs should be similar to:

#  | Enabled | GPG Check | URI
---+---------+-----------+----------------------------------------------------------------------------------------------
 1 | Yes     | ( p) Yes  | http://silk.apana.org.au/rpm-opensuse15-unstable-dev
 2 | Yes     | (r ) Yes  | http://opensuse-guide.org/repo/openSUSE_Leap_15.4/
 3 | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/
 4 | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.4/repo/oss/
 5 | Yes     | (r ) Yes  | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_15.4/Essentials
 6 | Yes     | (  ) No   | http://mirror.ppa.trinitydesktop.org/trinity/trinity/rpm/opensuse15.4/trinity-r14/RPMS/x86_64
 7 | Yes     | (  ) No   | http://mirror.ppa.trinitydesktop.org/trinity/trinity/rpm/opensuse15.4/trinity-r14/RPMS/noarch
 8 | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.4/oss/
 9 | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.4/backports/
10 | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.4/non-oss/
11 | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.4/sle/

with no duplicates.

Thank you !

My steps:

USR> zypper lr  | grep -i "openSUSE-Leap-15.4-1"
 **3** | openSUSE-Leap-15.4-1                  | openSUSE-Leap-15.4-1

USR> sudo zypper mr -d **3**
USR> LANG=C zypper se -si kernel
Loading repository data...
Reading installed packages...

S  | Name                        | Type    | Version               | Arch   | Repository
---+-----------------------------+---------+-----------------------+--------+-------------------------------------------------------------
i+ | kernel-default              | package | 5.14.21-150400.22.1   | x86_64 | Main Repository
i+ | kernel-default-extra        | package | 5.14.21-150400.22.1   | x86_64 | Main Repository
i+ | kernel-default-optional     | package | 5.14.21-150400.22.1   | x86_64 | Main Repository
i+ | kernel-firmware-all         | package | 20220509-150400.4.5.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
.....

My /etc/zypp/zypper.conf file is reconfigured to show from lr only what’s most important: repoListColumns = u. Without doing that, one needs to use the -d option to observe whether there are duplicate URIs, which usually produces obfuscatory line wrapped output when pasted into an email or forum post. You may instead examine each of the files in /etc/zypp/repos.d/ for duplicate URIs, but that process isn’t really sharable.

Columns to show in repository list printed by repos (lr) command by default.

**erlangen:~ #** zypper lr -E 
#  | Alias                | Enabled | GPG Check | Priority | URI 
---+----------------------+---------+-----------+----------+--------------------------------------------------------------------------------------------- 
 6 | Packman              | Yes     | (r ) Yes  |   90     | https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/ 
18 | non-oss              | Yes     | (r ) Yes  |   99     | https://mirrorcache-eu.opensuse.org/tumbleweed/repo/non-oss/ 
20 | oss                  | Yes     | (r ) Yes  |   99     | https://mirrorcache-eu.opensuse.org/tumbleweed/repo/oss/ 
27 | update               | Yes     | (r ) Yes  |   99     | https://mirrorcache-eu.opensuse.org/update/tumbleweed/ 
 8 | chrome               | Yes     | (r ) Yes  |  100     | https://dl.google.com/linux/chrome/rpm/stable/x86_64 
13 | home_kukuk_qmapshack | Yes     | (r ) Yes  |  100     | https://mirrorcache-eu.opensuse.org/repositories/home:/kukuk:/qmapshack/openSUSE_Tumbleweed/ 
14 | jalbum               | Yes     | (  ) No   |  100     | https://jalbum.net/download/software/yumrepo/ 
17 | myrepo               | Yes     | (  ) No   |  100     | dir:/home/karl/Downloads/myrepo 
**erlangen:~ #**