Zypper up: Detected 2 file conflicts

sudo zypper up returns:

Detected 2 file conflicts:

File /sbin/init
  from install of
     systemd-254.21-150600.4.21.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
  conflicts with file
     /usr/sbin/init
  from install of
     systemd-254.21-150600.4.21.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)

File /sbin/service
  from install of
     aaa_base-84.87+git20180409.04c9dae-150300.10.23.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
  conflicts with file
     /usr/sbin/service
  from install of
     aaa_base-84.87+git20180409.04c9dae-150300.10.23.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)


Suggestions???

Potentially a corrupted rpm db. Do
sudo rpm --rebuilddb and see if the problem persists

Nope, that had no effect. Any other ideas?

Yeah, show your repos:
zypper lr -d

#  | Alias                       | Name                                                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                     | Service
---+-----------------------------+----------------------------------------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------+--------
 1 | MEGAsync                    | MEGAsync                                                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://mega.nz/linux/repo/openSUSE_Leap_15.6/                          | 
 2 | network_im_signal           | Signal Messaging Devel Project (15.6)                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/network:/im:/signal/15.6/    | 
 3 | openSUSE_Leap_15.6          | Mozilla openSUSE_Leap_15.6                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.6/  | 
 4 | repo-backports-debug-update | Update repository of openSUSE Backports (Debug)                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports_debug/          | 
 5 | repo-backports-update       | Update repository of openSUSE Backports                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                | 
 6 | repo-debug                  | Debug Repository                                                     | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.6/repo/oss/     | 
 7 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                           | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.6/repo/non-oss/ | 
 8 | repo-debug-update           | Update Repository (Debug)                                            | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.6/oss/                | 
 9 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.6/non-oss/            | 
10 | repo-non-oss                | Non-OSS Repository                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/       | 
11 | repo-openh264               | Open H.264 Codec (openSUSE Leap)                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap/                      | 
12 | repo-oss                    | Main Repository                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/oss/           | 
13 | repo-sle-debug-update       | Update repository with updates from SUSE Linux Enterprise 15 (Debug) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.6/sle/                | 
14 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                      | 
15 | repo-source                 | Source Repository                                                    | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.6/repo/oss/    | 
16 | repo-update                 | Main Update Repository                                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss                       | 
17 | repo-update-non-oss         | Update Repository (Non-Oss)                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/non-oss/                  | 

Oh, and I do notice that it seems to be trying to install those two file to new (different) locations:
from /sbin/init
to /usr/sbin/init
and
from /sbin/service
to /usr/sbin/service
…though I have no idea why.

Show

ls -ld /sbin /usr/sbin /sbin/init /usr/sbin/init /sbin/service /usr/sbin/service

drwxr-xr-x 2 root root 12288 Jan 3 09:15 /sbin
lrwxrwxrwx 1 root root 26 Dec 20 01:14 /sbin/init → …/usr/lib/systemd/systemd
lrwxrwxrwx 1 root root 17 Dec 9 00:08 /sbin/service → /usr/sbin/service
drwxr-xr-x 2 root root 20480 Jan 3 09:15 /usr/sbin
lrwxrwxrwx 1 root root 22 Dec 20 01:14 /usr/sbin/init → …/lib/systemd/systemd
-rwxr-xr-x 1 root root 5400 Dec 9 00:08 /usr/sbin/service

This file name is most certainly incorrect, but as you decided to not use preformatted text (although you do know how to use it) it is unclear whether it is mangled by the forum software or really something wrong on your system.

It does not explain error message about /sbin/service though.

Please post the full zypper command line and the complete output.

Seems normal on Leap 15.6 boxes (Tumbleweed differs). Froma Leap 15.6 VM:

test@leaptest:~> ls -ld /sbin /usr/sbin /sbin/init /usr/sbin/init /sbin/service /usr/sbin/service
drwxr-xr-x 1 root root  3788 Jan  5 14:14 /sbin
lrwxrwxrwx 1 root root    26 Dec 20 09:14 /sbin/init -> ../usr/lib/systemd/systemd
lrwxrwxrwx 1 root root    17 Dec  9 08:08 /sbin/service -> /usr/sbin/service
drwxr-xr-x 1 root root 12668 Jan  5 14:14 /usr/sbin
lrwxrwxrwx 1 root root    22 Dec 20 09:14 /usr/sbin/init -> ../lib/systemd/systemd
-rwxr-xr-x 1 root root  5400 Dec  9 08:08 /usr/sbin/service
test@leaptest:~> 

I gave up, and just let it change the location of these packages; I see no immediately obvious issues. It is not a necessary computer, it’s just a spare laptop for anyone who needs it around here–for a meeting or travel. If it goes haywire, I’ll just reinstall Leap & KDE.

Thanks everyone!!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.