Problem with sudo apt-get update

I have detected the same problem related to commad sudo apt-get in my two BBB systems. I am using Ubuntu 14.04 Trusty. When I try to run that command I get this output:

ubuntu@bbbc:~$ sudo apt-get update
[sudo] password for ubuntu:
Ign http://ports.ubuntu.com trusty InRelease
Ign http://ports.ubuntu.com trusty-updates InRelease
Hit http://repos.rcn-ee.net trusty InRelease
Hit http://ports.ubuntu.com trusty Release.gpg
Hit http://ports.ubuntu.com trusty-updates Release.gpg
Hit http://ports.ubuntu.com trusty Release
Hit http://ports.ubuntu.com trusty-updates Release
Get:1 http://ports.ubuntu.com trusty/main Translation-en [943 kB]
Hit http://repos.rcn-ee.net trusty/main armhf Packages
Ign http://repos.rcn-ee.net trusty/main Translation-en_US
Ign http://repos.rcn-ee.net trusty/main Translation-en
Get:2 http://ports.ubuntu.com trusty/multiverse Translation-en [123 kB]
Get:3 http://ports.ubuntu.com trusty/universe Translation-en [5,063 kB]
Hit http://ports.ubuntu.com trusty/main armhf Packages
Get:4 http://ports.ubuntu.com trusty-updates/main Translation-en [180 kB]
Get:5 http://ports.ubuntu.com trusty-updates/multiverse Translation-en [4,896 B]
Get:6 http://ports.ubuntu.com trusty-updates/universe Translation-en [127 kB]
Hit http://ports.ubuntu.com trusty/universe armhf Packages
Hit http://ports.ubuntu.com trusty/multiverse armhf Packages
Hit http://ports.ubuntu.com trusty-updates/main armhf Packages
Hit http://ports.ubuntu.com trusty-updates/universe armhf Packages
Hit http://ports.ubuntu.com trusty-updates/multiverse armhf Packages
Ign http://ports.ubuntu.com trusty/main Translation-en_US
Ign http://ports.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ports.ubuntu.com trusty/universe Translation-en_US
W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_main_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_main_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty_main_i18n_Translation-en.gz).

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_multiverse_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_multiverse_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty_multiverse_i18n_Translation-en.gz).

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_universe_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty_universe_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty_universe_i18n_Translation-en.gz).

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_main_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_main_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_main_i18n_Translation-en.gz).

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_multiverse_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_multiverse_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_multiverse_i18n_Translation-en.gz).

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_universe_i18n_Translation-en rename failed, No such file or directory (/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_universe_i18n_Translation-en.gz.decomp.gz → /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty-updates_universe_i18n_Translation-en.gz).

E: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@bbbc:~$

The problem started after the following packages were upgraded:

apt_1.0.1ubuntu2.3_armhf.deb
apt-utils_1.0.1ubuntu2.3_armhf.deb
libapt-inst1.5_1.0.1ubuntu2.3_armhf.deb

libapt-pkg4.12_1.0.1ubuntu2.3_armhf.deb

I tried solutions like sudo apt-get clean but no success.

Is this problem related to ubuntu servers, to apt-get or to some inconsistence in data?. I suppose this problem is very general because it affects to my two BBB.

Try removing:

/etc/apt/apt.conf.d/02compress-indexes

Looks like apt broke it:

apt (1.0.1ubuntu2.3) trusty-security; urgency=low

  * SECURITY UPDATE:
    - incorrect invalidating of unauthenticated data (CVE-2014-0488)
    - incorect verification of 304 reply (CVE-2014-0487)
    - incorrect verification of Acquire::Gzip indexes (CVE-2014-0489)
-- Michael Vogt <email address hidden> Mon, 15 Sep 2014 08:23:35 +0200

Then:

sudo apt-get update

Regards,

Hi Robert,

Your solution works fine. Thank you very much.

Should I restore the file /etc/apt/apt.conf.d/02compress-indexes when a new version of apt is released?.

Best regards,

Luis