You are not logged in.

#1 2025-04-13 07:49:23

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 718

Cannot install/update apparmor.d-git because of conflicts.

Since there is no "force upgrade" option in Pacman, how to resolve this

LC_ALL=C.UTF-8 sudo pacman -S apparmor.d-git
resolving dependencies...
looking for conflicting packages...

Package (1)             New Version  Net Change

apparmor.d-git  0.3342-1       5.94 MiB

Total Installed Size:  5.94 MiB

:: Proceed with installation? [Y/n] y
(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)
apparmor.d-git: /etc/apparmor.d/abstractions/devices-usb exists in filesystem (owned by apparmor)
apparmor.d-git: /etc/apparmor.d/abstractions/devices-usb-read exists in filesystem (owned by apparmor)
apparmor.d-git: /etc/apparmor.d/abstractions/nameservice-strict exists in filesystem (owned by apparmor)
Errors occurred, no packages were upgraded.

"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#2 2025-04-13 08:09:16

mithrial
Member
Registered: 2017-03-05
Posts: 78

Re: Cannot install/update apparmor.d-git because of conflicts.

The is the override option.

Offline

#3 2025-04-13 10:21:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,535

Re: Cannot install/update apparmor.d-git because of conflicts.

Figure out why this fails before overriding .

I'd start with seeing if using apparmor.d-git + apparmor-git gives the same issue .

Moderator Note :
Moving to AUR Issues, Discussion & PKGBUILD Requests

Last edited by Lone_Wolf (2025-04-13 10:22:08)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2025-04-13 16:43:59

loqs
Member
Registered: 2014-03-06
Posts: 18,402

Re: Cannot install/update apparmor.d-git because of conflicts.

devices-usb and devices-usb-read were added by:
https://gitlab.com/apparmor/apparmor/-/ … 8fedccd383
nameservice-strict was added by:
https://gitlab.com/apparmor/apparmor/-/ … 252956d5ff
So I would expect apparmor.d-git to remove those files as they are now provided by apparmor.

Offline

#5 2025-04-13 19:23:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,589

Re: Cannot install/update apparmor.d-git because of conflicts.

Zibi1981 wrote:

Since there is no "force upgrade" option in Pacman

And a good thing, too. It was removed to stop people from using it in situations they shouldn't, such as this one.

Offline

Board footer

Powered by FluxBB