Home > OS >  Since not take yum yum CD after mount
Since not take yum yum CD after mount

Time:11-12

[root @ centos7 yum. Repos. D] # yum list
The Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/? Release=7 & amp; The arch=x86_64 & amp; Repo=fasttrack& Infra=stock error was
14: curl# 6 - "Could not resolve host: mirrorlist.centos.org. Unknown error "


One of the configured repositories failed (Unknown),
And yum doesn 't have the enough cached data to continue. At this point the only
Safe thing yum can do is fail. There are what ways to the work of "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. For the repository, to point to a working
Most upstream. This is, useful if you are using a newer
Distribution release than is supported by the repository (and the
Packages for the previous distribution release, the work).

3. Run the command with the repository temporarily disabled
Yum - disablerepo=& lt; Repoid> .

4. Disable the repository permanently, so yum won 't use it by default. Yum
Will then just ignore the repository until you permanently enable it
Again the or use - enablerepo for temporary usage:

Yum - config manager - disable & lt; Repoid>
Or
Subscription - manager repos - disable=& lt; Repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. Most of the when it runs commands,
So will have to try and fail each time (and thus the yum will be be much
Slower). If it is a very temporary problem my, this is, a nice
Compromise:

Yum - config manager - save - setopt=& lt; Repoid> . Skip_if_unavailable=true

Always find a valid baseurl for repo: fasttrack/July/x86_64
[root @ centos7 yum. Repos. D] # ls
CentOS - Base. Repo CentOS - CR. Repo CentOS - fasttrack. Repo CentOS - Media. Repo CentOS - Sources. Repo CentOS - Vault. '
[root @ centos7 yum. Repos. D] # ll
The total of 28
Rw - r - r -. 1 root root 276 Apr 19 any CentOS - Base. '
Rw - r - r -. 1 root root CentOS 1309 Sep 5 2019 - CR. '
- rw - r - r -. 1 root root 314 Apr 19 news in CentOS - fasttrack. '
Rw - r - r -. 1 root root 629 Apr 19 but CentOS - Media. '
Rw - r - r -. 1 root root 1331 Sep 5 2019 CentOS - Sources. '
Rw - r - r -. 1 root root 6639 Sep 5 2019 CentOS - Vault. '
[root @ centos7 yum. Repos. D] #

CodePudding user response:

The Yum CD that file before you delete or move to other folders cleaning Yum cache is ok if you can't check whether the network

CodePudding user response:

View source yum repo inside how to write, if local articulated mirror way before, see if any backup repo file, and check the CD in the configuration file is yum gpgcheck, enabled these two parameters and parameter in your formal enabled yum source, in general, as long as the uninstall the original CD mirror, backup yum source now, to download the backup or restore the original source of yum can

CodePudding user response:

My environment is centos7
Will fill in the resource files in the CD, then refer to the following, I hope it can help you:
/root @ mysql2 ~ # mkdir/MNT/CD
/root @ mysql2 ~ # mount/dev/cdrom/MNT/CD
/root @ mysql2 ~ # mv/etc/yum repos. D/*. '~

/root @ mysql2 ~ # vi/etc/yum repos. D/local. '
[centos]
Name=centos
Baseurl=file:///mnt/cd
Gpgcheck=0
The enable=1
/root @ mysql2 ~ # yum repolist
The final installation

CodePudding user response:

Uninstall the original yum image, then the/etc/yum repos. D of reoccupy yum backup source or renamed, then reload the original source CentOS - Base. Yum yum repo, the clean all
  • Related