다음 라이브러리를 설치하고 싶습니다.
- 파이썬-sip
- 파이톤-psutil
그러나 다음과 같은 오류가 발생합니다.
nakrule@mordor ~ % pacman -S python-psutil
[sudo] password for nakrule:
Sorry, try again.
[sudo] password for nakrule:
resolving dependencies...
looking for conflicting packages...
Packages (1) python-psutil-5.4.7-1
Total Installed Size: 1.95 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)
python-psutil: /usr/lib/python3.7/site-packages/psutil-5.4.7-py3.7.egg-info/PKG-INFO exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil-5.4.7-py3.7.egg-info/SOURCES.txt exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil-5.4.7-py3.7.egg-info/dependency_links.txt exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil-5.4.7-py3.7.egg-info/not-zip-safe exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil-5.4.7-py3.7.egg-info/top_level.txt exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__init__.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_common.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_compat.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_exceptions.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_psaix.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_psbsd.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_pslinux.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_psosx.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_psposix.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_pssunos.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/__pycache__/_pswindows.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_common.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_compat.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_exceptions.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psaix.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psbsd.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_pslinux.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psosx.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psposix.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_pssunos.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psutil_linux.cpython-37m-x86_64-linux-gnu.so exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_psutil_posix.cpython-37m-x86_64-linux-gnu.so exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/_pswindows.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__init__.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__main__.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/__init__.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/__main__.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_aix.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_bsd.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_connections.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_contracts.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_linux.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_memory_leaks.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_misc.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_osx.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_posix.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_process.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_sunos.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_system.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_unicode.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/__pycache__/test_windows.cpython-37.pyc exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_aix.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_bsd.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_connections.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_contracts.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_linux.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_memory_leaks.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_misc.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_osx.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_posix.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_process.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_sunos.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_system.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_unicode.py exists in filesystem
python-psutil: /usr/lib/python3.7/site-packages/psutil/tests/test_windows.py exists in filesystem
Errors occurred, no packages were upgraded.
1 nakrule@mordor ~ % pacman -S python-sip :(
resolving dependencies...
looking for conflicting packages...
Packages (1) python-sip-4.19.13-1
Total Installed Size: 0.24 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)
python-sip: /usr/lib/python3.7/site-packages/sip.so exists in filesystem
Errors occurred, no packages were upgraded.
이러한 파일이 이미 존재할 수 있는 이유는 무엇이며 이 문제를 해결하려면 어떻게 해야 합니까?
미리 감사드립니다.
답변1
pacman
추적하지 않는 파일, 즉 로컬 데이터베이스에 나열되지 않은 파일 덮어쓰기를 거부합니다. 이러한 파일은 귀하가 수동으로 설치하거나 귀하를 대신한 프로그램을 통해
사용하지 않고도 설치할 수 있습니다 .pacman
간단히 말해서 파일이 어떤 패키지에도 속하지 않고 아무 것도 손상되지 않은 경우 파일 충돌 검사를 우회하고 충돌하는 파일을 덮어쓰는 --overwrite
옵션을 사용하여 새 패키지를 설치할 수 있습니다( 자세한 설명 참조).pacman
man pacman
# pacman -S --overwrite <glob> package_name
하지만 ArchWiki에 유의하세요.사용하지 말라는 경고 --overwrite
(glob을 포함하는 매개변수가 필요하기 때문입니다.) 보다문제 해결현재 귀하의 사건을 다루고 있는 관련 페이지 섹션입니다.
pacman
데이터베이스를 쿼리하여 실제로 파일을 소유한 패키지(있는 경우)를 알 수 있습니다.
$ pacman -Qo /path/to/file
식별 방법모두어떤 패키지에도 속하지 않는 파일은 그림에 표시됩니다.이 페이지아치위키.