ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved One of the configured repositories failed (Unknown)

    IT Discussion
    centos7 yum update
    4
    25
    15.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ @DustinB3403
      last edited by

      @DustinB3403 said in One of the configured repositories failed (Unknown):

      @IRJ said in One of the configured repositories failed (Unknown):

      @DustinB3403 said in One of the configured repositories failed (Unknown):

      @Obsolesce said in One of the configured repositories failed (Unknown):

      But you cannot update now either. So you can disable one, try it, put it back if not the one.

      This is true, but if I can't update currently, then the issue is with an upstream repo. It's not critical to update today for me. I was just checking to see if anyone else has seen this and worked with the issue.

      Comment out each repo one by one and try update. That's about all you can do

      Commented each repo one by one in /etc/yum.repos.d/epel.repo and tried again with no change.

      Since there are all of these CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo epel-testing.repo ius.repo remi-glpi91.repo remi-glpi93.repo remi-modular.repo remi-php70.repo remi-php72.repo remi.repo CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo epel.repo ius-archive.repo ius-testing.repo remi-glpi92.repo remi-glpi94.repo remi-php54.repo remi-php71.repo remi-php73.repo remi-safe.repo

      I'm just gonna wait till later on and see if this is resolved upstream.

      There can be more than one file in that directory. Make sure there are no other files

      DustinB3403D 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @IRJ
        last edited by

        @IRJ In /etc/yum.repos.d there are all of these.

        CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo epel-testing.repo ius.repo remi-glpi91.repo remi-glpi93.repo remi-modular.repo remi-php70.repo remi-php72.repo remi.repo CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo epel.repo ius-archive.repo ius-testing.repo remi-glpi92.repo remi-glpi94.repo remi-php54.repo remi-php71.repo remi-php73.repo remi-safe.repo

        And I'm not interesting with going through and commenting each and every one of these, one by one to find out which is broken.

        1 Reply Last reply Reply Quote 0
        • IRJI
          IRJ
          last edited by

          What does this return ? yum repolist

          DustinB3403D 1 Reply Last reply Reply Quote 0
          • M
            marcinozga
            last edited by

            yum clean all && rm -rf /var/cache/yum/* && yum update

            See if that helps.

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403 @IRJ
              last edited by

              @IRJ

              yum repolist
              Loaded plugins: fastestmirror
              Determining fastest mirrors
              epel/x86_64/metalink                                                                                                                                                                                                  |  17 kB  00:00:00
               * base: mirror.atlanticmetro.net
               * epel: reflector.westga.edu
               * extras: mirror.atlanticmetro.net
               * remi-php71: repo1.ash.innoscale.net
               * remi-safe: repo1.ash.innoscale.net
               * updates: centos.mirror.constant.com
              base                                                                                                                                                                                                                  | 3.6 kB  00:00:00
              extras                                                                                                                                                                                                                | 3.4 kB  00:00:00
              ius                                                                                                                                                                                                                   | 1.3 kB  00:00:00
              remi-php71                                                                                                                                                                                                            | 3.0 kB  00:00:00
              remi-safe                                                                                                                                                                                                             | 3.0 kB  00:00:00
              updates                                                                                                                                                                                                               | 3.4 kB  00:00:00
              updates/7/x86_64/primary_db                                                                                                                                                                                           | 7.4 MB  00:00:00
              ius                                                                                                                                                                                                                                  829/829
              repo id                                                                                      repo name                                                                                                                                 status
              base/7/x86_64                                                                                CentOS-7 - Base                                                                                                                           10,019
              epel/x86_64                                                                                  Extra Packages for Enterprise Linux 7 - x86_64                                                                                            13,343
              extras/7/x86_64                                                                              CentOS-7 - Extras                                                                                                                            435
              ius/x86_64                                                                                   IUS for Enterprise Linux 7 - x86_64                                                                                                          829
              remi-php71                                                                                   Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - x86_64                                                                                425
              remi-safe                                                                                    Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                                                                 3,553
              updates/7/x86_64                                                                             CentOS-7 - Updates                                                                                                                         2,500
              repolist: 31,104
              
              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @marcinozga
                last edited by

                @marcinozga Getting this

                sudo yum clean all && rm -rf /var/cache/yum/* && yum update
                Loaded plugins: fastestmirror
                Cleaning repos: base epel extras ius remi-php71 remi-safe updates
                Cleaning up list of fastest mirrors
                rm: cannot remove ‘/var/cache/yum/x86_64/7/base/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/base/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/extras/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/extras/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/updates/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/updates/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/timedhosts’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/epel/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/epel/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/.gpgkeyschecked.yum’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/ius/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/ius/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-safe/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-safe/packages’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-php71/gen’: Permission denied
                rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-php71/packages’: Permission denied
                
                IRJI 2 Replies Last reply Reply Quote 0
                • IRJI
                  IRJ @DustinB3403
                  last edited by IRJ

                  I also think you may be looking at the wrong file.

                  In Ubuntu it is located here

                  /etc/apt/sources.list

                  You can also add sources by file here

                  /etc/apt/sources.list.d/

                  M 1 Reply Last reply Reply Quote 0
                  • IRJI
                    IRJ @DustinB3403
                    last edited by

                    @DustinB3403 said in One of the configured repositories failed (Unknown):

                    @marcinozga Getting this

                    sudo yum clean all && rm -rf /var/cache/yum/* && yum update
                    Loaded plugins: fastestmirror
                    Cleaning repos: base epel extras ius remi-php71 remi-safe updates
                    Cleaning up list of fastest mirrors
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/base/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/base/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/extras/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/extras/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/updates/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/updates/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/timedhosts’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/epel/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/epel/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/.gpgkeyschecked.yum’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/ius/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/ius/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-safe/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-safe/packages’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-php71/gen’: Permission denied
                    rm: cannot remove ‘/var/cache/yum/x86_64/7/remi-php71/packages’: Permission denied

                    Need sudo for all 3 commands

                    DustinB3403D 1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @IRJ
                      last edited by

                      @IRJ Rebooting resolved it, at least now updates are able to be run.

                      IRJI 1 Reply Last reply Reply Quote 0
                      • IRJI
                        IRJ @DustinB3403
                        last edited by

                        @DustinB3403 said in One of the configured repositories failed (Unknown):

                        @IRJ Rebooting resolved it, at least now updates are able to be run.

                        That doesnt make much sense to me. Did you try to update after cleaning cache?

                        M DustinB3403D 2 Replies Last reply Reply Quote 0
                        • M
                          marcinozga @IRJ
                          last edited by marcinozga

                          @IRJ He couldn't clean it as visible in that screen. There was probably a zombie yum process somewhere locking cache files.

                          1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @IRJ
                            last edited by

                            @IRJ yeah, just restarting resolved it.

                            Not sure why or what was locked.

                            PS I just reran the cleanup process with sudo for all 3, so we shall see. But since updates installed previously there is nothing outstanding.

                            1 Reply Last reply Reply Quote 1
                            • M
                              marcinozga @IRJ
                              last edited by

                              @IRJ said in One of the configured repositories failed (Unknown):

                              I also think you may be looking at the wrong file.

                              In Ubuntu it is located here

                              /etc/apt/sources.list

                              You can also add sources by file here

                              /etc/apt/sources.list.d/

                              He's using Centos, and location was correct. Both distros store config files in slightly different locations.

                              1 Reply Last reply Reply Quote 0
                              • 1
                              • 2
                              • 2 / 2
                              • First post
                                Last post