LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2018, 04:57 PM   #1
Altar46
LQ Newbie
 
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
yum upgrading error


Hi,
I'm very fresh in linux but not in ages (+60) and decided to start to learn Linux and choose CentOS.
Just installed Centos 7 on a empty laptop HDD and everithing was nice, but then I decided to install a GNS3 networking simulator - and than starts a lot of problems.
Currently have yum update (but not yum only... err python-devel also).

Here is my output:

[root@Boy-PC /]# uname -a
Linux localhost.localdomain 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

[root@Boy-PC /]# rpm -qa kernel\* | sort
kernel-3.10.0-862.3.2.el7.x86_64
kernel-3.10.0-862.3.3.el7.x86_64
kernel-3.10.0-862.el7.x86_64
kernel-devel-3.10.0-862.3.2.el7.x86_64
kernel-devel-3.10.0-862.3.3.el7.x86_64
kernel-devel-3.10.0-862.el7.x86_64
kernel-headers-3.10.0-862.3.3.el7.x86_64
kernel-tools-3.10.0-862.3.3.el7.x86_64
kernel-tools-libs-3.10.0-862.3.3.el7.x86_64

and finally errors

[root@Boy-PC /]# yum upgrade
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos
Determining fastest mirrors
epel/x86_64/metalink | 30 kB 00:00:00
* base: mirror.centos.plus.hr
* epel: ftp.fau.de
* extras: mirror.centos.plus.hr
* ius: ftp.rediris.es
* rpmfusion-free-updates: ftp.nluug.nl
* updates: mirror.centos.plus.hr
base | 3.6 kB 00:00:00
epel | 3.2 kB 00:00:00
extras | 3.4 kB 00:00:00
ius | 2.3 kB 00:00:00
rpmfusion-free-updates | 3.0 kB 00:00:00
updates | 3.4 kB 00:00:00
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
SyntaxError: invalid syntax


Exiting on user cancel
**********************************

My linux knowledge is arround 0+ so kindly help me resolve this problem which can lead to GNS3 fully installed software for my further study.

Thank you and best regards
Bojan
 
Old 06-22-2018, 08:53 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,440

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
I must say this particular error is new to me, but thankfully as I was suspecting and upon a bit of digging;

It may be a cache related issue.

Try the following commands as root:

Code:
yum clean metadata && yum upgrade
That will clean metadata info and then run the "yum upgrade" command.
If that doesn't work, try the following command:

Code:
yum clean all
And then:

Code:
yum upgrade
Let us know how it works out for you.
 
Old 06-22-2018, 09:11 AM   #3
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 379
Blog Entries: 1

Rep: Reputation: 189Reputation: 189
If you have multiple versions of python installed, see this.

Seems yum does not like Python 3.6
 
Old 06-22-2018, 10:29 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,440

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Quote:
Originally Posted by Honest Abe View Post
If you have multiple versions of python installed, see this.

Seems yum does not like Python 3.6
I'm not quite sure that's entirely true Abe.

I have multiple versions of python installed (including python 3.6) and I'm not having any such issues on CentOS 7.4

I've even just checked yum to confirm, and no errors at all. Here's my output of an ls -l on python:

Code:
[root@jamespc ~]# ls -l /usr/bin/python*
lrwxrwxrwx. 1 root root     7 May 18 01:46 /usr/bin/python -> python2
lrwxrwxrwx. 1 root root     9 May 18 01:46 /usr/bin/python2 -> python2.7
-rwxr-xr-x. 1 root root  7216 Apr 11 17:06 /usr/bin/python2.7
-rwxr-xr-x. 2 root root 11312 Apr 11 07:40 /usr/bin/python3.6
-rwxr-xr-x. 2 root root 11312 Apr 11 07:40 /usr/bin/python3.6m
I'm not sure exactly what's happened with the OP's system or in the link you posted, but it seems very strange to me either way.
 
Old 06-22-2018, 10:52 AM   #5
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 379
Blog Entries: 1

Rep: Reputation: 189Reputation: 189
@jsbjsb001, I also have both versions 2.7 and 3.6 installed and did not face this issue while performing yum update/upgrade.

The guy in the link says this -
Quote:
the root cause is the missmatch of python version. ‘yum’ command need python 2.7
on /usr/bin/python symbol link, which I changed to python 3.6 before.
I posted the link because OP has installed another application (GNS3 networking simulator), which *might* have required another version of python as dependency. Hope this is not seen as thread hijacking.
 
Old 06-22-2018, 11:02 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,440

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Quote:
Originally Posted by Honest Abe View Post
@jsbjsb001, I also have both versions 2.7 and 3.6 installed and did not face this issue while performing yum update/upgrade.

The guy in the link says this -

Quote:
the root cause is the missmatch of python version. ‘yum’ command need python 2.7
on /usr/bin/python symbol link, which I changed to python 3.6 before.
I posted the link because OP has installed another application (GNS3 networking simulator), which *might* have required another version of python as dependency. Hope this is not seen as thread hijacking.
Yeah, it could be that, although I'd think the dependency (or more precisely, the symlink) being changed by yum is *maybe* unlikely. I'd think what I've highlighted in bold is *far* more likely to be the reason, if anything (at least as far as the link is concerned). Don't get me wrong, I wasn't trying to be smart to yourself, I just find it rather strange, that's all.

I don't think this could be called "thread hijacking" when we are still talking about the OP's problem. I'd think if it was that, we'd be talking about a different problem un-related to the OP's problem - we are not.
 
1 members found this post helpful.
Old 06-04-2019, 10:19 AM   #7
bigduy01
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Did anyone find a solution to this? I tried both what jsbsb and Abe suggested but it did not work.
 
Old 06-04-2019, 09:40 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
so bigduy01 you are trying to install "install a GNS3 networking simulator -"
and it is messing up your system ?
 
Old 06-05-2019, 10:51 PM   #9
bigduy01
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
so bigduy01 you are trying to install "install a GNS3 networking simulator -"
and it is messing up your system ?
I'm trying to do a

# yum upgrade

and get

File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
 
Old 06-11-2019, 02:39 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
please post the output of
Code:
su -
yum repolist all
i am betting you have some incompatible rpm's installed from a non cent repo
 
Old 12-27-2019, 12:40 PM   #11
foobar123
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
yum upgrading error

sudo vi /usr/libexec/urlgrabber*

change
#! /usr/bin/python to #! /usr/bin/python2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Transaction Check Error: Using YUM Extender for Upgrading System swamprat Linux - Newbie 4 11-13-2013 07:01 PM
upgrading yum sparkshankar Linux - Server 9 08-29-2009 02:35 AM
problem upgrading FC 4 to FC 5 using yum legolin Fedora 3 05-22-2006 06:12 PM
upgrading problem with yum Infernal211283 Linux - Newbie 3 01-14-2006 04:43 PM
upgrading using yum ergo_sum Linux - Newbie 5 05-04-2005 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration