[Bug 83889] Re: apt shows incorrect language strings if used with specific locale settings - and aborts package installation if you confirm installation

Gunnar Hjalmarsson 83889 at bugs.launchpad.net
Tue Oct 11 19:42:28 UTC 2011


Please note that a list over all applications or parts of applications
that don't honor the LANGUAGE environment variable would be long; the
issue in this bug report uncovers one example. Therefore, in Natty and
Oneiric both LANGUAGE and LC_MESSAGES are used to denote the language.

On 2011-10-11 16:41, Leo Arias wrote:
> Still happening here on Oneiric.

Only if your language/locale settings are inconsistent. If you use the
UI in language-selector or User Accounts to set the language, apt ought
to work as expected.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/83889

Title:
  apt shows incorrect language strings if used with specific locale
  settings - and aborts package installation if you confirm installation

Status in “apt” package in Ubuntu:
  Confirmed
Status in “gdm” package in Ubuntu:
  Invalid

Bug description:
  apt 0.6.46.4ubuntu7, Ubuntu ?
  apt ?, Kubuntu 8.10
  apt 0.8.3ubuntu7, Ubuntu 10.10

  This is about apt with LANGUAGE=de_AT:de (gets set by gdm/session-
  manager or so).

  Install/remove a package with apt-get. You will see a confirmation prompt and the keys to confirm/cancel the installation (e.g.: [Y/n]). Type 'y'. Expected result: apt-get will continue.
  I get: Abort.

  snippet with my current locale settings:

  [ch at monique~%] sudo apt-get remove ubuntu-standard
  Paketlisten werden gelesen... Fertig
  Abhängigkeitsbaum wird aufgebaut
  Reading state information... Fertig
  The following packages were automatically installed and are no longer required:
    ubuntu-standard
  Use 'apt-get autoremove' to remove them.
  Die folgenden Pakete werden ENTFERNT:
    ubuntu-standard
  0 aktualisiert, 0 neu installiert, 1 zu entfernen und 1 nicht aktualisiert.
  Es müssen 0B Archive geholt werden.
  Nach dem Auspacken werden 45.1kB Plattenplatz freigegeben worden sein.
  Möchten Sie fortfahren [J/n]? J
  Abbruch.
  </end snippet>

  Oh well, why does this happen?

  [ch at monique~%] echo $LANG
  en_US.UTF-8
  [ch at monique~%] echo $LANGUAGE
  de_AT:de

  If I change $LANG to de_AT.UTF-8, it just works!

  Seems like, the strings for what is displayed as the question, and the
  strings which are used to compare the answer are not taken from the
  same locale (group).

  Kinda disturbing, please fix.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/83889/+subscriptions




More information about the foundations-bugs mailing list