You are not logged in.

#1 2023-11-05 06:31:48

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

[SOLVED] Error installing kernel built with ABS

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! smile

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

#2 2023-11-05 07:55:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: [SOLVED] Error installing kernel built with ABS

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

#3 2023-11-06 04:17:52

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Error installing kernel built with ABS

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

#4 2023-11-06 08:17:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: [SOLVED] Error installing kernel built with ABS

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

#5 2023-11-06 09:02:57

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

Re: [SOLVED] Error installing kernel built with ABS

Offline

#6 2023-11-06 18:28:25

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Error installing kernel built with ABS

Thanks a lot for the help and information!

Offline

Board footer

Powered by FluxBB