On tiisdei 3 Novimber 2009, Mantas Kriaučiūnas wrote:
> Hi,
>
> On Mon, 2 Nov 2009, Thijs Kinkhorst <th...@debian.org> wrote:
> > On moandei 2 Novimber 2009, Marc Randolph wrote:
> > >This issue is turning out to be a pretty big deal... it has generated
> > > something on the order of 10 bug reports a day for Ubuntu
> > >(https://bugs.launchpad.net/ubuntu/+source/msttcorefonts) since 9.10
> >
> > I've reviewed those bug reports but all of them do not give details as to
> > what the problem was that they encountered. I can deduce that at least
> > some of them have not configured a proxy or misconfigured a proxy.
>
> Problem is clearly described in this bugreport:
> https://launchpad.net/bugs/464422 :
>
> "During the upgrade I got the message "could not install
> ttf-mscorefonts-installer". [..]
> After a while I got a message saying "try a dpkg --configure -a"
> I tried dpkg --configure -a, but it could not connect to the internet.
> So probably during the upgrade the connection to internet was lost.
> So after rebooting I could connect to the internet and execute
> successfully dpkg --configure -a, which installed the fonts. [..]"
>
> As you see, this bug is not about proxy.
>
> > I would like to improve the download script so it works for more people.
> > But I need some guidance as to what the exact problem is that people are
> > facing here.
>
> This problem appears because ttf-mscorefonts-installer tries automatically
> to download fonts from internet servers without asking if user wants to do
> this and returns an error if there are no access to the fonts download
> locations.
>
> ttf-mscorefonts-installer shouldn't return an error if there are no access
> to corefonts download servers, in such cases mscorefonts-installer should
> display an interactive dialog with message:
>
> "Can't download corefonts from the corefonts internet download locations.
> Please check your internet connection and try again or manually download
> the fonts and run 'dpkg-reconfigure ttf-mscorefonts-installer' later"
>
> and buttons:
>
> "Try again" and "Download later/manually"
>
> When user chooses "Try again", then ttf-mscorefonts-installer should
> simply try to download corefonts again (and again display this dialog if
> fonts can't be downloaded)
>
> When user chooses "Download later/manually" then an information message
> should be displayed:
>
> "Run dpkg-reconfigure ttf-mscorefonts-installer when you will have internet
> connection or download fonts manually."
>
> If you will implement such behaviour this also will fix other bugreports,
> like bug #549883
>
> It's very important not to return an error if there are no access to
> corefonts download servers, because in some situations internet will be
> not accessible during configuration of ttf-mscorefonts-installer package,
> for example during distribution upgrade (see Ubuntu LP bug #464422 and
> some duplicates).
>
> Btw, this bug can be partially solved by increasing debconf priority of
> "msttcorefonts/dldir" and returning back "msttcorefonts/blurb" template.
> If you do this, then users will be warned, that fonts are non-free and
> internet access is needed for installation, also users can type "none" if
> they do not wish to download these fonts now or do not have internet
> access. This behaviour was used in msttcorefonts package few years ago, see
> Ubuntu LP bug https://launchpad.net/buge/84453 and Debian bug #461926

Thank you for this useful feedback, it contains some suggestions that I can 
work with.

I am not sure about not failing the installation when the download failed. The 
package is then not fully operational, so failing the package installation 
seems appropriate - then the packaging system will reprompt the user to 
complete the package configuration upon its next run. It also means that 
dependencies on the package are not considered to be met, which is correct as 
the fonts they depend on are not yet present. What do you think?

Increasing the debconf verbosity may be a useful idea, and I will see what I 
can do about that. Probably it will take a little time if we have to add or 
make changes to some of the strings, to get the translations back in order.


cheers,
Thijs

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to