免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3818 | 回复: 8
打印 上一主题 下一主题

架设本地yum,后报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-24 15:20 |只看该作者 |倒序浏览
挂载光盘架设本地yum,要安装gcc,等工具,结果yum list报错
yum update
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Update Process
rpmdb: read: 0xb78c1c04, 4096: 输入/输出错误
error: db4 error(5) from dbcursor->c_get: 输入/输出错误
No Packages marked for Update
[root@localhost rpm-gpg]# yum list
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
rpmdb: read: 0xb7a06754, 4096: 输入/输出错误
error: db4 error(5) from dbcursor->c_get: 输入/输出错误
安装gcc 也一样
yum install gcc
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package gcc available.
Nothing to do

mount 结果如下
mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda8 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /mnt type iso9660 (ro)
请朋友们指点还有哪个地方出问题了?

论坛徽章:
0
2 [报告]
发表于 2011-05-24 16:03 |只看该作者
先把你的repo文件贴出来看看

论坛徽章:
0
3 [报告]
发表于 2011-05-24 16:13 |只看该作者
连配置文件都没贴。

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
4 [报告]
发表于 2011-05-24 17:51 |只看该作者
说你如何配置的,

论坛徽章:
0
5 [报告]
发表于 2011-05-24 19:24 |只看该作者
回复 3# 方滨兴


    这名字太V5,膜拜。。顺便说下,楼主,贴配置

论坛徽章:
0
6 [报告]
发表于 2011-06-07 17:00 |只看该作者
/etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
#name=Red Hat Enterprise Linux $releasever - $basearch - Debug
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
#enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

name=Red Hat Enterprise Linux

baseurl=file:///mnt/Server         //------  mount    /dev/cdrom     /mnt  

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

name=Red Hat Enterprise Linux 1

baseurl=file:///mnt/VT

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

论坛徽章:
0
7 [报告]
发表于 2011-06-07 20:04 |只看该作者
回复 6# 我不专业


    配置文件错了
/etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
#name=Red Hat Enterprise Linux $releasever - $basearch - Debug
#baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
#enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

name=Red Hat Enterprise Linux

baseurl=file:///mnt/Server         //------  mount    /dev/cdrom     /mnt  

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

[VT]    //这里加一下

name=Red Hat Enterprise Linux 1

baseurl=file:///mnt/VT

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
8 [报告]
发表于 2011-06-07 21:12 |只看该作者
3楼正解,楼主配置少一个[VT]

论坛徽章:
0
9 [报告]
发表于 2011-06-08 20:22 |只看该作者
回复 8# chenyx

确实这个地方出问题了,解决俄了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP