Project

General

Profile

Bug #1658

[libvirt-openrc]: can't install due to conflicting packages

tatsumaru - over 3 years ago - . Updated 3 days ago.

Status:
confirmed
Priority:
bug
Assignee:
-
% Done:

0%


Description

Tried to install libvirt-openrc so I can run libvirt from init.
Got "conflicting packages" error:

resolving dependencies...
looking for conflicting packages...

Packages (1) libvirt-openrc-20170927-1

Total Download Size:   0.01 MiB
Total Installed Size:  0.03 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libvirt-openrc-20170927-1-any      6.2 KiB  0.00B/s 00:00 [###############################] 100%
(1/1) checking keys in keyring                             [###############################] 100%
(1/1) checking package integrity                           [###############################] 100%
(1/1) loading package files                                [###############################] 100%
(1/1) checking for file conflicts                          [###############################] 100%
error: failed to commit transaction (conflicting files)
libvirt-openrc: /etc/conf.d/libvirt-guests exists in filesystem
libvirt-openrc: /etc/conf.d/libvirtd exists in filesystem
Errors occurred, no packages were upgraded.

History

#1

Updated by bill-auger about 3 years ago

  • Subject changed from libvirt-openrc can't install due to conflicting packages to [libvirt-openrc]: can't install due to conflicting packages
#2

Updated by libreuser almost 3 years ago

The same error here.

#3

Updated by Time4Tea about 1 year ago

Hi, I am getting a similar conflict between libvirt-openrc and libvirt:

$ sudo pacman -S libvirt-openrc
resolving dependencies...
looking for conflicting packages...

Packages (1) libvirt-openrc-20170927-1

Total Installed Size:  0.03 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [########################] 100%
(1/1) checking package integrity                   [########################] 100%
(1/1) loading package files                        [########################] 100%
(1/1) checking for file conflicts                  [########################] 100%
error: failed to commit transaction (conflicting files)
libvirt-openrc: /etc/conf.d/libvirt-guests exists in filesystem (owned by libvirt)
libvirt-openrc: /etc/conf.d/libvirtd exists in filesystem (owned by libvirt)
Errors occurred, no packages were upgraded.

Is anybody looking at a resolution to this? Is there any temporary workaround?

#4

Updated by freemor about 1 year ago

You can work around it for the time being with pacman's --overwrite option.
Tho the package deos need to be corrected

#5

Updated by Time4Tea about 1 year ago

freemor ok, thanks, I will give that a try.

#6

Updated by bill-auger 3 days ago

  • Status changed from open to confirmed

this BR was apparently forgotten - the bug still exists - openrc users can not use tools such as virt-manager

building upon freemor's suggestion, reveals more problems with this package

# pacman -S libvirt-openrc --overwrite /etc/conf.d/libvirtd --overwrite /etc/conf.d/libvirt-guests

# rc-service libvirtd start
 * Caching service dependencies ...
Service `libvirtd' needs non existent service `firewalld'
 * ERROR: libvirtd needs service(s) firewalld

so 'libvirt-openrc' will also need to depend on 'firewalld-openrc' - however, the firewalld service also fails to start

# pacman -S firewalld-openrc

# rc-service libvirtd start
 * Caching service dependencies ...
 * Starting virtlogd ...
 * Starting firewalld ...
 * start-stop-daemon: /usr/usr/bin/firewalld does not exist
 * Failed to start firewalld
 * ERROR: firewalld failed to start
 * ERROR: cannot start libvirtd as firewalld would not start

i seem to remember some other packages which had that "/usr/usr/bin/" typo

Also available in: Atom PDF