梦幻者言 发表于 2003-12-1 16:43:46

请问如何设置才可以在校园网里面使用yum?

系统redhat Fedora
yum.conf文件如下:

cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1



name=Fedora Core $releasever - $basearch - Base
baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever


name=Fedora Core $releasever - $basearch - Released Updates

#
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://fedora.redhat.com/updates/testing/fedora-core-$releasever


name=Livna.org Fedora Compatible Packages (stable)
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
gpgcheck=1

name=Livna.org Fedora Compatible Packages (unstable)
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
gpgcheck=1

name=Livna.org Fedora Compatible Packages (testing)
baseurl=
http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing
gpgcheck=1


name=Fedora Core 1 NewRPMS.sunsite.dk
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/i386/fc1


name=Fedora Core 1
baseurl=ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/1/i386/os/


name=Fedora Core 1 updates
baseurl=ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/updates/1/


我第一设置shell环境变量如下:
export http_proxy=http://202.116.64.226:3128/
export ftp_proxy=http://202.116.64.226:3128/

情况如下:
# export http_proxy=http://proxy2.zsu.edu.cn:3128/
# export ftp_proxy=http://proxy2.zsu.edu.cn:3128/
# yum install xpdf
Error: Cannot find baseurl or name for server 'livna-stable'. Skipping
Error: Cannot find baseurl or name for server 'livna-unstable'. Skipping
Error: Cannot find baseurl or name for server 'livna-testing'. Skipping
Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
Server: Fedora Core 1
Server: Fedora Core 1 NewRPMS.sunsite.dk
Server: Fedora Core 1 updates
retrygrab() failed for:
ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/updates/1/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/updates/1/he
aders/header.info
IOError: HTTP Error 404: Not Found


第二次设置如下:
export http_proxy="http://202.116.64.226:3128/"
export ftp_proxy="http://202.116.64.226:3128/"

情况差不多,如下:
# export http_proxy="http://202.116.64.226:3128/"
# export ftp_proxy="http://202.116.64.226:3128/"
# yum install xpdf
Error: Cannot find baseurl or name for server 'livna-stable'. Skipping
Error: Cannot find baseurl or name for server 'livna-unstable'. Skipping
Error: Cannot find baseurl or name for server 'livna-testing'. Skipping
Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
Server: Fedora Core 1
Server: Fedora Core 1 NewRPMS.sunsite.dk
Server: Fedora Core 1 updates
retrygrab() failed for:
ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/updates/1/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/core/updates/1/he
aders/header.info
IOError: HTTP Error 404: Not Found


请问到底应该怎么设置才可以在校园网里面使用yum?
页: [1]
查看完整版本: 请问如何设置才可以在校园网里面使用yum?