You are not logged in.
When using pacman to install a custom built kernel, I run into this error about duplicate directory. Please let me know if I can provide any additional information. Thanks for any help! ![]()
pacman -U linux-saturn-headers-6.6.arch1-1-x86_64.pkg.tar.zst linux-saturn-6.6.arch1-1-x86_64.pkg.tar.zst
doas (jack@saturn) password:
loading packages...
resolving dependencies...
looking for conflicting packages...
Package (2) New Version Net Change
linux-saturn 6.6.arch1-1 8.53 MiB
linux-saturn-headers 6.6.arch1-1 93.84 MiB
Total Installed Size: 102.37 MiB
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [################################################] 100%
(2/2) checking package integrity [################################################] 100%
(2/2) loading package files [################################################] 100%
(2/2) checking for file conflicts [################################################] 100%
error: failed to commit transaction (conflicting files)
/usr/lib/modules/6.6.0-arch1-1-saturn/build/ exists in both 'linux-saturn-headers' and 'linux-saturn'
Errors occurred, no packages were upgraded.Last edited by waffle0007 (2023-11-06 18:28:54)
Offline
Why's /usr/lib/modules/6.6.0-arch1-1-saturn/build/ in the kernel package?
How did you build those packages, what do the PKGBUILD(s) look like?
Offline
I apologise for my mistake, I had originally commented out this line
# remove build and source links
rm "$modulesdir"/{source,build}because the build process failed due to the `sources` directory not existing. After only removing the `build` directory, I'm able to install the package successfully. However, should I be concerned about the `sources` directory not existing?
Offline
They're certainly not required for regular use or building OOT modules.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Upstream change [1], fixed in the PKGBUILD [2].
[1]: https://git.kernel.org/pub/scm/linux/ke … a13cbe17c9
[2]: https://gitlab.archlinux.org/archlinux/ … d01a491047
Offline
Thanks a lot for the help and information!
Offline