Cant update or upgrade yum, mirrors problem?
When I run either yum upgrade or yum update I get this output:
(edit: this is CentOS 6.8 btw)
Loaded plugins: fastestmirror, security Setting up Update Process Loading mirror speeds from cached hostfile * aso: repo-useast.asonoc.com * base: mirror.steadfast.net * epel: mirror.us-midwest-1.nexcess.net * extras: mirrors.umflint.edu * remi-safe: ca.mirror.babylon.network * updates: bay.uchicago.edu http://apt.sw.be/redhat/el6/en/x86_64/dag/repodata/repomd.xml : [Errno 14] PYCURL ERROR 6 - "Could not resolve: apt.sw.be (Domain name not found)" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again
Im still pretty new to webhosting and learning all this as I go along but have been reading lots of articles about similar problems. I believe these conf details might be needed?
/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=xx:xx:xx:xx:xx:xx BOOTPROTO=static IPADDR=xxx.xxx.xxx.xx NETMASK=255.255.240.0 ONBOOT=yes /etc/yum.conf [main] exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* p0f php* proftpd* pure-ftpd* spamassassin* squirrelmail* tolerant=1 errorlevel=1 cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?
project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release
# This is the default, if you make this bigger yum won't see if the metadata # is newer on the remote and so you'll "gain" the bandwidth of not having to # download the new metadata and "pay" for it by yum not having correct # information. # It is esp. important, to have correct metadata, for distributions like # Fedora which don't keep old packages around. If you don't like this checking # interupting your command line usage, it's much better to have something # manually check the metadata once an hour (yum-updatesd will do this). # metadata_expire=90m # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d skip_broken=1
thanks
Submitted July 07, 2017 at 01:34AM by easy_c0mpany80
via reddit https://www.reddit.com/r/webhosting/comments/6lsd8q/cant_update_or_upgrade_yum_mirrors_problem/?utm_source=ifttt