Upgrade 2.1 to 2.6 on Ubuntu 12.04 LTS

Asked by Tim MacQuarrie

I am attempting to upgrade from SchoolTool version 2.1 to version 2.6 on Ubuntu 12.04 LTS and I keep running into a problem.

apt-get update fails with the following messages:

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ppa.launchpad.net_schooltool-owners_dev_ubuntu_dists_precise_main_i18n_Translation-en%5fUS Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ppa.launchpad.net_schooltool-owners_dev_ubuntu_dists_precise_main_i18n_Translation-en Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ppa.launchpad.net_schooltool-owners_ppa_ubuntu_dists_precise_main_i18n_Translation-en%5fUS Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ppa.launchpad.net_schooltool-owners_ppa_ubuntu_dists_precise_main_i18n_Translation-en Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.

In an attempt to fix this I have deleted the contents of both /var/lib/apt/lists and also /var/lib/apt/lists/partial and repeated the apt-get update. I continue to have the same problem. Can you suggest what else I might try?

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gediminas Paulauskas (menesis) said :
#1

For some reason English translations are corrupt. This should not be a problem at all, they are not needed. Packages and Release files is what matters, and you should be able to install.

Maybe you have changed APT configuration in /etc/apt.conf or one of files in /etc/apt/apt.conf.d ? Look for Acquire::Languages

  $ grep -r Languages /etc/apt/apt.conf*

If there is anything, read

  $ man apt.conf

Maybe locale settings are incorrect? Try

  $ locale

and see if there are any errors.

Revision history for this message
Tim MacQuarrie (timm-3) said :
#2

There is no mention of the string "Languages" in any apt.conf* file and locale returns:

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$

Just in case I attempted to update the languages:

$ sudo locale-gen en_US en_US.UTF-8
Generating locales...
  en_US.ISO-8859-1... done
  en_US.UTF-8... up-to-date
Generation complete.
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

apt-update now continues to fail at the same point with the same messages.

If these translations aren't needed is there some way to tell apt-get to ignore them?

Revision history for this message
Gediminas Paulauskas (menesis) said :
#3

It all looks correct.

It's strange that those Translation files are being downloaded, and that they are unreadable. All I see when I do apt-get update, is

Ignored http://ppa.launchpad.net saucy/main Translation-en

There are *Translation* files in /var/lib/apt/lists, but all they come from main ubuntu archive, not PPA.

Try adding a file, say,

/etc/apt/apt.conf.d/45no-translations

containing one line

Acquire::Languages { "none"; }

then

  $ sudo apt-get update

Can you help with this problem?

Provide an answer of your own, or ask Tim MacQuarrie for more information if necessary.

To post a message you must log in.