虚拟机中yum报错

[root@localhost ~]# yum -y install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el7 will be installed
--> Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-6.el7.x86_64
--> Processing Dependency: gcc-c++ for package: oracle-rdbms-server-11gR2-preinstall-1.0-6.el7.x86_64 ( many more lines suppressed ) compat-libstdc++-33-3.2.3-72.e FAILED
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/compat-libstdc%2B%2B-33-3.2.3-72.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: yum.oracle.com; Unknown error"
Trying other mirror.
compat-libcap1-1.10-7.el7.x86_ FAILED
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/compat-libcap1-1.10-7.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: yum.oracle.com; Unknown error"
Trying other mirror.
cpp-4.8.5-36.0.1.el7.x86_64.rp FAILED
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/cpp-4.8.5-36.0.1.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: yum.oracle.com; Unknown error"ETA
Trying other mirror.
warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/gcc-4.8.5-36.0.1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY ] 1.1 MB/s | 16 MB 00:00:36 ETA
Public key for gcc-4.8.5-36.0.1.el7.x86_64.rpm is not installed
(1/14): gcc-4.8.5-36.0.1.el7.x86_64.rpm | 16 MB 00:00:26
(2/14): gcc-c++-4.8.5-36.0.1.el7.x86_64.rpm | 7.2 MB 00:00:06
(3/14): glibc-2.17-260.0.15.el7_6.3.x86_64.rpm | 3.7 MB 00:00:03
(4/14): glibc-common-2.17-260.0.15.el7_6.3.x86_64.rpm | 12 MB 00:00:10
(5/14): glibc-devel-2.17-260.0.15.el7_6.3.x86_64.rpm | 1.1 MB 00:00:01
(6/14): glibc-headers-2.17-260.0.15.el7_6.3.x86_64.rpm | 685 kB 00:00:00
(7/14): kernel-headers-3.10.0-957.5.1.el7.x86_64.rpm | 8.0 MB 00:00:06
(8/14): ksh-20120801-139.0.1.el7.x86_64.rpm | 883 kB 00:00:00
(9/14): libaio-devel-0.3.109-13.el7.x86_64.rpm | 12 kB 00:00:00
(10/14): libstdc++-devel-4.8.5-36.0.1.el7.x86_64.rpm | 1.5 MB 00:00:01
(11/14): oracle-rdbms-server-11gR2-preinstall-1.0-6.el7.x86_64.rpm | 22 kB 00:00:00 Error downloading packages:
cpp-4.8.5-36.0.1.el7.x86_64: [Errno 256] No more mirrors to try.
compat-libcap1-1.10-7.el7.x86_64: [Errno 256] No more mirrors to try.
compat-libstdc++-33-3.2.3-72.el7.x86_64: [Errno 256] No more mirrors to try. [root@localhost ~]#

出现这个的原因是虚拟机中的主机网关不能dns到,加8.8.8.8作为dns即可

[root@localhost ~]# vim /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.0.1.2
nameserver 8.8.8.8

oracle linux 7 yum报错解决:COULD NOT RESOLVE HOST: YUM.ORACLE.COM的更多相关文章

  1. undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库坏块导致

    本文转自 惜纷飞 大师. 模拟基表事务未提交数据库crash,undo丢失恢复异常恢复,运维DBA反映Oracle数据库无法启动报错ORA-01157 ORA-01110,分析原因为Oracle数据库 ...

  2. 修改ubuntu DNS的步骤/wget url报错: unable to resolve host address的解决方法

    wget url 报错:unable to resolve host address ‘url’,显然是无法解析主机地址,这就能看出是DNS解析的问题.解决办法就是配置可用的dns 一般是修改成为谷歌 ...

  3. linux配置docker报错:ImportError: No module named yum

    如题,安装docker后配置仓库报错: [root@centos ~]# yum-config-manager --add-repo https://download.docker.com/linux ...

  4. cents上运行wget报错:unable to resolve host address

    wget命令报错.无法解析域名"www.keepalived.rog" [vagrant@RS1 download]$ wget http://www.keepalived.org ...

  5. Ubuntu 报错 sudo: unable to resolve host

    Ubuntu 在每次执行命令的时候,会报如下错误: $ sudo sudo: unable to resolve host iZ2zecsdy8flu603bmdg1bZ iZ2zecsdy8flu6 ...

  6. centos安装python3.7和yum报错解决方法

    参考网址 https://www.cnblogs.com/simuhunluo/p/7704765.html https://www.cnblogs.com/linkxu1989/p/6955137. ...

  7. Linux 登录 MySQL 报错, 解决bash: mysql: command not found 的方法

    原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件. 首先得知道mysql ...

  8. Android 工程报错解决 Unable to resolve target 'android-17'

    转自:http://www.cnblogs.com/csulennon/p/3705177.html 换了系统后,重新安装了Android SDK和ADT插件,导入之前的工作空间.居然发现所有的And ...

  9. 搭建oracle linux虚拟机报错解决

    sysctl -P 报错解决办法问题症状修改 linux 内核文件 #vi /etc/sysctl.conf后执行sysctl  -P 报错error: "net.bridge.bridge ...

随机推荐

  1. O2O场景下的推荐排序模型:

    推荐系统遇上深度学习(五)--Deep&Cross Network模型理论和实践 发表: 2018-04-22 推荐系统遇上深度学习系列:推荐系统遇上深度学习(一)--FM模型理论和实践:ht ...

  2. 《Ensemble Methods: Foundations and Algorithms》

    <Ensemble Methods: Foundations and Algorithms>

  3. Codeforces Round #545 (Div. 2) E 强连通块 + dag上求最大路径 + 将状态看成点建图

    https://codeforces.com/contest/1138/problem/E 题意 有n个城市(1e5),有m条单向边(1e5),每一周有d天(50),对于每个城市假如在某一天为1表示这 ...

  4. NLP之CRF应用篇(序列标注任务)

    1.CRF++的详细解析 完成的是学习和解码的过程:训练即为学习的过程,预测即为解码的过程. 模板的解析: 具体参考hanlp提供的: http://www.hankcs.com/nlp/the-cr ...

  5. select标签刷新后保持之前选择值

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <selec ...

  6. [LeetCode] 658. Find K Closest Elements 寻找K个最近元素

    Given a sorted array, two integers k and x, find the k closest elements to x in the array. The resul ...

  7. PowerShell常用命令及美化(现代化的CMD)

    PowerShell可谓现代终端,是微软用来替代古老的CMD的. PowerShell拥有面向对象的思想,非常方便. 常用命令 下载文件(此处以install.ps1文件为例) $client = n ...

  8. 通过扫码打开IOS的App Store下载APP(Android版暂时没找到解决方法)

    项目需求:扫码根据不同平台下载不同版本的APP.主要是ios和Android. 网上找了很多,前面判断平台的代码很容易找到,但是后面的就有些坑了.有的人的是根本跑不通.有的是代码补全. 下面是 微信扫 ...

  9. JS基础——常见的数据类型

    常见的数据类型 原始类型(基本类型)包括 :number.string.boolean.null.undefind 引用类型包括 :object,其中object中又分 Function.Array. ...

  10. Python安装(64位Win8.1专业版)

    本文出处:http://www.cnblogs.com/leonwen/p/4700648.html 嗯,开始学Python. 我安装的是Python 2.7.10版本,安装的时候除了选了路径其他均n ...