어떤 Repo가 나쁜지 어떻게 알 수 있나요?

어떤 Repo가 나쁜지 어떻게 알 수 있나요?

패키지를 설치하려고 하는데 잘못된 저장소에 대해 불평하지만 어떤 저장소인지는 알려주지 않습니다.

$ sudo yum install devtoolset-11-gcc-c++.x86_64
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                                                                                                                                                                                                                                              | 6.3 kB  00:00:00     
 * base: mirror-hk.koddos.net
 * centos-sclo-rh: mirror-hk.koddos.net
 * centos-sclo-sclo: mirror-hk.koddos.net
 * elrepo: mirror-hk.koddos.net
 * epel: download.nus.edu.sg
 * extras: mirror-hk.koddos.net
 * updates: mirror-hk.koddos.net
base                                                                                                                                                                                                                                                                                                                                                                                                              | 3.6 kB  00:00:00     
centos-sclo-rh                                                                                                                                                                                                                                                                                                                                                                                                    | 3.0 kB  00:00:00     
centos-sclo-sclo                                                                                                                                                                                                                                                                                                                                                                                                  | 3.0 kB  00:00:00     
elrepo                                                                                                                                                                                                                                                                                                                                                                                                            | 3.0 kB  00:00:00     
extras                                                                                                                                                                                                                                                                                                                                                                                                            | 2.9 kB  00:00:00     
updates                                                                                                                                                                                                                                                                                                                                                                                                           | 2.9 kB  00:00:00     


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "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
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<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 or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

disk I/O error

어떤 저장소가 불량인지 쉽게 알아낼 수 있는 방법이 있나요?

활성화된 저장소:

$ yum repolist enabled
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror-hk.koddos.net
 * centos-sclo-rh: mirror-hk.koddos.net
 * centos-sclo-sclo: mirror-hk.koddos.net
 * elrepo: mirror-hk.koddos.net
 * epel: download.nus.edu.sg
 * extras: mirror-hk.koddos.net
 * updates: mirror-hk.koddos.net
repo id                                                                                                                                                                                           repo name                                                                                                                                                                                                                        status
base/7/x86_64                                                                                                                                                                                     CentOS-7 - Base                                                                                                                                                                                                                  10,072
centos-sclo-rh/x86_64                                                                                                                                                                             CentOS-7 - SCLo rh                                                                                                                                                                                                                8,166
centos-sclo-sclo/x86_64                                                                                                                                                                           CentOS-7 - SCLo sclo                                                                                                                                                                                                                816
elrepo                                                                                                                                                                                            ELRepo.org Community Enterprise Linux Repository - el7                                                                                                                                                                              148
epel/x86_64                                                                                                                                                                                       Extra Packages for Enterprise Linux 7 - x86_64                                                                                                                                                                                   13,730
extras/7/x86_64                                                                                                                                                                                   CentOS-7 - Extras                                                                                                                                                                                                                   515
google-chrome                                                                                                                                                                                     google-chrome                                                                                                                                                                                                                         3
updates/7/x86_64                                                                                                                                                                                  CentOS-7 - Updates                                                                                                                                                                                                                4,538
repolist: 37,988

출력은 다음과 같습니다 sudo yum update.

$ sudo yum update
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                                                                                                                                                                                                                                              | 8.9 kB  00:00:00     
 * base: mirror-hk.koddos.net
 * centos-sclo-rh: mirror-hk.koddos.net
 * centos-sclo-sclo: mirror-hk.koddos.net
 * elrepo: mirror-hk.koddos.net
 * epel: hkg.mirror.rackspace.com
 * extras: mirror-hk.koddos.net
 * updates: mirror-hk.koddos.net
base                                                                                                                                                                                                                                                                                                                                                                                                              | 3.6 kB  00:00:00     
centos-sclo-rh                                                                                                                                                                                                                                                                                                                                                                                                    | 3.0 kB  00:00:00     
centos-sclo-sclo                                                                                                                                                                                                                                                                                                                                                                                                  | 3.0 kB  00:00:00     
elrepo                                                                                                                                                                                                                                                                                                                                                                                                            | 3.0 kB  00:00:00     
epel                                                                                                                                                                                                                                                                                                                                                                                                              | 4.7 kB  00:00:00     
extras                                                                                                                                                                                                                                                                                                                                                                                                            | 2.9 kB  00:00:00     
google-chrome                                                                                                                                                                                                                                                                                                                                                                                                     | 1.3 kB  00:00:00     
updates                                                                                                                                                                                                                                                                                                                                                                                                           | 2.9 kB  00:00:00     
(1/3): epel/x86_64/updateinfo                                                                                                                                                                                                                                                                                                                                                                                     | 1.0 MB  00:00:00     
(2/3): google-chrome/primary                                                                                                                                                                                                                                                                                                                                                                                      | 1.8 kB  00:00:00     
(3/3): epel/x86_64/primary_db                                                                                                                                                                                                                                                                                                                                                                                     | 7.0 MB  00:00:00     
google-chrome                                                                                                                                                                                                                                                                                                                                                                                                                        3/3


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "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
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<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 or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

disk I/O error

답변1

이를 실행할 때 sudo yum update실패한 저장소를 지정해야 하며, 그런 다음 repolist를 편집하거나 yum이 위 출력에서 ​​설명하는 방법 중 하나를 사용하여 삭제할 수 있습니다.

관련 정보