2017-02-14 205 views
0

安裝蟒-devel的的失敗,並附加消息Python的devel的蔭安裝錯誤

配置如下: - CentOS的7.2 - Python 2.7版安裝

  1. 我重新運行與蔭負荷在輸出中建議使用,並且失敗時使用同樣的消
  2. yum info python ==>已安裝的軟件包python 2.7.5 34.el7
  3. yum info python-devel ==>未安裝。可用2.7.5 48.el7
  4. yum deplist python-devel ==>依賴於python2.7.5-48.el7
  5. 試圖安裝Python2.7.5-48.el7 wih「yum update python」,它失敗與python-devel install相同的錯誤信息。

蘇德赫

yum install -y python-devel 
Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 
* base: mirrors.sonic.net 
* epel: ftp.linux.ncsu.edu 
* extras: mirror.cogentco.com 
* updates: www.gtlib.gatech.edu 
Resolving Dependencies 
--> Running transaction check 
---> Package python-devel.x86_64 0:2.7.5-48.el7 will be installed 
--> Processing Dependency: python(x86-64) = 2.7.5-48.el7 for package: python-devel-2.7.5-48.el7.x86_64 
--> Running transaction check 
---> Package python.x86_64 0:2.7.5-34.el7 will be updated 
---> Package python.x86_64 0:2.7.5-48.el7 will be an update 
--> Processing Dependency: python-libs(x86-64) = 2.7.5-48.el7 for package: python-2.7.5-48.el7.x86_64 
--> Running transaction check 
---> Package python-libs.x86_64 0:2.7.5-34.el7 will be updated 
---> Package python-libs.x86_64 0:2.7.5-48.el7 will be an update 
--> Finished Dependency Resolution 

Dependencies Resolved 

==================================== ============================================包版本庫版本號

Installing: 
python-devel       x86_64       2.7.5-48.el7       base       393 k 
Updating for dependencies: 
python        x86_64       2.7.5-48.el7       base       90 k 
python-libs       x86_64       2.7.5-48.el7       base       5.6 M 

Transaction Summary 
============================================================================================================================================== 
Install 1 Package 
Upgrade    (2 Dependent packages) 

Total size: 6.1 M 
Downloading packages: 
Running transaction check 
ERROR with transaction check vs depsolve: 
python(abi) = 2.6 is needed by (installed) python-argparse-1.2.1-2.1.el6.noarch 
python(abi) = 2.6 is needed by (installed) redhat-upgrade-tool-1:0.7.22-3.el6.centos.noarch 
** Found 5 pre-existing rpmdb problem(s), 'yum check' output follows: 
epel-release-7-6.noarch is a duplicate with epel-release-7-5.noarch 
grep-2.20-3.el6_7.1.x86_64 has missing requires of libpcre.so.0()(64bit) 
python-argparse-1.2.1-2.1.el6.noarch has missing requires of python(abi) = ('0', '2.6', None) 
1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch has missing requires of preupgrade-assistant >= ('0', '1.0.2', '4') 
1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch has missing requires of python(abi) = ('0', '2.6', None) 
Your transaction was saved, rerun it with: 
yum load-transaction /tmp/yum_save_tx.2017-02-13.16-01.jUFBE4.yumtx 
+0

您是否因爲錯誤消息的建議而重新運行它?請給我們適當的線索,而不是錯誤轉儲。 –

+0

1.我重新載入yum load-transaction,但失敗時顯示相同的錯誤信息 –

回答

0

刪除軟件包python-argparse和redhat-upgrade-tool。

然後做了一個yum安裝python-devel,這次它成功了。我認爲在較早的python 2.6上,這兩個軟件包有很大的依賴關係。

蘇德赫Nallagangu

0

從百勝文檔,這裏的處理您的每5個錯誤的最安全的方式:

首先刪除重複項,並運行此之後仍不能解決任何錯誤:

package-cleanup --cleandupes 

如果上面帶有丟失的包清理錯誤,然後首先運行:

yum install yum-utils 

然後與處理其它4個錯誤:

yum reinstall grep-* 

其中grep- *是如在錯誤信息示出的包名稱。我在上面的命令中用*縮寫了其餘的grep版本名稱。

重複上面的命令爲其他3個被指示爲缺失的包。如果百勝命令爲您提供了錯誤,那麼嘗試一下本作只是一個包:

rpm -ivh --force grep-* 

然後終於從原始的錯誤消息重新運行百勝命令。

在您要清理剩餘的混亂,運行此命令的任何一點:

yum clean all 
package-cleanup --problems 

並遵循的方向。如需進一步參考,請查閱

man yum.conf 
0

問題是您在CentOS 7上,但安裝了CentOS 6軟件包。

  • 蟒蛇-argparse-1.2.1-2.1.el6.noarch
  • 紅帽升級工具-1:0.7.22-3.el6.centos.noarch

獲取列表所有已安裝的el6軟件包(rpm -qa | grep el6)並刪除它們或將它們更新到它們的el7等價物。你應該能夠刪除argparse,因爲它在2.7標準庫中。