You are not logged in.
I just using this command:
$ yay -S ctpkgthen it shows me
[Aur:1] ctpkg-55-3
:: (1/1) Downloaded PKGBUILD: ctpkg
....
....
Error: Unable to submit for processing (conflicting files)
ctpkg: /usr/bin already exists in the filesystem
An error occurred and no packages were updated.
-> exit status 1however, it is not in /usr/bin:
$ pwd
/usr/bin
$ ls | grep ctpkg
$---------------------------------------------------------------------------
I finally made it.
Firstly, edit the PKGBUILD and have it say (It might be in ~/.cache/yay/ctpkg)
install -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin/ctpkg"Then remove the "ctpkg-<version>.pkg.tar.zst" file.
Last, run this command:
makepkg --installHere's my log:
==> Making package: ctpkg 55-3 (Mon 04 Jul 2022 04:38:48 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found ctpkg
==> Validating source files with sha256sums...
ctpkg ... Skipped
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ctpkg"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ctpkg 55-3 (Mon 04 Jul 2022 04:38:50 PM CST)
==> Installing package ctpkg with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) ctpkg-55-3
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%
(1/1) checking available disk space [##############################] 100%
:: Processing package changes...
(1/1) installing ctpkg [##############################] 100%
Build_Time_UTC=2022-06-28_04:22:06
[ctpkg] Detected First Launching,We need your password to create the config file
[ctpkg] ! Creating ctpm package info database
[ctpkg] ! Creating ctpm user package info database
[ctpkg] + Set backend as pacman
[ctpkg] + Loading grab-ctpm(plugin)
[ctpkg] + Checking for packages...
[ctpkg] x Nothing to grab, abort
[ctpkg] ! The following packages won't be installed, cuz they're not available in any cloudrepo
[ctpkg] + -----------
[ctpkg] + ctpkg
[ctpkg] + -----------
Build_Time_UTC=2022-06-28_04:22:06
[ctpkg] + Set backend as pacman
[ctpkg] + Loading grab-ctpm(plugin)
[ctpkg] + Cleaning ctpm[R] package database cache
[ctpkg] - ctpm[R] package database cache purged
[ctpkg] + Refreshing ctpm[R] package database
[ctpkg] + Refreshing source main from https://ctpm.ruzhtw.top/
######################################################################## 100.0%
[ctpkg] √ ctpm[R] database is up to date
[ctpkg] √ Your system is up to date
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...Last edited by Onlyblacktea (2022-07-04 08:46:24)
Offline
ctpkg: /usr/bin already exists in the filesystemctpk contains the file bin in the directory /usr/ which conflicts with the directory /usr/bin provided by filesystem.
install -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin"installs ctpkg as bin.
Edit:
Please use code tags for commands and their outputs.
Last edited by loqs (2022-07-04 03:54:32)
Offline
ctpkg: /usr/bin already exists in the filesystemctpk contains the file bin in the directory /usr/ which conflicts with the directory /usr/bin provided by filesystem.
install -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin"installs ctpkg as bin.
Edit:
Please use code tags for commands and their outputs.
Thanks, I've tried your suggestion to find this error:
install: failed stat call on '/ctpkg': No such file or directoryobviously, these envs are nulls:
$ echo $srcdir
$ echo $pkgdir
I wonder if this is normal for my newly installed arch? Maybe there's some configurations I've lost.
Edit:
I'm trying to post more detail.
plus, thx for the tips of code tags.
plus plus, I got Chinese messages so I just simply translated it. So it might be a little different, dont mind.
Last edited by Onlyblacktea (2022-07-04 05:36:55)
Offline
here's the log of yay
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] ctpkg-55-3
1 ctpkg (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/0): ctpkg
1 ctpkg (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: ctpkg
==> Making package: ctpkg 55-3 (Mon 04 Jul 2022 01:38:26 PM CST)
==> Retrieving sources...
-> Found ctpkg
==> Validating source files with sha256sums...
ctpkg ... Skipped
==> Making package: ctpkg 55-3 (Mon 04 Jul 2022 01:38:27 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found ctpkg
==> Validating source files with sha256sums...
ctpkg ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Sources are ready.
==> Making package: ctpkg 55-3 (Mon 04 Jul 2022 01:38:29 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
-> ctpkg-55-3 already made -- skipping build
[sudo] password for myuser:
loading packages...
resolving dependencies...
looking for conflicting packages...
Packages (1) ctpkg-55-3
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)
ctpkg: /usr/bin exists in filesystem
Errors occurred, no packages were upgraded.
-> exit status 1and here's the log of install
$ install -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin"
install: cannot stat '/ctpkg': No such file or directoryEdit:
I've located the cached ctpkg in "~/.cache/yay/ctpkg"
Is it correct to use this path as "${srcdir}/ctpkg"?
However, I still don't sure "${pkgdir}/usr/bin", maybe just "/usr/bin"?
Last edited by Onlyblacktea (2022-07-04 06:30:34)
Offline
You're not supposed to run install in some interactive shell.
Edit the PKGBUILD and have it say
install -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin/ctpkg"Oh, and comment on the package to let the author know.
Online
You're not supposed to run install in some interactive shell.
Edit the PKGBUILD and have it sayinstall -m755 -D "${srcdir}/ctpkg" "${pkgdir}/usr/bin/ctpkg"Oh, and comment on the package to let the author know.
Thanks for your help. I'll manage to fix it.
I'm heading Wiki for further help. I'll be back when I'm finished.
Offline
Mod note: moving to AUR Issues
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline