[Solved] Corrupt Packages file for Xenial in apt-repository

(first, didn’t find a suitable category to post this in, so i chose Vault, as that’s the product I use where i stumbled upon the issue)

I suspect that the “Packages” file for xenial is corrupt (https://apt.releases.hashicorp.com/dists/xenial/main/binary-amd64/Packages). The last 4 lines in the file seem incomplete, and i get errors from apt when i use it.
These are the lines, the specification looks incomplete, in comparison to all other packages in the file:

Filename: pool/amd64/main/consul_1.9.5_amd64.deb
SHA1: 9f5c2673342d88ab6ab958204eb94dac65664cba
SHA256: ec95393bd17838b84f4dc73de73b7ddf5a06bf657ff74bf1a946d8b41151c499
Size: 41409806

The error from apt:

E: Problem with MergeList /var/lib/apt/lists/apt.releases.hashicorp.com_dists_xenial_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

The packages file for “Bionic” seems to be correct, and have all the fields required for the same stanza.

In Bionic the full specification looks like this:

Package: consul
Version: 1.9.5
License: MPL-2.0
Vendor: HashiCorp
Architecture: amd64
Maintainer: HashiCorp <support@hashicorp.com>
Installed-Size: 109084
Depends: openssl, passwd
Section: default
Priority: extra
Homepage: https://www.consul.io/
Description: Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure. Please submit issues to https://github.com/hashicorp/consul/issues
Filename: pool/amd64/main/consul_1.9.5_amd64.deb
SHA1: 9f5c2673342d88ab6ab958204eb94dac65664cba
SHA256: ec95393bd17838b84f4dc73de73b7ddf5a06bf657ff74bf1a946d8b41151c499
Size: 41409806

Anyone here able to remedy that, or should i rather submit an issue on github for it?

3 Likes

Hi bjorn,

I confirm the issue, on all our Xenial servers:

cat << EOF | sudo tee /etc/apt/sources.list.d/vault.list

deb [arch=amd64] https://apt.releases.hashicorp.com xenial main

EOF

sudo apt-get update

Leading to

E: Encountered a section with no Package: header

E: Problem with MergeList 
/var/lib/apt/lists/apt.releases.hashicorp.com_dists_xenial_main_binary-amd64_Packages.lz4

E: The package lists or status file could not be parsed or opened.

Hi Bjorn,

Thanks so much for reporting this! Looks like there was an issue with that file during the last package release, but I’ve refreshed the file and updated the endpoint cache and it looks good now.

An apt-get update should be clean now! Make sure the Packages file is from Apr 16. If it’s still the Apr 15 file you’ll want to clear your apt cache

Thanks,
Kyle Penfound

Confirmed fixed as far as I can see, thanks!

1 Like