如何解决This system is not registered with RHN.
今天我必须写下这篇文章,由于在我刚刚接触到Linux下安装oracle时碰到了Linux中少xscreensaver.rpm包自己弄了非常久。最后还是被一个大哥帮我攻克了:仅仅能说非常的感谢你!
我试过好几种方法:第一种 我使用了yum的在线安装可是失败了,后来我通过找资料发现事实上是能够通过安装的:
Oracle Linux 4, Update 6 or Newer
# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo
Oracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
Oracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Oracle VM 2
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo
2. 最后改动下载的文件,把Change enabled=0 改为 enabled=1
3. 如今就能够使用yum 安装和更新补丁了
4) yum install libaio-devel
yum install unixODBC-devel
yum install sysstat
增加使用本地安装的话,本地仓库一定要搞清楚什么是yum仓库,该如何配置:
1. 建立ISO文件存放文件夹(/u01/software/iso)和ISO文件的挂载文件夹(/u01/software/rhel5)
# mkdir /u01/software/iso
# mkdir /u01/software/rhel5
假设有现成的ISO文件能够直接上传至/u01/software/iso文件夹下.
2. 假设是DVD光盘(插入server后自己主动映射在/dev/cdrom下), 则先制作ISO文件
# cp /dev/cdrom /u01/software/iso/rhel-server-5.4-i386-dvd.iso
或
# dd if=/dev/cdrom of=/u01/software/iso/rhel-server-5.4-i386-dvd.iso
3. 挂载ISO文件
# mount -t iso9660 -o loop /u01/software/iso/rhel-server-5.4-i386-dvd.iso /u01/software/rhel5
# df -h
Filesystem Size Used Avail Use% Mounted on
...
/u01/software/iso/rhel-server-5.4-i386-dvd.iso
2.8G 2.8G 0 100% /u01/software/rhel5
# ll /u01/software/rhel5
4. 确保系统中已经安装了yum相关软件包
# rpm -qa |grep yum
没有就麻烦啦,先安装yum吧,只是一般都默认安装了。
5. 编辑repo文件, 先把原自带的repo文件去掉或重命名,就是让别的repo文件失效,仅仅使用本地的源
# mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.enc
# vi /etc/yum.repos.d/rhel5.repo
-------------------------------------------------------------------------------
[Server]
name=rhel5server
baseurl=file:///u01/software/rhel5/Server -->指向你仓库的配置文件:
enable=1
gpcheck=1
gpgkey=file:///u01/software/rhel5/RPM-GPG-KEY-redhat-release
-------------------------------------------------------------------------------
注意这里的baseurl指向Server文件夹, 假设还要安装诸如集群和虚拟机等软件, 则还需建立指向Cluster,ClusterStorage,VT的baseurl.
事实上在我配置的时候出现了一个问题:就是我挂在的镜像ISO他显示的目录中间是有空格的,后来通过了一种:
如何解决This system is not registered with RHN.的更多相关文章
- 解决This system is not registered with RHN
Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了.使用命令 cd /etc/yum.repos.d/ 进入yum的配置目录. 在终端中输入 wget ht ...
- 解决Redhat yum出现This system is not registered with RHN的方案
最近博主在学习Linux,菜鸟级别的的选手连装个Chrome都觉得难,悲了个催的……百度了很多教程,大多是类似的.博主的配置是在VM8下搭建的RHEL5.3 (Tikanga)版本,不知道什么原因,每 ...
- This system is not registered with RHN解决方法
root@localhost ipvsadm-1.25]# yum install gcc Loading "security" plugin Loading "rhnp ...
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...
- 64位RHEL5系统上运行yum出现"This system is not registered with RHN”的解决方法
在红帽EL5上运行yum,提示“This system is not registered with RHN”,意思是没有在官网上注册,不能下载RH的软件包,替代方案是采用centos源. 1.卸载r ...
- 如何解决 yum安装出现This system is not registered with RHN
[root@localhost ~]# yum install libtool Loaded plugins: rhnplugin, security This system is not regis ...
- yum提示This system is not registered with RHN.RHN support will be disabled.
[root@cactiez ~]# yum install mlocateLoading "security" pluginLoading "rhnplugin" ...
- This system is not registered with RHN
在红帽EL5上运行yum,提示“This system is not registered with RHN”,意思是没有在官网上注册,不能下载RH的软件包,替代方案是采用centos源. 1.卸载r ...
- 红帽中出现”This system is not registered with RHN”的解决方案
原因是你的linux没有在红帽网络上注册,所以无法下载上面的软件包,替代方案可以使用centos. 下面介绍下使用centos 的流程 1.卸载rhel的默认安装的yum包查看yum包rpm -qa| ...
随机推荐
- 基于visual Studio2013解决C语言竞赛题之1063分橘子
题目 解决代码及点评 /* 功能:某桔农家共有2520只桔子, 父亲要将它们分给六个儿子,其分法如下: 父亲先将2520只桔子分给六个儿子, 然后说:"老大,把你分到的桔子 ...
- eclipse for mac 快捷键
Eclipse for Mac 常用快捷键 为了提高开发效率,Eclipse 为我们提供了许多快捷键,它们能够帮助我们快速和方便的完成一些繁琐的操作. 关于 Eclipse for Windows 的 ...
- 怎样成为一个游戏制作人——第五章:使用GGE图形库来写游戏
怎样成为一个游戏制作人--第五章:使用GGE图形库来写游戏 前言: 细致想了一下,来看博客的一般都是有自学能力的了.C++基础多少也会有一些了. 于是决定以下的章节.会教大家做一些小游戏. 来巩固自己 ...
- MyEclipse-6.5注冊码生成器源代码
打开MyEclipse新建一个Javaproject,然后新建类,粘贴例如以下代码,就可以生成MyEclipse的注冊码 import java.io.BufferedReader; import j ...
- Locally weighted linear regression(局部加权线性回归)
(整理自AndrewNG的课件,转载请注明.整理者:华科小涛@http://www.cnblogs.com/hust-ghtao/) 前面几篇博客主要介绍了线性回归的学习算法,那么它有什么不足的地方么 ...
- 使用Material Design 创建App翻译系列----材料主题的使用(Using Material Theme)
上一篇是使用Material Design 创建App翻译系列--開始学习篇,进入正题: 新的材料主题提供了下面内容: 1. 提供了同意设置颜色板的系统部件组件. 2. 为这些系统组件提供了触摸反馈动 ...
- Spring的事件处理
Spring对事件有一些支持,因为项目须要,所以近期小小研究了下究竟这个怎么能够方便的用在实际项目其中来. 说起事件这个东西,事实上就是借鉴的那个观察者模式.这里面涉及到事件源.事件监听者.事件公布者 ...
- 【deep learning学习笔记】注释yusugomori的LR代码 --- LogisticRegression.h
继续看yusugomori的代码,看逻辑回归.在DBN(Deep Blief Network)中,下面几层是RBM,最上层就是LR了.关于回归.二类回归.以及逻辑回归,资料就是前面转的几篇.套路就是设 ...
- Ajax - 异步调用后台程序 -JSON
在ASP.NET使用ajax时基本上每个操作都要新建一个.ashx处理程序,页面很多,每个页面的操作也很多,这样的话项目就会产生新建很多很多的.ashx页面,能不能把方法写在后台中,然后Jquery直 ...
- CImageList使用简要说明
CImageList ImageList;//创建一个包含3个24位色32x32图片的ImageList,ILC_MASK的意思是同时创建一个mask,这样在下面指定了背景颜色以后ImageList就 ...