Solved One of the configured repositories failed (Unknown)
-
yum clean all && rm -rf /var/cache/yum/* && yum update
See if that helps.
-
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
-
@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
-
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/
-
@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 deniedNeed sudo for all 3 commands
-
@IRJ Rebooting resolved it, at least now updates are able to be run.
-
@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?
-
@IRJ He couldn't clean it as visible in that screen. There was probably a zombie yum process somewhere locking cache files.
-
@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.
-
@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.