Leap 15.2-1 -> 42.3-0 upgrade error

I’ve installed some packages from Leap 42.3.

Leap 15.2-1 -> 42.3-0 upgrade was offered after reboot and

zypper up

I’ve refused it, disabled 42.3-0 repo but conflict still persists:

zypper up
...
2 new packages will be installed :
  python2-keyring python2-SecretStorage

package will be removed :
  python-keyring

2 new packages to install, 1 to remove.


python2-SecretStorage-2.3.1-lp152.4.2.noarch.rpm                                         (1/2),  30,1 KB ( 71,5 KB decompressed)
python2-keyring-10.5.0-lp152.4.3.noarch.rpm                                              (2/2),  78,6 KB (208,2 KB decompressed)

Searching file conflicts : ..............................................................................................[error]
19 conflicts detected :

File /usr/lib/python2.7/site-packages/SecretStorage-2.3.1-py2.7.egg-info/PKG-INFO
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/SecretStorage-2.3.1-py2.7.egg-info/SOURCES.txt
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/SecretStorage-2.3.1-py2.7.egg-info/dependency_links.txt
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/SecretStorage-2.3.1-py2.7.egg-info/requires.txt
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/SecretStorage-2.3.1-py2.7.egg-info/top_level.txt
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/__init__.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/__init__.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/collection.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/collection.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/defines.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/defines.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/dhcrypto.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/dhcrypto.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/exceptions.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/exceptions.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/item.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/item.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/util.py
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File /usr/lib/python2.7/site-packages/secretstorage/util.pyc
  from install of
     python2-SecretStorage-2.3.1-lp152.4.2.noarch (Main Repository (OSS))
  conflicts with file from package
     python-SecretStorage-2.3.1-3.2.noarch (@System)

File conflicts occur when two packages try to install files of the same name but with different contents. If you continue, the conflicted files will be overwritten and you will lose previous content.
Continue ? [yes/no] (no): 


How to restore Leap 15.2 please ?

What’s the output from

zypper lr -d

I am particularly looking for whether the urls reference 15.2 or 42.3. Perhaps “$releasever” is now expanding to 42.3. If that’s what is happening, then that needs to be fixed first.

You could actually try:

zypper --releasever=15.2 dup -D

That’s just a dry run. It will tell you what it want to do to fix your system. Remove the “-D” if you really want to make the suggested changes.

BTW, you can show to advantage in which repos (and where in the URI string) $releasever is available:

zypper --releasever FOOBAR lr -d

Aside from what is posted above,
Your first statement that you installed packages from 42.3 probably is sufficiently self-explanatory…
The repositories you used to install those packages are likely still enabled and need to be disabled.

But before even that,
Maybe you should explain why you installed packages from 42.3.
Provide that info and maybe someone can suggest a proper installation instead and then you can remove everything related to 42.3.

TSU

zypper lr -d

 1 | NVIDIA                               | NVIDIA                                  | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.2                              | 
 2 | download.opensuse.org-non-oss        | Main Repository (NON-OSS)               | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/           | 
 3 | download.opensuse.org-non-oss_1      | Update Repository (No-Oss)             | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                      | 
 4 | download.opensuse.org-oss            | Main Repository (OSS)                   | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/               | 
 5 | download.opensuse.org-oss_1          | Main Update Repository                  | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                           | 
 6 | http-download.opensuse.org-9db95d87  | openSUSE:Leap:42.3                      | Yes    | (r ) Yes         | Yes        |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/               | 
 7 | http-download.opensuse.org-a2593d2f  | network:time                            | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/repositories/network:/time/openSUSE_Leap_15.2/ | 
 8 | https-download.opensuse.org-80b6df95 | benchmark                               | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | https://download.opensuse.org/repositories/benchmark/openSUSE_Leap_15.2/    | 
 9 | packman                              | packman                                 | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/                            | 
10 | repo-debug                           | openSUSE-Leap-15.2-Debug                | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/         | 
11 | repo-debug-non-oss                   | openSUSE-Leap-15.2-Debug-No-Oss        | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/     | 
12 | repo-debug-update                    | openSUSE-Leap-15.2-Update-Debug         | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss/                    | 
13 | repo-debug-update-non-oss            | openSUSE-Leap-15.2-Update-Debug-No-Oss | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                | 
14 | repo-source                          | openSUSE-Leap-15.2-Source               | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/        | 
15 | repo-source-non-oss                  | openSUSE-Leap-15.2-Source-No-Oss       | No    | ----             | ----       |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/    | 
16 | repo-update                          | openSUSE-Leap-15.2-Update               | Yes    | (r ) Yes         | Yes        |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/    


Thank this has solved the issue.

zypper --releasever FOOBAR lr -d
Warning: Enforced setting: $releasever=FOOBAR
#  | Alias                                | Name                                      | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                           | Service
---+--------------------------------------+-------------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------+--------
 1 | NVIDIA                               | NVIDIA                                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/FOOBAR                              | 
 2 | download.opensuse.org-non-oss        | Main Repository (NON-OSS)                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/FOOBAR/repo/non-oss/           | 
 3 | download.opensuse.org-non-oss_1      | Update Repository (Non-Oss)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/FOOBAR/non-oss/                      | 
 4 | download.opensuse.org-oss            | Main Repository (OSS)                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/FOOBAR/repo/oss/               | 
 5 | download.opensuse.org-oss_1          | Main Update Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/FOOBAR/oss                           | 
 6 | http-download.opensuse.org-9db95d87  | openSUSE:Leap:42.3                        | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/                 | 
 7 | http-download.opensuse.org-a2593d2f  | network:time                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/network:/time/openSUSE_Leap_FOOBAR/ | 
 8 | https-download.opensuse.org-80b6df95 | benchmark                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/benchmark/openSUSE_Leap_FOOBAR/    | 
 9 | packman                              | packman                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_FOOBAR/                            | 
10 | repo-debug                           | openSUSE-Leap-FOOBAR-Debug                | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/FOOBAR/repo/oss/         | 
11 | repo-debug-non-oss                   | openSUSE-Leap-FOOBAR-Debug-Non-Oss        | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/FOOBAR/repo/non-oss/     | 
12 | repo-debug-update                    | openSUSE-Leap-FOOBAR-Update-Debug         | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/FOOBAR/oss/                    | 
13 | repo-debug-update-non-oss            | openSUSE-Leap-FOOBAR-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/FOOBAR/non-oss/                | 
14 | repo-source                          | openSUSE-Leap-FOOBAR-Source               | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/FOOBAR/repo/oss/        | 
15 | repo-source-non-oss                  | openSUSE-Leap-FOOBAR-Source-Non-Oss       | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/FOOBAR/repo/non-oss/    | 
16 | repo-update                          | openSUSE-Leap-FOOBAR-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/FOOBAR/oss/                          | 



https://forums.opensuse.org/showthread.php/542110-Login-troubles?p=2992669#post2992669