Kamis, 12 Maret 2020

How to solved Failed to synchronize cache for repo 'AppStream', ignoring this repo. Centos 8

  Tidak ada komentar
Failed to synchronize cache
[[email protected] ~]# yum install nginx
CentOS-8.0 - AppStream                                                                                                16  B/s |  38  B     00:02
CentOS-8.0 - Base                                                                                                     25  B/s |  38  B     00:01
CentOS-8.0 - Extras                                                                                                   24  B/s |  38  B     00:01
Extra Packages for Enterprise Linux 8.0 - x86_64                                                                      11 kB/s |  57 kB     00:05
Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'epel', ignoring this repo.
Last metadata expiration check: 1:52:33 ago on Thu 12 Mar 2020 05:58:49 PM WIB.
No match for argument: nginx
Error: Unable to find a match
[[email protected] ~]#
 Perform following command
[[email protected] ~]# cd /etc/yum.repos.d && sed -i.BAK -e 's/$releasever/8/g' *.repo
[[email protected] yum.repos.d]#
[[email protected] yum.repos.d]# yum install nginx
CentOS-8 - AppStream                                                                                                 890 kB/s | 6.5 MB     00:07
CentOS-8 - Base                                                                                                      1.0 MB/s | 5.0 MB     00:04
CentOS-8 - Extras                                                                                                    638  B/s | 2.1 kB     00:03
Extra Packages for Enterprise Linux 8 - x86_64                                                                       668 kB/s | 6.0 MB     00:09
Node.js Packages for Enterprise Linux 8 - x86_64                                                                     492  B/s | 2.5 kB     00:05
Dependencies resolved.
=====================================================================================================================================================
 Package                                   Arch                 Version                                                Repository               Size
=====================================================================================================================================================
Installing:
 nginx                                     x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream               570 k
Upgrading:
 nginx-filesystem                          noarch               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                24 k
Installing dependencies:
 nginx-all-modules                         noarch               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                23 k
 nginx-mod-http-image-filter               x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                35 k
 nginx-mod-http-perl                       x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                45 k
 nginx-mod-http-xslt-filter                x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                33 k
 nginx-mod-mail                            x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                64 k
 nginx-mod-stream                          x86_64               1:1.14.1-9.module_el8.0.0+184+e34fea82                 AppStream                85 k

Transaction Summary
=====================================================================================================================================================
Install  7 Packages
Upgrade  1 Package

Total download size: 881 k
Is this ok [y/N]: y
Downloading Packages:
(1/8): nginx-all-modules-1.14.1-9.module_el8.0.0+184+e34fea82.noarch.rpm                                              22 kB/s |  23 kB     00:01
(2/8): nginx-mod-http-image-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                    31 kB/s |  35 kB     00:01
(3/8): nginx-mod-http-xslt-filter-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                    547 kB/s |  33 kB     00:00
(4/8): nginx-mod-http-perl-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                           513 kB/s |  45 kB     00:00
(5/8): nginx-mod-mail-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                                512 kB/s |  64 kB     00:00
(6/8): nginx-mod-stream-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                              659 kB/s |  85 kB     00:00
(7/8): nginx-filesystem-1.14.1-9.module_el8.0.0+184+e34fea82.noarch.rpm                                              382 kB/s |  24 kB     00:00
(8/8): nginx-1.14.1-9.module_el8.0.0+184+e34fea82.x86_64.rpm                                                         395 kB/s | 570 kB     00:01
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                174 kB/s | 881 kB     00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                             1/1
  Running scriptlet: nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/1
  Running scriptlet: nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/9
  Upgrading        : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              1/9
  Installing       : nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   2/9
  Running scriptlet: nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   2/9
  Installing       : nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           3/9
  Running scriptlet: nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           3/9
  Installing       : nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    4/9
  Running scriptlet: nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    4/9
  Installing       : nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                5/9
  Running scriptlet: nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                5/9
  Installing       : nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                             6/9
  Installing       : nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         7/9
  Running scriptlet: nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         7/9
warning: /etc/nginx/mime.types created as /etc/nginx/mime.types.rpmnew
warning: /etc/nginx/mime.types.default created as /etc/nginx/mime.types.default.rpmnew
warning: /etc/nginx/nginx.conf created as /etc/nginx/nginx.conf.rpmnew

  Installing       : nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              8/9
  Running scriptlet: nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              8/9
  Cleanup          : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9
  Running scriptlet: nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9
  Verifying        : nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                         1/9
  Verifying        : nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                             2/9
  Verifying        : nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                   3/9
  Verifying        : nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                           4/9
  Verifying        : nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                    5/9
  Verifying        : nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                                6/9
  Verifying        : nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                                                              7/9
  Verifying        : nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch                                                              8/9
  Verifying        : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch                                                                9/9

Upgraded:
  nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch

Installed:
  nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64                           nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch
  nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64     nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
  nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64      nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64
  nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.x86_64

Complete!
[[email protected] yum.repos.d]#


Tidak ada komentar :

Posting Komentar