LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 792|回复: 9

实在搞不定了,问一下

[复制链接]
发表于 2006-4-18 18:02:12 | 显示全部楼层 |阅读模式
新手,安装rpm包时总是遇到同样问题,拿mplayer的安装为例,就是用rpm命令安装时出现
[root@localhost ~]# rpm -ivh mencoder-1.0-0.26.20060314.fc5.x86_64.rpm error: open of mencoder-1.0-0.26.20060314.fc5.x86_64.rpm failed: 没有那个文件或 目录
用yum命令安装时就出现
[root@localhost ~]# yum install mencoder-1.0-0.26.20060314.fc5.x86_64.rpm
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                 [1/3]
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core

接着就没有下文了,我试了好几天了,也用了 rpm --initdb和rpm --rebuilddb来初始化rpm 数据库,但还是出现同样问题。学了差不多十天了,我还没有装上一个软件,很是郁闷!请各位一定帮帮忙,支支招。
 楼主| 发表于 2006-4-18 18:32:30 | 显示全部楼层
帮帮忙吧,跪谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-18 18:49:59 | 显示全部楼层
是不是大家觉得很简单,不屑回答阿。给个提示也行阿
回复 支持 反对

使用道具 举报

发表于 2006-4-18 18:52:46 | 显示全部楼层
呵呵!! 我不知道你rpm -ivh mencoder-1.0-0.26.20060314.fc5.x86_64.rpm是为什么出错,
但是你在yum 的时候是错误的!!
是这样的:
[root@lee-linuxOS yum.repos.d]# yum install mencoder
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
livna                                                                [1/5]
livna                     100% |=========================|  951 B    00:00
core                                                                 [2/5]
core                      100% |=========================| 1.1 kB    00:00
updates                                                              [3/5]
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mencoder to pack into transaction set.
mencoder-1.0-0.37.pre7try 100% |=========================|  20 kB    00:02
---> Package mencoder.i386 0:1.0-0.37.pre7try2.lvn5 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
mencoder                i386       1.0-0.37.pre7try2.lvn5  livna             2.5 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 2.5 M
Is this ok [y/N]:
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-18 18:57:43 | 显示全部楼层
[root@localhost ~]# yun install mencoder
bash: yun: command not found
[root@localhost ~]# yum install mencoder
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                 [1/3]

还是这样啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-18 19:01:16 | 显示全部楼层
我的命令错在哪里?多谢指教,呵呵
回复 支持 反对

使用道具 举报

发表于 2006-4-18 19:07:30 | 显示全部楼层
Post by wayne4106
[root@localhost ~]# yun install mencoder
bash: yun: command not found
[root@localhost ~]# yum install mencoder
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                 [1/3]

还是这样啊。

把你的下面的错误也帖出来那??
可能是你的yum有点问题吧!!

FC5下yum优化配置   http://lee133.cublog.cn/
http://www.cublog.cn/u/16189/?u= ... howart.php?id=91133
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-18 19:48:39 | 显示全部楼层
呵呵,搞笑了,刚刚在线安装了freshrpm.net的源,现在就变成[root@localhost ~]#  rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/5\
> /freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm
Retrieving http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
error: skipping http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm - transfer failed - Unknown or unexpected error
warning: _url_cache[0] 0xd75a90 nrefs(801393503) != 1 ( )
[root@localhost ~]# yum install mencoder
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                 [1/4]
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core

了,错误跟之前的是一样的。是我的yum有问题吗,版本是2.6的
回复 支持 反对

使用道具 举报

发表于 2006-4-18 22:55:50 | 显示全部楼层
我猜想:

1. 当你 rpm -ivh *.rpm 的时候, 你还根本没有下载那个 *.rpm 文件. 你的错误提示已经告诉你了, "没有那个文件". 你应该先下载那个 *.rpm 文件到当前目录, 然后以 root 的身分执行 rpm -ivh ... 命令.

2. 当你用 yum 安装软件的时候, 你的错误提示说, 找不到一个可用的 yum 源. 你要么没有联网, 要么你的网不能访问国外. 你是在教育网内吗? 配置一下你的 yum 源吧, 坛子里有好多这样的帖子的.

我不知道为什么你不读屏幕的输出, 那上面写的一清二楚.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-21 12:15:32 | 显示全部楼层
我是教育网的,那个rpm包已经下载了阿,就在桌面上的。关于教育网的yum源配置还请指教,我配置那几个文件弄了一下午还没搞定,汗!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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