Kako YUM naterati da radi na Fedori

Kako podesiti da na Fedora 13 ili 14 mašini radi YUM servis

U principu greška koja se javlja je ovakva :
# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Da bi yum proradio normalno treba uraditi sledeće stvari :

1
Podesiti DNS rezolvere u /etc/resolv.conf fajlu :
# Generated by NetworkManager
search domen-koji-vam-treba (može i bez ovoga)
nameserver IP-adresa-DNS-servera
2
Isključiti IPV6 :
#service ip6tables stop
#chkconfig –level 123456 ip6tables off
Napraviti fajl /etc/modprobe.d/blacklist-ipv6.conf i u njega staviti :
install ipv6 /bin/true
blacklist ipv6
U fajl /etc/sysconfig/network dodati linije :
NETWORKING_IPV6=no
IPV6=no
3
Dodati na početak yum konfiguracionog fajla /etc/yum.conf liniju :
[main]
proxy=http://IP-adresa-proxy-servera:port-proxy-servera
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2 ovaj nivo logovanja se onda javlja i u komandnoj liniji, za viši nivo staviti 9
logfile=/var/log/yum.log
exactarch=1
3a
Pod grafikom podesiti network proxy server :
System/Preferences/Network Proxy/Manual Proxy Configuration (ovde isti podaci kao i pod tačkom 3)
4
Počistiti YUM :
#yum clean all
#rm -f /var/lib/rpm/__db*
#rpm –rebuilddb
5
Restartovati mašinu.
Testirati yum :
# yum info kernel
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Installed Packages
Name : kernel
Arch : i686
Version : 2.6.35.6
Release : 45.fc14
Size : 78 M
Repo : installed
i tako dalje…..
6
Ako i dalje neće da radi, izmeniti početak fajla /etc/yum.repos.d/fedora.repo
Proveriti adrese repozitorijuma, to ume da bude problem, ako je starija verzija.
Takođe uraditi debug korišćenjem komande :
# URLGRABBER_DEBUG=1 yum check-update
2013-06-11 09:51:32,629 urlgrabber version = 3.9.1
2013-06-11 09:51:32,629 trans function “_” =
2013-06-11 09:51:32,659 combined options: {
‘delegate’ : {
‘bandwidth’ : 0,
‘cache_openers’: True,
‘checkfunc’ : None,
‘close_connection’: 0,
‘copy_local’ : 0,
‘data’ : None,
‘delegate’ : None,
‘failure_callback’: None,
‘ftp_headers’ : None,
‘http_headers’ : None,
‘interrupt_callback’: None,
…..

This entry was posted in Linux and tagged . Bookmark the permalink.

Comments are closed.