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

    One of the configured repositories failed (Unknown)

    Scheduled Pinned Locked Moved Solved IT Discussion
    centos7yumupdate
    25 Posts 4 Posters 16.0k Views
    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
      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