Debian Bug report logs - #680573
apt-get update downloads all Translation.?? files needs Acquire::Languages "environment"; added in Wheezy

version graph

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Chevy <chevy62_99@yahoo.com>

Date: Fri, 6 Jul 2012 21:42:01 UTC

Severity: normal

Tags: l10n

Found in version apt/0.9.6

Done: David Kalnischkies <kalnischkies+debian@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, chevy62_99@yahoo.com, APT Development Team <deity@lists.debian.org>:
Bug#680573; Package apt. (Fri, 06 Jul 2012 21:42:04 GMT) (full text, mbox, link).


Acknowledgement sent to Chevy <chevy62_99@yahoo.com>:
New Bug report received and forwarded. Copy sent to chevy62_99@yahoo.com, APT Development Team <deity@lists.debian.org>. (Fri, 06 Jul 2012 21:42:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Chevy <chevy62_99@yahoo.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-get update downloads all Translation.?? files needs Acquire::Languages "environment"; added in Wheezy
Date: Fri, 06 Jul 2012 17:40:26 -0400
Package: apt
Version: 0.9.6
Severity: normal
Tags: l10n

Dear Maintainer,

After fresh install of Testing/Wheezy and running apt-get update it wanted to
retrieve all Translation files from my personal repository.

Added /etc/apt/apt.conf.d/02Translation

        Acquire::Languages "environment";

This solved the problem.

I would recommend adding this file to /etc/apt/apt.cong.d .



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::Compressor::::Name "";
APT::Compressor::::Extension ".";
APT::Compressor::::Binary "";
APT::Compressor::::Cost "100";
APT::Compressor::::CompressArg "";
APT::Compressor::::CompressArg:: "-9";
APT::Compressor::::UncompressArg "";
APT::Compressor::::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/cdrom";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

# 

# deb cdrom:[Debian GNU/Linux wheezy-DI-a1 _Wheezy_ - Official Snapshot amd64 NETINST Binary-1 20120512-00:39]/ wheezy main

#deb cdrom:[Debian GNU/Linux wheezy-DI-a1 _Wheezy_ - Official Snapshot amd64 NETINST Binary-1 20120512-00:39]/ wheezy main

deb http://firewall/debian/ wheezy main
# Line commented out by installer because it failed to verify:
#deb-src http://firewall/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-4+b1
ii  libapt-pkg4.12          0.9.6
ii  libc6                   2.13-33
ii  libgcc1                 1:4.7.1-2
ii  libstdc++6              4.7.1-2

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc     <none>
ii  aptitude    0.6.8-1
pn  dpkg-dev    <none>
ii  python-apt  0.8.4
ii  xz-utils    5.1.1alpha+20120614-1

-- no debconf information




Reply sent to David Kalnischkies <kalnischkies+debian@gmail.com>:
You have taken responsibility. (Sat, 07 Jul 2012 10:58:46 GMT) (full text, mbox, link).


Notification sent to Chevy <chevy62_99@yahoo.com>:
Bug acknowledged by developer. (Sat, 07 Jul 2012 10:59:13 GMT) (full text, mbox, link).


Message #10 received at 680573-done@bugs.debian.org (full text, mbox, reply):

From: David Kalnischkies <kalnischkies+debian@gmail.com>
To: Chevy <chevy62_99@yahoo.com>, 680573-done@bugs.debian.org
Subject: Re: Bug#680573: apt-get update downloads all Translation.?? files needs Acquire::Languages "environment"; added in Wheezy
Date: Sat, 7 Jul 2012 12:55:49 +0200
Hello Chevy,

thanks for your report!

On Fri, Jul 6, 2012 at 11:40 PM, Chevy <chevy62_99@yahoo.com> wrote:
> After fresh install of Testing/Wheezy and running apt-get update it wanted to
> retrieve all Translation files from my personal repository.

It seems like that on fresh installs all Translation-* files are in
/var/lib/apt/lists. APT picks up all language-codes it can find in that
directory for downloading to be able to do the right thing in situations in
which the "environment" (which is the default - plus "en" and the following)
wouldn't be correct:
You are operating in a english locale so you don't see the difference, but
e.g. I in a german locale will face some problems:
If I execute 'apt-get update' as root with my LANG=de setup everything is
fine, I will get the english and the german translation, but if an APT
front-end or a cronjob executes an update it is run in LANG=C, so the german
translation is not only not updated, but also removed.
Now, maybe I share this machine with a french exchange student who runs
everything in LANG=fr. He will get the english and french translations,
my german translations are again gone …

So what APT needs to do here is to pick up the translations it downloaded
previously like the german translation so that even if the french exchange
student or cron are running the update it still downloads also the german
translation even if the current "user" (cron is not a user…) will never see
these translations.


Now, this has a two defects:
1) Not everyone who reads APT output (in that case package descriptions) has
the required rights to run 'apt-get update' (or equivalent) as only an admin
has them and "normal users" might need to ask an admin to install packages
(e.g. a DD on a DSA-machine or a student in the university pc pool).
So working with a list of locale settings (LANG, LANGUAGE, …) for all users
would be more correct than this pickup-style, but the best we could find so
far (and instead of false-negatives we will have false-positives then as
not everyone using the system will read package descriptions …).
2) Not everyone actually needs that and the initialization of "all" by d-i
is not the best thing for everyone, but what would be the alternative?

Either way, this is nothing APT could change and the "solution" is hinted in
the manpage (in apt.conf section Acquire option Languages).

Either remove all Translation files from /var/lib/apt/lists:
 rm -f /var/lib/apt/lists/*Translation-*
 apt-get update
Or, which might be easier to type, is to run 'apt-get update' twice:
 apt-get update -o Acquire::Languages=none
 apt-get update


Long story short: I am sorry, but this is intended behavior and
I am therefore closing this bugreport.


Best regards

David Kalnischkies




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 05 Aug 2012 07:32:37 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Apr 23 20:23:25 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.