我想在我的 Fedora 20 系统上安装所有 python 软件包,但存在损坏的依赖项。如何安装除损坏或有错误之外的所有内容?
]$ sudo yum install *python*
……
--> Finished Dependency Resolution
Error: Package: python-qpid_messaging-0.24-3.fc20.x86_64 (fedora)
Requires: qpid-cpp-client(x86-64) = 0.24
Available: qpid-cpp-client-0.24-6.fc20.x86_64 (fedora)
qpid-cpp-client(x86-64) = 0.24-6.fc20
Installing: qpid-cpp-client-0.26-3.fc20.x86_64 (updates)
qpid-cpp-client(x86-64) = 0.26-3.fc20
Error: Package: gcc-python2-debug-plugin-0.12-15.fc20.x86_64 (fedora)
Requires: gcc = 4.8.2-1.fc20
Installed: gcc-4.8.2-7.fc20.x86_64 (@updates)
gcc = 4.8.2-7.fc20
Available: gcc-4.8.2-1.fc20.x86_64 (fedora)
gcc = 4.8.2-1.fc20
Error: Package: gcc-python3-plugin-0.12-15.fc20.x86_64 (fedora)
Requires: gcc = 4.8.2-1.fc20
Installed: gcc-4.8.2-7.fc20.x86_64 (@updates)
gcc = 4.8.2-7.fc20
Available: gcc-4.8.2-1.fc20.x86_64 (fedora)
gcc = 4.8.2-1.fc20
Error: Package: python-neutron-2013.2.3-2.fc20.noarch (updates)
Requires: python-neutronclient >= 2.3.4
Available: python-neutronclient-2.3.1-2.fc20.noarch (fedora)
python-neutronclient = 2.3.1-2.fc20
Installing: python-neutronclient-2.3.1-3.fc20.noarch (updates)
python-neutronclient = 2.3.1-3.fc20
Error: Package: gcc-python3-debug-plugin-0.12-15.fc20.x86_64 (fedora)
Requires: gcc = 4.8.2-1.fc20
Installed: gcc-4.8.2-7.fc20.x86_64 (@updates)
gcc = 4.8.2-7.fc20
Available: gcc-4.8.2-1.fc20.x86_64 (fedora)
gcc = 4.8.2-1.fc20
Error: Package: gcc-python2-plugin-0.12-15.fc20.x86_64 (fedora)
Requires: gcc = 4.8.2-1.fc20
Installed: gcc-4.8.2-7.fc20.x86_64 (@updates)
gcc = 4.8.2-7.fc20
Available: gcc-4.8.2-1.fc20.x86_64 (fedora)
gcc = 4.8.2-1.fc20
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我试过了:
]$ sudo yum install *python* --skip-broken
但它给出了这个:
Running transaction check
Running transaction test
Transaction check error:
file /etc/bash_completion.d/django_bash_completion from install of python3-django15-1.5.6-1.fc20.noarch conflicts with file from package python-django-bash-completion-1.6.4-1.fc20.noarch
file /etc/bash_completion.d/django_bash_completion from install of python-django15-1.5.6-1.fc20.noarch conflicts with file from package python-django-bash-completion-1.6.4-1.fc20.noarch
file /usr/lib/python2.7/site-packages/tests/__init__.py conflicts between attempted installs of python-libturpial-1.7.0-1.fc20.noarch and python-django-federated-login-1.0.0-1.fc20.noarch
file /usr/lib/python2.7/site-packages/tests/__init__.pyc conflicts between attempted installs of python-libturpial-1.7.0-1.fc20.noarch and python-django-federated-login-1.0.0-1.fc20.noarch
file /usr/lib/python2.7/site-packages/tests/__init__.pyo conflicts between attempted installs of python-libturpial-1.7.0-1.fc20.noarch and python-django-federated-login-1.0.0-1.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/__init__.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/__init__.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/pqueue.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/pqueue.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/queue.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/__pycache__/queue.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/pqueue.py conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/queue.py conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/__init__.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/__init__.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/test_pqueue.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/test_pqueue.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/test_queue.cpython-33.pyc conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/__pycache__/test_queue.cpython-33.pyo conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/test_pqueue.py conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
file /usr/lib/python3.3/site-packages/queuelib/tests/test_queue.py conflicts between attempted installs of python3-queuelib-1.1.1-1.fc20.noarch and python3-python-queuelib-1.0-2.fc20.noarch
Error Summary
-------------
答案1
唉。只有 rpm 才能看到文件冲突,这就是为什么 Fedora 的政策是,如果一个软件包有这些冲突,它也应该有一个实际的冲突……但这只是许多没有得到很好检查的软件包之一。
看起来只有几个问题,所以你可以这样做:
yum install -- '*python*' -python3-queuelib -python-django-federated-login
答案2
这有效:
~]$ sudo yum install -- '*python*' -python3-queuelib -python-django-federated-login -gcc-python3-plugin -python-qpid_messaging -gcc-python2-plugin -gcc-python3-debug-plugin -python-django* -django* -gcc-python2-debug-plugin -python3-django15-1.5.8-1 python-django-bash-completion* -python-django15*
答案3
为我:yum install python3
你也可以yum search python3
显示 yum 找到的内容,但我简单地安装了 python3 就可以了,并且安装了 python3、python 3.2 以及另一个名为 python 3.2mj 的文件夹。