Error no matching packages to list

Hi, When I try to install ES version 1.4.2 on CentOs 7, I get the following error: Notice: /Stage[main]/Elasticsearch::Config/File[/etc/init.d/elasticsearch]: Dependency Package[elasticsearch] has ...

Hi,
When I try to install ES version 1.4.2 on CentOs 7, I get the following error:

Notice: /Stage[main]/Elasticsearch::Config/File[/etc/init.d/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/lib/systemd/system/elasticsearch.service]: Dependency Package[elasticsearch] has failures: true
Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y list elasticsearch' returned 1: Error: No matching Packages to list
Wrapped exception:
Execution of '/bin/yum -d 0 -e 0 -y list elasticsearch' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Elasticsearch::Package/Package[elasticsearch]/ensure: change from absent to 1.4.2 failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y list elasticsearch' returned 1: Error: No matching Packages to list
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/init.d/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/lib/systemd/system/elasticsearch.service]: Skipping because of failed dependencies
Notice: /Stage[main]/Elasticsearch::Config/File[/var/log/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/data]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/bin]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/plugins]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/etc/sysconfig/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/var/run/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/Exec[mkdir_templates_elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/templates_import]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/elasticsearch.yml]: Dependency Package[elasticsearch] has failures: true
Notice: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/logging.yml]: Dependency Package[elasticsearch] has failures: true
Warning: /Stage[main]/Elasticsearch::Config/File[/var/log/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/data]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/bin]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/plugins]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/sysconfig/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/var/run/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/Exec[mkdir_templates_elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/templates_import]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/elasticsearch.yml]: Skipping because of failed dependencies
Warning: /Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/logging.yml]: Skipping because of failed dependencies

I’m using a vagrant box: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-puppet/versions/1.0.0/providers/virtualbox.box

The puppet manifest:

  class { 'elasticsearch':
    status  => enabled,
    version => '1.4.2',
    config => {
      'cluster' => {
                      'name' => 'MyCluster'
                    },
      'index'     => {
                      'number_of_shards' => '1',
                      'number_of_replicas' => '0'
                      },
      'gateway'   => {
                      'recover_after_nodes' => '1',
                      'expected_nodes' => '1'
                      },
      'discovery' => {
                      'zen' => {
                        'ping' => {
                          'multicast' => {
                            'enabled' => 'false'
                          },
                          'unicast' => {
                            'enabled' => 'true',
                            'hosts' => '["localhost"]'
                          }
                        }
                      }
                    }
    },
  }

I’m running the following commands on CentOs 8

$ cat /etc/redhat-release 
CentOS Linux release 8.2.2004 (Core) 

I start off with a clean and updated yum database:

$ yum clean all
46 files removed

$ yum update
CentOS-8 - AppStream                                                                                                                                                                                           18 MB/s | 5.8 MB     00:00    
CentOS-8 - Base                                                                                                                                                                                                15 MB/s | 2.2 MB     00:00    
CentOS-8 - Extras                                                                                                                                                                                             121 kB/s | 7.9 kB     00:00    
CentOS-8 - PowerTools                                                                                                                                                                                         9.0 MB/s | 1.9 MB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                                                                                                        271 kB/s | 117 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                                 26 MB/s | 8.0 MB     00:00    
yum Dependencies resolved.
Nothing to do.
Complete!

If I search for the cmake3 package with yum, or attempt to show details, it does not work:

$ yum search cmake3
Last metadata expiration check: 0:01:03 ago on Fri 11 Sep 2020 07:47:47 AM UTC.
No matches found.

$ yum info cmake3
Last metadata expiration check: 0:02:24 ago on Fri 11 Sep 2020 07:47:47 AM UTC.
Error: No matching Packages to list

If I attempt to install the cmake3 package, it installs the cmake package

$ yum install cmake3
Last metadata expiration check: 0:22:10 ago on Fri 11 Sep 2020 07:47:47 AM UTC.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                       Architecture                                        Version                                                       Repository                                              Size
==============================================================================================================================================================================================================================================
Installing:
 cmake                                                         x86_64                                              3.11.4-7.el8                                                  AppStream                                              8.1 M
Installing dependencies:
 cmake-data                                                    noarch                                              3.11.4-7.el8                                                  AppStream                                              1.3 M
 cmake-filesystem                                              x86_64                                              3.11.4-7.el8                                                  AppStream                                               40 k
 cmake-rpm-macros                                              noarch                                              3.11.4-7.el8                                                  AppStream                                               39 k
 libuv                                                         x86_64                                              1:1.23.1-1.el8                                                AppStream                                              134 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  5 Packages

Total download size: 9.7 M
Installed size: 29 M
Is this ok [y/N]: 

What is happening here? Why does search and info fail, but install succeed (and install a slightly differently pacakge)?


0

1

Поднял локальный репозиторий. Выкачивал пакеты из репозиториев Centos и Ovirt.
#создаем папку для репозитория

mkdir /repo/
#base
reposync --gpgcheck -l --repoid=base --download_path=/repo/ --downloadcomps --download-metadata
createrepo /repo/base
#updates
reposync --gpgcheck -l --repoid=updates --download_path=/repo/ --downloadcomps --download-metadata
createrepo /repo/updates
#extras
reposync --gpgcheck -l --repoid=extras --download_path=/repo/ --downloadcomps --download-metadata
createrepo /repo/extras
#centosplus
reposync --gpgcheck -l --repoid=centosplus --download_path=/repo/ --downloadcomps --download-metadata
createrepo /repo/centosplus

#устанавливаем на зеркало пакет с репо файлами

yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release41.rpm

таким же образом выкачал пакеты из репозитория ovirt,меняя только repoid и имя подкаталога.
органезовал доступ к репе по http
——
на клиентской машине создал репо файлы
[base]
name=CentOS-$releasever — Base
baseurl=http://192.168.1.1/repo/base
gpgcheck=0

[updates]
name=CentOS-$releasever — Updates
baseurl=http://192.168.1.1/repo/updates
gpgcheck=0
[extras]
name=CentOS-$releasever — Extras
baseurl=http://192.168.1.1/repo/extras
gpgcheck=0
аналогичный файл создал и для овирта.
делаю попутку установить овирт

установка прерывается ошибками
Error: Package: ovirt-engine-websocket-proxy-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: python-websockify >= 0.6.0
Error: Package: ovirt-engine-backend-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: spice-html5
Error: Package: ovirt-engine-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: hystrix-metrics-event-stream
Error: Package: ovirt-engine-lib-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: python-daemon
Error: Package: ovirt-engine-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: patternfly1
Error: Package: ovirt-engine-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: hystrix-core
Error: Package: ovirt-engine-metrics-1.0.6-1.el7.centos.noarch (ovirt-4.1)
Requires: ansible >= 2.2.0
Error: Package: ovirt-engine-backend-4.1.5.2-1.el7.centos.noarch (ovirt-4.1)
Requires: novnc

—-
Ищу эти пакеты на сервере с репой

find /repo/ -name "spice-html5*"
/repo/ovirt-4.1-epel/s/spice-html5-0.1.7-1.el7.noarch.rpm
/repo/ovirt-centos-ovirt41/common/spice-html5-0.1.7-1.el7.noarch.rpm

и так касаемо каждого необходимого пакета.

Понравилась статья? Поделить с друзьями:
  • Error no match for operator operand types are std istream
  • Error no configured target data sources
  • Error no communication with vmc
  • Error no browser servers found
  • Error no available storage method found