LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot update CentOS 7 Python 2.7.5-34.el7 to 2.7.5-38.el7_2 (https://www.linuxquestions.org/questions/linux-software-2/cannot-update-centos-7-python-2-7-5-34-el7-to-2-7-5-38-el7_2-a-4175587409/)

jassonmc 08-19-2016 04:10 AM

Cannot update CentOS 7 Python 2.7.5-34.el7 to 2.7.5-38.el7_2
 
Hey guys

I just wanted to apply the Python update released just yesterday August 18.
Unfortunately it fails at the dependencies, see below.
The server is an up to date CentOS 7 that's used as a Zarafa 7.2.1 mail server.
I don't really think that my issue is server specific, which is why I didn't place my question in the server forum.

Any hint is greatly appreciated :-)

EDIT:
I figured that under /bin I do have 2 links to python2.7 folder. Maybe the Zarafa mail server installation does indeed interfere here...

/bin
lrwxrwxrwx. 1 root root 7 Feb 24 21:37 python -> python2
lrwxrwxrwx. 1 root root 9 Feb 24 21:37 python2 -> python2.7
-rwxr-xr-x. 1 root root 7136 Nov 20 2015 python2.7

Cheers
Juri


[root@mail1 ~]# yum check-updates
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.spreitzer.ch
* extras: mirror.spreitzer.ch
* updates: mirror.spreitzer.ch

python.x86_64 2.7.5-38.el7_2 updates
python-libs.x86_64 2.7.5-38.el7_2 updates

[root@mail1 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.spreitzer.ch
* extras: mirror.spreitzer.ch
* updates: mirror.spreitzer.ch
Resolving Dependencies
--> Running transaction check
---> Package python.x86_64 0:2.7.5-34.el7 will be updated
---> Package python.x86_64 0:2.7.5-38.el7_2 will be an update
---> Package python-libs.x86_64 0:2.7.5-34.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-38.el7_2 will be an update
--> Processing Dependency: /bin/python for package: python-tlslite-0.4.6-1.7.noarch
--> Finished Dependency Resolution
Error: Package: python-tlslite-0.4.6-1.7.noarch (@/python-tlslite-0.4.6-1.7.noarch)
Requires: /bin/python
Removing: python-2.7.5-34.el7.x86_64 (@anaconda)
Not found
Updated By: python-2.7.5-38.el7_2.x86_64 (updates)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

[root@mail1 ~]# rpm -qa | grep python-tlslite
python-tlslite-0.4.6-1.7.noarch
python-tlslite-doc-0.4.6-1.7.noarch

AlucardZero 08-19-2016 09:09 PM

Does /bin/python exist?
Maybe reinstall python first

jassonmc 08-22-2016 02:44 AM

Nope, there is only a link python -> python2 and another link python2 -> python2.7. The real python package is under /bin/python2.7
I am somewhat reluctant to reinstall python, because I think that this python version linking is there for a reason...
Since I do have the necessary python-tlslite package installed, just not under /bin/python, but a link pointing at it, is there a way to instruct yum to look elsewhere for the dependency?

jassonmc 09-09-2016 08:14 AM

I finally solved it. It was indeed the Zarafa installation causing the issue. I removed the failing dependency python-tlslite and it's 3 dependencies, ran yum update to update python and reinstalled the just removed 4 packages. All fine now :-)

Cheers
Juri


All times are GMT -5. The time now is 10:01 AM.