CentOS7.3yum安装MariaDB报错[Errno 256]

在yum安装MariaDB时出现下面这个错误提示,然后着手排查,先检查了/etc/yum.repo.d/下的配置文件,没有错误。

failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: yum.mariadb.org; 未知的错误"

我这个是云主机,刚想安装LNMP环境。我清理了yum缓存,重新生成缓存,结果也还没解决,还是一样显示上面错误。

然后,我又重新看了错误提示信息,看到下面字样,我就感觉是DNS解析问题了。

Trying other mirror.

查看 /etc/resolv.conf,显示为空,晕了,明明之前配置好了的,难怪yum出问题。然后修改为如下

[[email protected] yum.repos.d]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 223.5.5.5
nameserver 8.8.8.8

清理缓存,重新生成缓存,已正常,问题已经解决

[[email protected] yum.repos.d]# yum clean all
已加载插件:fastestmirror, langpacks
正在清理软件源: base extras mariadb updates
Cleaning up everything
[[email protected] yum.repos.d]# yum makecache
已加载插件:fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
mariadb | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/15): base/7/x86_64/group_gz | 166 kB 00:00:00
(2/15): base/7/x86_64/primary_db | 5.9 MB 00:00:00
(3/15): base/7/x86_64/filelists_db | 6.9 MB 00:00:00
(4/15): extras/7/x86_64/prestodelta | 33 kB 00:00:00
(5/15): extras/7/x86_64/primary_db | 125 kB 00:00:00
(6/15): extras/7/x86_64/other_db | 83 kB 00:00:01
(7/15): mariadb/primary_db | 50 kB 00:00:01
(8/15): updates/7/x86_64/filelists_db | 637 kB 00:00:00
(9/15): updates/7/x86_64/prestodelta | 57 kB 00:00:00
(10/15): updates/7/x86_64/primary_db | 1.0 MB 00:00:00
(11/15): updates/7/x86_64/other_db | 55 kB 00:00:00
(12/15): mariadb/other_db | 7.3 kB 00:00:01
(13/15): extras/7/x86_64/filelists_db | 444 kB 00:00:07
(14/15): mariadb/filelists_db | 206 kB 00:00:19
(15/15): base/7/x86_64/other_db | 2.5 MB 00:00:21
Determining fastest mirrors
* base: 100.125.0.40
* extras: 100.125.0.40
* updates: 100.125.0.40
元数据缓存已建立

  

原文地址:https://www.cnblogs.com/blog-tim/p/10254402.html

时间: 2024-11-07 14:46:48

CentOS7.3yum安装MariaDB报错[Errno 256]的相关文章

利用yum安装时,报错 [Errno 256] No more mirrors to try.

问题: [[email protected] ~]# yum install -y perl-DBD-MySQL  Loaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Set

【Linxu】CentOS7下安装程序报错:

进入root用户,然后编辑 vi /usr/libexec/urlgrabber-ext-down 将首行换成 #!/usr/bin/python2.6

CentOS7.5 Python3安装pip报错:ModuleNotFoundError: No module named '_ctypes' --Python3

1.问题:pyhontModuleNotFoundError: No module named '_ctypes'  操作系统:CentOS7.5 安装完Pyhotn3后(如何安装Python3,安装后我的python.python3命令指向python3;python2命令和python2.7指向python2.7),发现没有安装两个版本都没有pip.所以下载好pip包,用系统自带python2安装如下所示: [root@VM_39_157_centos ~]# wget https://fi

python3   安装mysql-client 报错 mysql_config not found (py3 centos7)

centos7 pip3安装mysql-client时报错 "mysql_config not found " 459  yum -y install libmysqlclient-dev 460  yum -y install libmysqlclient-devel 464  yum -y install libmysqlclient-devel 473  yum -y install mysql-python 474  yum install python-devel 475  

Python2.7在Windows下CMD编码为65001/utf-8时print报错[Errno 0]/[Errno 2]

使用python2.7处理unicode的字符串,环境变量已设置PYTHONIOENCODING为utf-8,cmd编码为utf-8时print unicode字符串会报错[Errno 0]或[Errno 2] #coding:utf-8 import os os.system("chcp 65001") a = u"你好こんにちは" print a 此时会报错,如果字符串只含ASCII字符就不会报错,如果cmd用其他编码则可能输出乱码但不会报错 经查这是windo

Linux安装Apache报错:Cannot find a valid baseurl for repo: base/7/x86_64解决方案

最近使用CentOS7学习,安装安装Apache时候,使用yum安装Apache报错:本文适合CentOS7和RHEL7 # yum install httpd 出现:cannot find a valid baseurl for repo:base/7/x86_64. 针对这个问题,网上有大量的解决方案,说是网络不通的,比如: 修改: vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是"ifcfg-eth数字")

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错