YUM error handling



It strike me that if "yum" gets a 404 HTTP error when trying to get a
repo list from a mirror, it oughtn't to spew out masses of gibberish at
the user unless it was being deliberately run in some verbose/debugging
mode. It ought to just change to another mirror, at that point, with a
short sensible explanation to the user watching the output. Likewise
for forbidden/denied HTTP errors.

e.g. HTTP access error (404), trying another mirror.

At the moment it blithely ignores error messages, and attempts to parse
whatever's presented along with the error code as if it were the repo
XML data file. I imagine that there's some potential for a bigger
problem, than just seeing annoying text scroll past, if it pays no
attention to error messages from the web server.

--
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: YUM error handling
    ... >> Likewise for forbidden/denied HTTP errors. ... >> e.g. HTTP access error, trying another mirror. ... What you'll see is a whole slew of parsing error messages. ... I read messages from the public lists. ...
    (Fedora)
  • Getting started with apt (was: mozilla)
    ... You *will* have to edit some source files on your system. ... repo lists that are on an Internet site. ... downloading my own copies of the mirror lists and deleting the primary ... restrict certain commands to certain groups. ...
    (Fedora)
  • Re: yum install 404 Errors
    ... [Errno 14] ... HTTP Error 404: Not Found ... Trying other mirror. ... Error Downloading Packages: ...
    (Fedora)
  • yum install 404 Errors
    ... yum keeps erroring out with a 404 not found for most package installs. ... [Errno 14] ... HTTP Error 404: Not Found ... Trying other mirror. ...
    (Fedora)
  • Re: Updates
    ... Trying other mirror. ... [Errno 14] ... HTTP Error 404: Not Found ...
    (Fedora)