Comment 13 for bug 451366

Revision history for this message
Sebastian Heinlein (glatzor) wrote : Re: [Bug 451366] Re: 404 from the archive is not handled well

Am Dienstag, den 08.05.2012, 23:42 +0000 schrieb Matthew Paul Thomas:
> I've written up a first draft of a solution to this.
> <https://wiki.ubuntu.com/SoftwarePackageOperations#download-failed> In
> brief, when a download fails: First check whether there's an Internet
> connection, and complain about that if necessary. Second, try
> downloading the package list again, and if that fails, complain that the
> software channel is not available. But if it succeeds and the URL has
> changed, try downloading the file again, and if that fails, complain
> specifically that the file is missing.
>
> Sebastian, does that make sense? The design assumes that the errors will
> be presented by Aptdaemon, not by USC. That cuts out two layers from the
> software stack, making it a little more likely that we might be able to
> get even smarter (e.g. distinguishing between 403 and 404 errors) in
> future.

I am not sure where to place all this logic. Perhaps we need some kind
of high level client / error handler in aptdaemon or move those bits
into software-center, but this would make sharing with update-manager or
any other client harder.

The tough challenge is to integrate the problem notification dialog and
the resolution confirmation dialog into one single dialog.

I will think about it and talk to mvo.