Zypper update / Repository already exists

Hey,

I came back home where I got my PC, after about a week or so. (Last time I updated everything with sudo zypper update).
So I got home and just like always, logged in & updated through ‘konsole’ with ‘sudo zypper update’.
However, this time it started giving me some gpg problems, something about a new key which was unverified or something. It was probably dvd repository of Martin Schlander. At least that name came when I thought about the problem.

Anyway, I started searching for the guy and eventually decided to not allow it. Searched google and opensuse forums for a similar thing. Eventually came up to a forum post, it said to remove “htt*p://cdn.opensuse…” and instead have it “https://” so I did that without anything happening.

Couldn’t update. Then another forum post said that cdn is only used for testing, so I changed it to “htt*p://download” (Because https:// didn’t work). But it didn’t work just like it didn’t work with https.

This is the error I keep getting.
Adding repository ‘repo-oss (15.5)’ …[error]
Unexpected exception.
[openSUSE:repo-oss|http://cdn.opensuse.org/distribution/leap/15.5/repo/oss] Repository already exists.
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.

I’ve tried ‘sudo zypper clean -a’ & ‘ref’ but still keeps saying the same "error.

‘zypper lr -d’ -output is below

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±------------------------------±----------------------------±--------±----------±--------±---------±-------±-----------------------------------------------------------------------±-------
1 | NVIDIA:repo-non-free | repo-non-free (15.5) | Yes | (r ) Yes | Yes | 99 | rpm-md | htt*ps://download.nvidia.com/opensuse/leap/15.5 | NVIDIA
2 | brave-browser | Brave Browser | Yes | (r ) Yes | Yes | 99 | rpm-md | htt
ps://brave-browser-rpm-release.s3.brave.com/x86_64 |
3 | openSUSE:repo-non-oss | repo-non-oss (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/distribution/leap/15.5/repo/non-oss/ |
4 | openSUSE:repo-non-oss-debug | repo-non-oss-debug (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss |
5 | openSUSE:repo-openh264 | repo-openh264 (15.5) | Yes | (r ) Yes | Yes | 99 | rpm-md | htt
p://codecs.opensuse.org/openh264/openSUSE_Leap |
6 | openSUSE:repo-oss | repo-oss (15.5) | Yes | (r ) Yes | Yes | 99 | rpm-md | htt
p://download.opensuse.org/distribution/leap/15.5/repo/oss/ |
7 | openSUSE:repo-oss-debug | repo-oss-debug (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/ |
8 | openSUSE:repo-oss-source | repo-oss-source (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/source/distribution/leap/15.5/repo/oss/ |
9 | openSUSE:update-non-oss | update-non-oss (15.5) | Yes | (r ) Yes | Yes | 99 | rpm-md | htt
p://download.opensuse.org/update/leap/15.5/non-oss |
10 | openSUSE:update-non-oss-debug | update-non-oss-debug (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/debug/update/leap/15.5/non-oss |
11 | openSUSE:update-oss | update-oss (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/update/leap/15.5/oss/ |
12 | openSUSE:update-oss-debug | update-oss-debug (15.5) | No | ---- | ---- | 99 | N/A | htt
p://download.opensuse.org/debug/update/leap/15.5/oss |
13 | packman | packman | Yes | (r ) Yes | Yes | 99 | rpm-md | htt
p://ftp.gwdg.*de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/ | ’

Note: I have followed instructions always and only today I got this problem. (The URI used to be htt*p://cdn.opensuse.org but due to the forum posts, I tried these instead (e.g. http://download.opensuse.*org); Same problem even if I try to change it back to how it was.)

Ps. I’m no Linux pro, I’ve just been using it for the past few years. Have had a lot of problems, usually been able to fix problems. If not, I’ve just reinstalled the OS. Last time I got a problem with wifi & Mullvad VPN as well as wifi without Mullvad on Tumbleweed but couldn’t get it fixed even without reinstalling OS so I got Leap instead. Leap had the same problem but eventually got things working, after like a couple of weeks, lol. Anyway I’m no pro but I know how to follow instructions.

NOTE: I added *(stars) to the url address due to not being allowed to have more than 2 links as a new user.

Your repo list is a bloody mess. Important repos are missing (SLE update, backports), other ones are disabled (non-OSS, update-OSS)…

Remove all openSUSE repos and start fresh
https://en.opensuse.org/Package_repositories

2 Likes

Hello and welcome to the openSUSE forums.

Please use the </> (Preformatted text) button for your computer listings. This to keep that column layout the same as you see them on your terminal. Also better not type

but copy paste that line together with the output. We see then exactly what you did and not what you think you did :wink: .

Aas an example: the first few lines of such a list on a system here would look like

boven:~ # zypper lr -d
#  | Alias                  | Name                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+------------------------+-------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | backports-debug-update | Updates for openSUSE Leap debuginfo from openSUSE Backports | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/update/leap/15.5/backports_debug/           |

I hope you see the difference and that is much easier for everyone to interpret.

The list of necessary Leap repos (also note the “enabled” column…)

1 Like

I did try with all of them, including SLE & Backports but still got the same problem. And I did try with removing openSUSE repos in that one github post but still got the same problem. I’ll try however, once more but this time through Yast2

jari@jari:~> zypper lr -d
#  | Alias                         | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                    | Service
---+-------------------------------+-----------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------+--------
 1 | NVIDIA:repo-non-free          | repo-non-free (15.5)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.5                         | NVIDIA
 2 | brave-browser                 | Brave Browser               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                  | 
 3 | openSUSE:repo-non-oss         | repo-non-oss (15.5)         | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/      | 
 4 | openSUSE:repo-non-oss-debug   | repo-non-oss-debug (15.5)   | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss | 
 5 | openSUSE:repo-openh264        | repo-openh264 (15.5)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap                      | 
 6 | openSUSE:repo-oss             | repo-oss (15.5)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/oss/          | 
 7 | openSUSE:repo-oss-debug       | repo-oss-debug (15.5)       | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/    | 
 8 | openSUSE:repo-oss-source      | repo-oss-source (15.5)      | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.5/repo/oss/   | 
 9 | openSUSE:update-non-oss       | update-non-oss (15.5)       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/non-oss                  | 
10 | openSUSE:update-non-oss-debug | update-non-oss-debug (15.5) | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/non-oss            | 
11 | openSUSE:update-oss           | update-oss (15.5)           | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/update/leap/15.5/oss/                     | 
12 | openSUSE:update-oss-debug     | update-oss-debug (15.5)     | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/oss                | 
13 | packman                       | packman                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/     | 
jari@jari:~>

Did you want to see my username?

Sorry, preformatted text is for user hcvv

Go into YaST software and remove the package openSUSE-repos-Leap . Taboo it so that it can’t get installed…

(As the repos are defined by this package and you edited the URLs manually afterwards, you created the error message yourself.)

Then start adding the missing repos.
Enable repo #3 and #11
Additionally set repo #13 priority to 90.

After you have done so, post again the output of zypper lr -d so that we can doublecheck and confirm.

1 Like

This way of posting your list is fine.


Like so? Also how does one taboo an install?

I enabled repos #3 & #11.

No! Like earlier.

After you have accepted the deinstallation, search again for this package, right-click → Taboo (never install) → accept

1 Like

Well, tabooing the openSUSE-repos-Leap would make the problem go away with the following output:

jari@jari:~> sudo zypper update
[sudo] password for root: 
Loading repository data...
Reading installed packages...

The following item is locked and will not be changed by any action:
 Available:
  openSUSE-repos-Leap

The following 32 package updates will NOT be installed:
  libass9 libfdk-aac2 libgbm1 libheif1 libquicktime0 libvdpau_nouveau libvlc5 libvlccore9 Mesa Mesa-dri Mesa-gallium Mesa-KHR-devel Mesa-libEGL1 Mesa-libEGL-devel Mesa-libGL1 Mesa-libglapi0 Mesa-libGL-devel
  Mesa-libva pipewire-lang pipewire-modules-0_3 pipewire-spa-plugins-0_2 pipewire-spa-tools pipewire-tools python311-yt-dlp vlc vlc-codec-gstreamer vlc-lang vlc-noX vlc-qt vlc-vdpau yt-dlp
  yt-dlp-bash-completion

The following 14 packages are going to be upgraded:
  bluez bluez-cups dracut dracut-mkinitrd-deprecated dwz libbluetooth3 libphonenumber8 python3-rpm rpm rpm-build xen-libs xfsprogs xterm xterm-bin

The following 2 NEW packages are going to be installed:
  libabsl2308_0_0 libprotobuf25_1_0

14 packages to upgrade, 2 new.
Overall download size: 8.9 MiB. Already cached: 0 B. After the operation, additional 4.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

& ‘lr -d’

jari@jari:~> sudo zypper lr -d
#  | Alias                         | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                    | Service
---+-------------------------------+-----------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------+--------
 1 | Backports_Debug-Update        | Backports Debug-Update      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports_debug/         | 
 2 | Backports_Update              | Backports Update            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports/               | 
 3 | SLE_Debug-Update              | SLE Debug-Update            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.5/sle/               | 
 4 | SLE_Update                    | SLE Update                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/sle/                     | 
 5 | brave-browser                 | Brave Browser               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                  | 
 6 | openSUSE:repo-non-oss         | repo-non-oss (15.5)         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/      | 
 7 | openSUSE:repo-non-oss-debug   | repo-non-oss-debug (15.5)   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss | 
 8 | openSUSE:repo-openh264        | repo-openh264 (15.5)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap                      | 
 9 | openSUSE:repo-oss             | repo-oss (15.5)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/oss/          | 
10 | openSUSE:repo-oss-debug       | repo-oss-debug (15.5)       | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/    | 
11 | openSUSE:repo-oss-source      | repo-oss-source (15.5)      | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.5/repo/oss/   | 
12 | openSUSE:update-non-oss       | update-non-oss (15.5)       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/non-oss                  | 
13 | openSUSE:update-non-oss-debug | update-non-oss-debug (15.5) | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/non-oss            | 
14 | openSUSE:update-oss           | update-oss (15.5)           | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/update/leap/15.5/oss/                     | 
15 | packman                       | packman                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/     |

Also, I’m not sure how to set the priority. But this alone still doesn’t make me believe the problem is fixed. As normally after a week, a bunch of things are updated, but now only a few things. Idk, maybe the go to is reinstalling the whole thing once again, lol.

Repo #3 and #7 needs to be disabled
Repo #14 needs to be enabled (this is the OSS update repository!)

YaST → Software repositories
OR
YaST software ->Configuration → Repositories
Mark the Packman repository and set the priority to 90 (this will set it to a higher priority) → Apply/Accept

Additionally if you have a Nvidia card and need the Nvidia repoitory for drivers, you should add it back. If you don’t need it, don’t add it back.

After that a zypper up will pull some updates…and you should be fine.

1 Like

jari@jari:~> sudo zypper up

Loading repository data...
Reading installed packages...

The following item is locked and will not be changed by any action:
 Available:
  openSUSE-repos-Leap

The following 32 package updates will NOT be installed:
  libass9 libfdk-aac2 libgbm1 libheif1 libquicktime0 libvdpau_nouveau libvlc5 libvlccore9 Mesa Mesa-dri Mesa-gallium Mesa-KHR-devel Mesa-libEGL1 Mesa-libEGL-devel Mesa-libGL1 Mesa-libglapi0 Mesa-libGL-devel
  Mesa-libva pipewire-lang pipewire-modules-0_3 pipewire-spa-plugins-0_2 pipewire-spa-tools pipewire-tools python311-yt-dlp vlc vlc-codec-gstreamer vlc-lang vlc-noX vlc-qt vlc-vdpau yt-dlp
  yt-dlp-bash-completion

The following 14 packages are going to be upgraded:
  bluez bluez-cups dracut dracut-mkinitrd-deprecated dwz libbluetooth3 libphonenumber8 python3-rpm rpm rpm-build xen-libs xfsprogs xterm xterm-bin

The following 2 NEW packages are going to be installed:
  libabsl2308_0_0 libprotobuf25_1_0

14 packages to upgrade, 2 new.
Overall download size: 8.9 MiB. Already cached: 0 B. After the operation, additional 4.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

‘zypper lr -d’

jari@jari:~> sudo zypper lr -d
[sudo] password for root: 
#  | Alias                         | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                    | Service
---+-------------------------------+-----------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------+--------
 1 | Backports_Debug-Update        | Backports Debug-Update      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports_debug/         | 
 2 | Backports_Update              | Backports Update            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports/               | 
 3 | SLE_Debug-Update              | SLE Debug-Update            | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.5/sle/               | 
 4 | SLE_Update                    | SLE Update                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/sle/                     | 
 5 | brave-browser                 | Brave Browser               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                  | 
 6 | openSUSE:repo-non-oss         | repo-non-oss (15.5)         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/      | 
 7 | openSUSE:repo-non-oss-debug   | repo-non-oss-debug (15.5)   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss | 
 8 | openSUSE:repo-openh264        | repo-openh264 (15.5)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap                      | 
 9 | openSUSE:repo-oss             | repo-oss (15.5)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/oss/          | 
10 | openSUSE:repo-oss-debug       | repo-oss-debug (15.5)       | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/    | 
11 | openSUSE:repo-oss-source      | repo-oss-source (15.5)      | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.5/repo/oss/   | 
12 | openSUSE:update-non-oss       | update-non-oss (15.5)       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/non-oss                  | 
13 | openSUSE:update-non-oss-debug | update-non-oss-debug (15.5) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.5/non-oss            | 
14 | openSUSE:update-oss           | update-oss (15.5)           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/oss/                     | 
15 | packman                       | packman                     | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/     |

Ok, i overlooked that you also need to disable repo #1
(debug and source repos needs only to be enabled for expert users which do troubleshooting/developmnet).

The reason why the 32 packages don’t get installed is, that you did not follow the SDB how to switch properly to the Packman repo. You forgot to perform the vendor switch.

sudo zypper ref
sudo zypper dist-upgrade --from packman --allow-vendor-change

https://en.opensuse.org/SDB:Installing_codecs_from_Packman_repositories

1 Like

Hey hui,

The following 32 packages are going to change vendor:
  libass9                   SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libfdk-aac2               SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libgbm1                   SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libheif1                  SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libquicktime0             SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libvdpau_nouveau          SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  libvlc5                   openSUSE -> http://packman.links2linux.de
  libvlccore9               openSUSE -> http://packman.links2linux.de
  Mesa                      SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-dri                  SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-gallium              SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-KHR-devel            SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libEGL1              SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libEGL-devel         SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libGL1               SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libglapi0            SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libGL-devel          SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  Mesa-libva                SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  pipewire-lang             SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  pipewire-modules-0_3      SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  pipewire-spa-plugins-0_2  SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  pipewire-spa-tools        SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  pipewire-tools            SUSE LLC <https://www.suse.com/> -> http://packman.links2linux.de
  python311-yt-dlp          openSUSE -> http://packman.links2linux.de
  vlc                       openSUSE -> http://packman.links2linux.de
  vlc-codec-gstreamer       openSUSE -> http://packman.links2linux.de
  vlc-lang                  openSUSE -> http://packman.links2linux.de
  vlc-noX                   openSUSE -> http://packman.links2linux.de
  vlc-qt                    openSUSE -> http://packman.links2linux.de
  vlc-vdpau                 openSUSE -> http://packman.links2linux.de
  yt-dlp                    openSUSE -> http://packman.links2linux.de
  yt-dlp-bash-completion    openSUSE -> http://packman.links2linux.de

The following 4 NEW packages are going to be installed:
  libabsl2308_0_0 libcamera0_0_4 libcamera-base0_0_4 libprotobuf-lite25_1_0

32 packages to upgrade, 1 to downgrade, 4 new, 32  to change vendor.
Overall download size: 44.2 MiB. Already cached: 0 B. After the operation, additional 5.6 MiB will be used.

1 didn’t get updated, but instead got downgraded. I’m not sure how to check exactly which package got downgraded. I’ve been thinking why these packages won’t get updated, so I’d like to thank you!