Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Hỏi đáp về CentOS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-07-2008
get2you's Avatar
Advanced Member
 
Join Date: Jul 2008
Posts: 118
Thanks: 7
Thanked 3 Times in 3 Posts
Exclamation yum gặp lỗi khi cài đặt Cannot find a valid baseurl for repo: extras

em tập tọe xài yum và gặp lỗi sau khi cài đặt:

Code:
yum -y install httpd php
Loading "installonlyn" plugin 
Setting up Install Process 
Setting up repositories 
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was 
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> 
Error: Cannot find a valid baseurl for repo: extras
Kết nối internet vẫn ngon lành, disable IPtables rồi ạ.
Reply With Quote
  #2 (permalink)  
Old 19-07-2008
Lovelinux's Avatar
Super Moderator
 
Join Date: Jun 2008
Posts: 221
Thanks: 22
Thanked 46 Times in 24 Posts
Thumbs down

Có 2 trường hợp xảy ra:
1. Cache máy hoặc proxy công ty:
Dùng lệnh sau để clear:
Code:
 # yum clean metadata
 # yum clean all
 # rm -fr /var/cache/yum/*
Sau đó thử lại
Nếu vẫn không được th́ gơ:
Code:
# yum -y install httpd --disablerepo=extras
Nếu vẫn ko xong th́ qua cách 2:
2. Do server cty bạn chặn hoặc v́ 1 lư do nào đó.
Tốt nhất bạn đặt 1 con proxy ở con yum vậy:
Code:
vim /etc/yum.conf
thay đổi ḍng này
Code:
export HTTP_PROXY=http://<IP Proxy>:<Port Proxy>
Reply With Quote
The Following 2 Users Say Thank You to Lovelinux For This Useful Post:
get2you (19-07-2008), thu_6_ngay_13 (19-07-2008)
  #3 (permalink)  
Old 29-07-2008
Hackingart Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ǵ mà phức tạp thế, nh́n error report "Temporary failure in name resolution" có nghĩa là problem về DNS thôi, ko cần phải xóa cache ǵ đâu

Thân,
Reply With Quote
  #4 (permalink)  
Old 29-07-2008
get2you's Avatar
Advanced Member
 
Join Date: Jul 2008
Posts: 118
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Vâng, em chẳng hiểu sao lại vậy nữa. Có lẽ do pḥng hệ thống nó sử dụng con SQUID để chặn DNS lại (tất cả các thông báo lỗi đều của SQUID). Do đó khi set up proxy th́ connect b́nh thường.
Em thử contact với pḥng hệ thống nhưng họ nói ko setup chặn chiếc ǵ ở SQUID cả???
Hôm nay con proxy die em thử bỏ proxy th́ đi th́ lại cài đặt b́nh thường ~.~
Nếu do DNS th́ phải làm cách ǵ để đỡ phải t́m proxy không ạ?
Cảm ơn các anh nhiều ạ!
__________________
chào mừng đến với site của tớ
www.get2you.com
Reply With Quote
Reply

Tags
failure, in name, resolution, temporary

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Truyện cười đặc biệt dành riêng cho người đặc biệt Admin Tin tức công nghệ 7 04-08-2008 02:05 PM
Mod Open Search cài đặt cho VBB get2you Diễn đàn VBB 0 12-07-2008 03:13 PM
Những lỗi hay gặp trên VBB get2you Diễn đàn VBB 1 11-07-2008 01:20 PM
Cài đặt extension cho PHP ! hoahongtim PHP for CentOS 8 10-07-2008 04:50 PM


All times are GMT +1. The time now is 12:46 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.