YUM ERROR

If it doesn't fit in another category, ask it here.
Post Reply
franklin321
Posts: 1
Joined: 2012/12/04 08:26:47

YUM ERROR

Post by franklin321 » 2012/12/04 08:33:08

Dear Frens,

I am having big issues in running yum, so couldnt update anything from yum. Please help me in digging out the issues. Everytime i use yum command, i get the following error.

bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

and i have tried to update/ install python but it says about dependencies...

Any good solutions will be appreciated.

My machine details are as follows:

Linux mail.xyz.com 2.6.18-308.11.1.el5 #1 SMP Tue Jul 10 08:49:28 EDT 2012 i686 i686 i386 GNU/Linux

Thanks.


Regards,
franklin

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: YUM ERROR

Post by TrevorH » 2012/12/04 09:28:33

I suggest that you verify the RPMs are correctly installed using

[code]
rpm -V yum rpm rpm-libs rpm-python python python-sqlite python-urlgrabber python-elementtree m2crypto yum-metadata-parser
[/code]

This command will check the md5sum of the currently installed files and compare them with the record in the rpm database and show you those files that have been changed. If nothing has changed then it will return no output. There are instructions in the wiki [url=http://wiki.centos.org/TipsAndTricks/BrokenVserver]here[/url] about how to download the correct rpms and (re)install them to fix a VPS supplied without a working copy of yum but you should be able to adapt those to fit your situation.

azzurri
Posts: 1
Joined: 2012/12/13 08:11:50

Re: YUM ERROR

Post by azzurri » 2012/12/14 02:43:27

-----------------------------------------------------------------------------------------------
yum update
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Determining fastest mirrors
* base: centos-hcm.viettelidc.com.vn
* extras: centos-hcm.viettelidc.com.vn
* rpmforge: apt.sw.be
* updates: centos-hcm.viettelidc.com.vn
adobe-linux-i386 | 951 B 00:00
adobe-linux-i386/primary | 11 kB 00:00
adobe-linux-i386 17/17
base | 3.7 kB 00:00
base/primary_db | 3.5 MB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 24 kB 00:00
google-chrome | 951 B 00:00
google-chrome/primary | 1.4 kB 00:00
google-chrome 3/3
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 7.1 MB 00:10
updates | 3.5 kB 00:00
updates/primary_db | 3.8 MB 00:59
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package python-markupsafe.i686 0:0.9.2-4.el6 will be updated
---> Package python-markupsafe.i386 0:0.11-1.el5.rf will be an update
--> Processing Dependency: python(abi) = 2.4 for package: python-markupsafe-0.11-1.el5.rf.i386
--> Finished Dependency Resolution
Error: Package: python-markupsafe-0.11-1.el5.rf.i386 (rpmforge)
Requires: python(abi) = 2.4
Installed: python-2.6.6-29.el6_3.3.i686 (@updates)
python(abi) = 2.6
Available: python-2.6.6-29.el6_2.2.i686 (base)
python(abi) = 2.6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
---------------------------------------------------------------------
I have the above error while update my yum...help me plz.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: YUM ERROR

Post by TrevorH » 2012/12/14 02:53:53

1) Please don't hijack other people's threads but instead, start your own and refer to this one if you have something similar.
2) You have an el5 repository configured on an el6 system - almost certainly rpmforge for CentOS 5 judging by the el5.rf in the package name and this is trying to overwrite a core CentOS supplied package. You need to remove the el5 repository and download and install the correct rpmforge-release RPM for el6 instead. You also need to look at installing yum-plugin-priorities and configuring that to protect packages supplied by CentOS repos.

gdsph
Posts: 3
Joined: 2013/01/11 17:06:34

Re: YUM ERROR

Post by gdsph » 2013/01/11 17:12:32

[root@localhost ~]# service network restart
/etc/init.d/network: line 42: ./network-functions: No such file or directory
ls: ifcfg*: No such file or directory
/etc/init.d/network: line 42: ./network-functions: No such file or directory
ls: ifcfg*: No such file or directory
Shutting down loopback interface: /etc/init.d/functions: line 500: ./ifdown: No such file or directory
[FAILED]
/etc/init.d/network: line 42: ./network-functions: No such file or directory
ls: ifcfg*: No such file or directory
Bringing up loopback interface: /etc/init.d/functions: line 500: ./ifup: No such file or directory
[FAILED]
HOW TO FIX THIS?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: YUM ERROR

Post by TrevorH » 2013/01/11 21:14:04

This thread is now locked. Please do not hijack other people's threads, especially ones which have nothing whatsoever to do with the errors that you are receiving. Please start your own thread with a descriptive subject and details about what you were trying to do and how. It may also be a good idea to read [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]this thread[/url] and the other threads in [url=https://www.centos.org/modules/newbb/viewforum.php?forum=54]this forum[/url] before you start. Posting the output from the getinfo.sh script mentioned in the first thread I linked to would be a good starting point.

Post Reply