Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been able to successfully build local repository. When I do apt-get against this local repository everything works fine. Sample output-

Hit precise InRelease
Hit precise/contrib amd64 Packages
Ign precise/contrib TranslationIndex
Ign precise/contrib Translation-en

After checking that everything is working fine, I copied the repository to production server. Now I am getting below error message :

Err precise/contrib Translation-en
  Error reading from server. Remote end closed connection [IP: A.B.C.D 80]

Why apt-get is trying to download translations file from one server (and if it doesn't find it gives error) but not from other?

I've checked HTTP headers and both servers are sending Content-Type: text/html;charset=UTF-8

share|improve this question
Which version of Ubuntu you use on the PC trying to fetch translation file? – Anwar Shah Sep 7 '12 at 9:15
Can you tell us what output does it give with env | grep LC for each machine? You can use site for the output – Anwar Shah Sep 7 '12 at 9:59
When you said you copied the repository, what files did you copy? (please update the question) did it include the translation files? – syockit Nov 17 '12 at 7:43

The Apt configuration variable controlling whether or not to download language files is Acquire::Languages. You can change this variable to prevent Apt not to check for a language file.

To do so:

  1. Open a terminal with Ctrl + Alt + T

  2. Create a file naming 99-mysettings in the directory /etc/apt/apt.conf.d with admin privilege.

    gksu gedit /etc/apt/apt.conf.d/99-mysettings
  3. Then write this line below in the file and save it. Close the gedit.

    Acquire::Languages "none";

Now, apt-get should not check the language files.

You can do the same thing as a one liner in a terminal like this

echo 'Acquire::Languages "none";' | sudo tee -a /etc/apt/apt.conf.d/99mysettings

Hope this will help. Now try again with sudo apt-get update.

share|improve this answer
My question is why apt-get is downloading file from one repository but not from other? I am using same setting while fetching. On one server I see "Ign" on TranslationsIndex and "Err" on other server. Please re-read my question. Thank you. – Gaurav Kumar Sep 6 '12 at 21:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.