View previous topic :: View next topic |
Author |
Message |
Atank n00b
Joined: 05 Oct 2022 Posts: 1
|
Posted: Wed Oct 05, 2022 11:50 am Post subject: 'emerge --ask dev-util/pkgdev' failed due to file collision |
|
|
'pkgdev' didn't work, I have tried to Add FEATURES="-collision-detect -protect-owned" before the 'emerge' command, it didn't work too.
Hope to get some tips, thanks.
Code: |
* Messages for package dev-vcs/git-2.35.1:
* This package will overwrite one or more files that may belong to other
* packages (see list below).
*
* package dev-vcs/git-2.35.1 NOT merged
*
* Detected file collision(s):
*
* /usr/bin/git-shell
* /usr/bin/git-cvsserver
* /usr/bin/git
* /usr/bin/git-upload-archive
* /usr/bin/git-upload-pack
* /usr/bin/git-receive-pack
* /usr/share/git-core/templates/description
* /usr/share/git-core/templates/info/exclude
* /usr/share/git-core/templates/hooks/push-to-checkout.sample
* /usr/share/git-core/templates/hooks/applypatch-msg.sample
* /usr/share/git-core/templates/hooks/post-update.sample
* /usr/share/git-core/templates/hooks/pre-applypatch.sample
* /usr/share/git-core/templates/hooks/pre-push.sample
* /usr/share/git-core/templates/hooks/fsmonitor-watchman.sample
* /usr/share/git-core/templates/hooks/pre-commit.sample
* /usr/share/git-core/templates/hooks/pre-merge-commit.sample
* /usr/share/git-core/templates/hooks/pre-rebase.sample
* /usr/share/git-core/templates/hooks/prepare-commit-msg.sample
* /usr/share/git-core/templates/hooks/commit-msg.sample
* /usr/share/git-core/templates/hooks/update.sample
* /usr/share/git-core/templates/hooks/pre-receive.sample
* /usr/share/locale/sv/LC_MESSAGES/git.mo
* /usr/share/locale/bg/LC_MESSAGES/git.mo
* /usr/share/locale/it/LC_MESSAGES/git.mo
* /usr/share/locale/is/LC_MESSAGES/git.mo
* /usr/share/locale/de/LC_MESSAGES/git.mo
* /usr/share/locale/ru/LC_MESSAGES/git.mo
* /usr/share/locale/fr/LC_MESSAGES/git.mo
* /usr/share/locale/pl/LC_MESSAGES/git.mo
* /usr/share/locale/zh_TW/LC_MESSAGES/git.mo
* /usr/share/locale/pt_PT/LC_MESSAGES/git.mo
* /usr/share/locale/ca/LC_MESSAGES/git.mo
* /usr/share/locale/id/LC_MESSAGES/git.mo
* /usr/share/locale/es/LC_MESSAGES/git.mo
* /usr/share/locale/zh_CN/LC_MESSAGES/git.mo
* /usr/share/locale/tr/LC_MESSAGES/git.mo
* /usr/share/locale/ko/LC_MESSAGES/git.mo
* /usr/share/locale/vi/LC_MESSAGES/git.mo
* /usr/share/locale/el/LC_MESSAGES/git.mo
* /usr/share/git/git-prompt.sh
* /usr/share/bash-completion/completions/git
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'dev-vcs/git-2.35.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.
|
|
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Wed Oct 05, 2022 12:55 pm Post subject: |
|
|
Have you ever installed git without portage?
Plz run
Code: |
emerge -a --depclean
equery l '*' | grep git
|
_________________
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Wed Oct 05, 2022 3:37 pm Post subject: |
|
|
Atank wrote: | 'pkgdev' didn't work | Welcome to the forums. Your problem is not with pkgdev. Your problem is with git, which Portage presumably tried to install as a dependency to support pkgdev.
Atank wrote: | I have tried to Add FEATURES="-collision-detect -protect-owned" before the 'emerge' command, it didn't work too. | Don't do that unless you can explain why it is appropriate. You can make a bad situation worse by using these when you should not.
As alamahant suggested, this looks like you installed git outside Portage's control, but to /usr as a prefix. You should not install into /usr except through Portage.
The output of emerge --pretend --verbose dev-vcs/git might be useful. |
|
Back to top |
|
|
|