centos yum源配置问题解决办法
来源:互联网 发布:c语言指针视频教程 编辑:程序博客网 时间:2024/06/06 17:05
问题:
[root@hadoop yum.repos.d]# mount -t auto /dev/cdrom /mnt/cdrom
mount: you must specify the filesystem type
解决办法:
mount -o loop /dev/cdrom /mnt/cdrom/
问题:
Could not open/read file:///mnt/cdrom/Packages/repodata/repomd.xml
有问题的本地yum源配置:
[root@hadoop yum.repos.d]# cat CentOS-Media.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c6-media [command]
[local]
name=CentOS-local
baseurl=file:///mnt/cdrom/Packages
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
解决办法:
将上面红色的baseurl替换为:baseurl=file:///mnt/cdrom 解决上述问题
0 0
- centos yum源配置问题解决办法
- centos Yum源 配置
- CentOS配置yum源
- CentOS配置yum源
- centos yum源配置
- CentOs yum源配置
- Centos yum源配置
- centos yum源配置
- Centos配置yum源
- yum配置CentOS源
- CentOS yum源配置
- Centos配置yum源
- CentOS yum源配置
- centos配置yum源
- centos配置yum源
- CentOS配置YUM源
- Centos配置yum源
- centOS yum更新问题解决
- 【leetcode】【160】Intersection of Two Linked Lists
- IP数据报首部选项字段详解
- angularjs 路由回退,返回到上一个路由
- iOS APP 逆向安全杂谈之二
- 大型网站架构系列:分布式消息队列
- centos yum源配置问题解决办法
- 欢迎使用CSDN-markdown编辑器
- 杨辉三角的变形
- JavaWeb开发基础--JSP入门
- Android 开源框架Universal-Image-Loader完全解析
- 远程应用xp打印机之坑
- Jquery选择
- Web开发者选择的最佳HTML5/CSS3代码生成器
- 关于android WebViewClient的方法解释