QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 601|回复: 0

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

[复制链接]
发表于 2003-12-1 16:43:46 | 显示全部楼层 |阅读模式
系统redhat Fedora
yum.conf文件如下:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=1


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

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates

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

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

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

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

[updates]
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/

情况如下:
[root@lywlnx root]# export http_proxy=http://proxy2.zsu.edu.cn:3128/
[root@lywlnx root]# export ftp_proxy=http://proxy2.zsu.edu.cn:3128/
[root@lywlnx root]# 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
[Errno 4] IOError: HTTP Error 404: Not Found


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

情况差不多,如下:
[root@lywlnx root]# export http_proxy="http://202.116.64.226:3128/"
[root@lywlnx root]# export ftp_proxy="http://202.116.64.226:3128/"
[root@lywlnx root]# 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
[Errno 4] IOError: HTTP Error 404: Not Found


请问到底应该怎么设置才可以在校园网里面使用yum?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-18 10:51 , Processed in 0.044713 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表