You are not logged in.
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
The is the override option.
Offline
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
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
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