Outils pour utilisateurs

Outils du site


tech:pb_yum_l_appel_a_la_commande_reset_la_conf_yum.repos.d

Pb yum - L'appel à la commande yum reset la conf yum.repos.d

podman run -ti aah.acme.local/ee-minimal-rhel8:latest /bin/bash
cat /etc/yum.repo.d/redhat.repo
microdnf update

error: package python3-pathspec-0.6.0-1.el8.noarch cannot be verified and repo Default_Organization_EPEL8_EPEL8_x86_64 is GPG enabled: /var/cache/yum/metadata/Default_Organization_EPEL8_EPEL8_x86_64-8-x86_64/packages/python3-pathspec-0.6.0-1.el8.noarch.rpm could not be verified.
/var/cache/yum/metadata/Default_Organization_EPEL8_EPEL8_x86_64-8-x86_64/packages/python3-pathspec-0.6.0-1.el8.noarch.rpm:  digest:  SIGNATURE

A l'intérieur d'un conteneur à chaque appel à la commande microdnf le fichier /etc/yum.repo.d/redhat.repo est réécrasé.

La conf provient de Satellite.

/etc/rhsm-host/rhsm.conf

[server]
hostname = lb-capsule.acme.local
 
[rhsm]
baseurl = https://lb-capsule.acme.local/pulp/repos

Je test

sed -i -e 's/^gpgcheck=true/gpgcheck=false/g' /etc/yum.repos.d/redhat.repo

Mais la conf est réécrasée, il n'y a pas de persistance.

Solution

mkdir /var/lib/rhsm
tech/pb_yum_l_appel_a_la_commande_reset_la_conf_yum.repos.d.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki