Chinaunix

标题: yum 不能用...急 [打印本页]

作者: joesin    时间: 2006-11-11 01:01
标题: yum 不能用...急
[root@localhost joesin]# yum install php
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: php
Nothing to do
--------------------------------------------------------------------
老是出现上面的错误,哪位高手给指点一下阿,
作者: kenduest    时间: 2006-11-11 01:11
原帖由 joesin 于 2006-11-11 01:01 发表
[root@localhost joesin]# yum install php
No Match for argument: php
Nothing to do


这两段英文我建议你翻一下字典。

另外请执行:

  1. yum list | grep php
复制代码


请确定好你要装的 php package 完整名称后才使用 yum install 来安装。

--
作者: joesin    时间: 2006-11-11 01:34
非常感谢你的回复

我的 yum.conf是这样的
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
~
你看有什么问题没?
作者: joesin    时间: 2006-11-11 01:35
#yum list 全部都是 installed....
作者: joesin    时间: 2006-11-11 01:39
[root@localhost joesin]# yum install gxine-0.4.1-1.2.el4.rf.i386.rpm
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Examining gxine-0.4.1-1.2.el4.rf.i386.rpm: gxine - 0.4.1-1.2.el4.rf.i386
Marking gxine-0.4.1-1.2.el4.rf.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gxine.i386 0:0.4.1-1.2.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: libxine.so.1 for package: gxine
--> Processing Dependency: xine-lib >= 1.0.0 for package: gxine
--> Finished Dependency Resolution
Error: Missing Dependency: libxine.so.1 is needed by package gxine
Error: Missing Dependency: xine-lib >= 1.0.0 is needed by package gxine
[root@localhost joesin]#
作者: kenduest    时间: 2006-11-11 01:42
原帖由 joesin 于 2006-11-11 01:35 发表
#yum list 全部都是 installed....


yum search

--
作者: joesin    时间: 2006-11-11 01:53
能不能 把你的yum.conf发给我 看看.
作者: joesin    时间: 2006-11-11 01:55
[root@localhost ~]# yum search php
Searching Packages:
Setting up repositories
http://download.stmc.edu.hk/fedo ... epodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
[root@localhost ~]#
这里的 repomd.xml不知道是什么东东,
很明显 yum server 有问题
作者: joesin    时间: 2006-11-11 09:09
又沉下去了,自己给顶一下:_)

哪位大哥给帮帮忙啊,
作者: dlflying    时间: 2006-11-11 09:28
yum clean all
yum search php

试试
作者: joesin    时间: 2006-11-13 12:15
问题终于解决了.
修改/etc/yum.conf
添加
[base]
name= RHEL AS4 - Base
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/os/i386/RedHat/

[updates]
name= RHEL AS4 - Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
就 ok 了.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2