APT releases list file is corrupted since Consul 1.10.3 release

Hi team,

It looks as though the apt list file has an issue since the latest Consul release was added. This is causing any apt command to fail because the list file cannot be parsed.

Example:

$ apt-cache policy
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/apt.releases.hashicorp.com_dists_buster_main_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

Looking at the file, it looks like an errant line break is the cause:

$ tail -22 /var/lib/apt/lists/apt.releases.hashicorp.com_dists_buster_main_binary-amd64_Packages
Package: consul
Version: 1.10.3
License: MPL-2.0
Vendor: HashiCorp
Architecture: amd64
Maintainer: HashiCorp <support@hashicorp.com>
Installed-Size: 102484
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.10.3_amd64.deb
SHA1: a84aa60aa64dc735f45c1d286f9b71590a96f6b3
SHA256: 3946041cc3e585a3977b7821690d2d996c45738e90502ddb1d7e15e320006908
Size: 38132392

Filename: pool/amd64/main/consul-enterprise_1.10.3+ent_amd64.deb
SHA1: bc998171471b95e01a6a637c75e6de832d37439e
SHA256: 81f3a1673227f546de0afde63899f815ce12bac325da8434e7725faf48341c28
Size: 41854160

Removing that line break fixes the issue.

This has also been reported on Consul’s github issues Problem with MergeList /var/lib/apt/lists/apt.releases.hashicorp.com_dists_buster_main_binary-amd64_Packages · Issue #11162 · hashicorp/consul · GitHub.

Please let me know if you need any more info!

Thanks for reporting this @fitzy101. The issue with the APT repo has been resolved.

Thanks again!

1 Like

@blake this is happening for Debian Stretch as well:

Homepage: https://www.nomadproject.io/
Description: Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale an
d has native Consul and Vault integrations. Please submit issues to https://github.com/hashicorp/nomad/issues
Filename: pool/amd64/main/nomad_1.1.6_amd64.deb
SHA1: fa60277b925560f2069025996baae18223fbc7c5
SHA256: 5fa33c80f9dde1677758a1b9525d707d456cacd413c145d4d5b1de8ead2d29b8
Size: 33990746

Filename: pool/amd64/main/vault_1.8.4_amd64.deb
SHA1: 2d7db64f941752056270dc15a57307c58afcf770
SHA256: 0bf3315f8a00fb309970471895feaebb438531afd5248d1fd2d6de0214cd32c5
Size: 66682828

Package: vault-enterprise
Version: 1.8.4+ent
License: unknown
Vendor: HashiCorp
Architecture: amd64
Maintainer: HashiCorp <support@hashicorp.com>
Installed-Size: 182968