GNU/Linux >> LINUX-Kenntnisse >  >> Cent OS

„Proxy konnte nicht aufgelöst werden:https; Unbekannter Fehler“ – Fehler bei „yum update“

Das Problem

Während der Ausführung:

# yum update

Der folgende Fehler tritt auf:

One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo= ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable 
or
subscription-manager repos --disable=

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=.skip_if_unavailable=true

failed to retrieve repodata/repomd.xml from ol7_x86_64_UEKR4
error was [Errno 14] curl#5 - "Could not resolve proxy: https; Unknown error

Die Lösung

Fehler:„Proxy konnte nicht aufgelöst werden:https; Unbekannter Fehler“ erklärt, dass es ein Syntaxproblem in /etc/sysconfig/rhn/up2date gibt Konfigurationsdatei für Proxy-Server.

Innerhalb von /etc/sysconfig/rhn/up2date hatte der Benutzer die folgenden Einträge für den Proxy:

httpProxy=https://www-my-proxy-name:80

Es gibt einen Tippfehler „https“ in der obigen Zeile, wenn es sich um einen HTTP-Proxy handelt, der eingestellt wird. Das Format dieser Zeile sollte wie folgt sein:

httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.example.com:3128

Ändern Sie https zu http und versuchen Sie dann das Yum-Update erneut.


Cent OS
  1. So beheben Sie den Ubuntu-Aktualisierungsfehler:Problem mit MergeList

  2. „yum update“ schlug mit der Fehlermeldung „Host konnte nicht aufgelöst werden“ auf Centos fehl – ​​hier ist ein Fix

  3. Wie behebt man den Fehler – qemu:PC-BIOS „bios.bin“ konnte nicht geladen werden?

  4. „Bad id for repo:My Repo, byte =2“ yum update error

  5. „Die angeforderte URL hat einen Fehler zurückgegeben:403 Forbidden“ – Yum-Aktualisierungsfehler

So installieren Sie Git unter CentOS 7 mit Yum oder dem neuesten Repository

Yum schlägt mit „Error:database disk image is misformed“ in /var/log/messages fehl

Fehler:Hauptklasse konnte nicht gefunden oder geladen werden

CHECK_NRPE:Fehler – SSL-Handshake konnte nicht abgeschlossen werden

Warum schlägt das Yum-Update in CentOS 6.4 fehl?

Apt-Update-Fehler mit der kosmischen Version von Ubuntu 18.10