LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2011, 10:19 PM   #1
sura2k
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Can't install/update the packages on newly installed CentOS6


I installed CentOS6 and it is the first time that I use CentOS. I tried to install/update packages. Here is the output when I try to run
Code:
yum update
.

Code:
[root@localhost suranga]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirror.nus.edu.sg
 * extras: mirror.nus.edu.sg
 * updates: mirror.nus.edu.sg
base                                                     | 3.7 kB     00:00     
http://mirror.nus.edu.sg/centos/6.0/os/i386/repodata/2b014e1fcde80ec1cc69d6a048f260f712b1ae2d83d1fc04d3b3c00ade817ec9-primary.sqlite.bz2: [Errno 12] Timeout on http://mirror.nus.edu.sg/centos/6.0/os/i386/repodata/2b014e1fcde80ec1cc69d6a048f260f712b1ae2d83d1fc04d3b3c00ade817ec9-primary.sqlite.bz2: (28, '')
Trying other mirror.
http://centosmirror.go4hosting.in/centos/6.0/os/i386/repodata/2b014e1fcde80ec1cc69d6a048f260f712b1ae2d83d1fc04d3b3c00ade817ec9-primary.sqlite.bz2: [Errno 12] Timeout on http://centosmirror.go4hosting.in/centos/6.0/os/i386/repodata/2b014e1fcde80ec1cc69d6a048f260f712b1ae2d83d1fc04d3b3c00ade817ec9-primary.sqlite.bz2: (28, '')
Trying other mirror.
This won't stop.

I tried these things. But no results

1.
Code:
yum clean all
2.edit
Code:
/etc/repos.d
comment
Code:
mirrors
and uncomment
Code:
baseurl
3.edit
Code:
edit /etc/resolve.conf
nameserver into 8.8.8.8
4.
Code:
cd /var/lib/rpm
rm -f __db*
rpmdb -v --rebuilddb
5.edit
Code:
/etc/yum.conf
timeout=300
6. stop the
Code:
ip6tables
I tried lot of things more than these.
But still I have the same problem.

When I start the OS, it always changes the
Code:
/etc/resolve.conf
and adds
Code:
nameserver 10.16.32.1
(10.16.32.1 is my router) and there may be some things that I don't know.

And Internet works fine.
Please help me to get rid of this.

Thank You!

Last edited by sura2k; 12-01-2011 at 10:22 PM.
 
Old 12-02-2011, 08:59 AM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
I had this same issue when I first installed Centos. Most likely your proxy server isn't correct. -- or try updating yum.

Also - NetworkManager is most likely what is causing your resolv.conf to reset.
May need to switch to network
run
Code:
# chkconfig --list |grep -i etw
to see which network program you are using

Set the DNS in the IP V4 Tab for the connection in Network Manager:

Network Manager has control of etc/resolv.conf
Using Network Manager just select the IPv4 tab and set it to (dhcp addresses only).
The DNS entries can be set here and they will not be reset.

Other option:
If you want to use that DNS all the time then set it in the router.
You can forgo what I just mentioned.
 
  


Reply

Tags
centos, update


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
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
Is there a distro better suited to newly installed packages? glenn69 Linux - Newbie 11 09-15-2005 04:37 PM
Finding newly installed packages BAK2004 Linux - Software 1 01-01-2005 02:39 PM
How to update all my installed packages nazzymac *BSD 4 04-15-2004 11:54 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 AM.

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