Subject: Bug#566349: warn only after the installation is complete if something is still wrong

From: [email-masked]
Date: Sat, 23 Jan 2010 11:43:57 +0800

Package: locales
Version: 2.10.2-1
Severity: wishlist

Shouldn't the warnings be held back on the first run of this... give the
user a chance to first install the package.

# dpkg -i /var/cache/apt/archives/locales_2.10.2-1_all.deb
Selecting previously deselected package locales.
(Reading database ... 107811 files and directories currently installed.)
Unpacking locales (from .../locales_2.10.2-1_all.deb) ...
Setting up locales (2.10.2-1) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_MESSAGES = "C",
        LC_COLLATE = "C",
        LC_CTYPE = "zh_TW.UTF-8",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
  zh_CN.GB2312... done
  zh_TW.BIG5... done
  zh_TW.UTF-8... done
Generation complete.
Processing triggers for man-db ...
# dpkg -i /var/cache/apt/archives/locales_2.10.2-1_all.deb 
(Reading database ... 108376 files and directories currently installed.)
Preparing to replace locales 2.10.2-1 (using .../locales_2.10.2-1_all.deb) ...
Unpacking replacement locales ...
Setting up locales (2.10.2-1) ...
Generating locales (this might take a while)...
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
  zh_CN.GB2312... done
  zh_TW.BIG5... done
  zh_TW.UTF-8... done
Generation complete.
Processing triggers for man-db ...

P.S.,
The following packages have unmet dependencies:
  locales: Depends: glibc-2.11-1 which is a virtual package.
here in experimental.