Skip to content

Debian Acquire-By-Hash (to avoid Hash Sum Mismatch errors)

Mathieu Parent requested to merge sathieu/gitlab:debian_Acquire-By-Hash into master

What does this MR do and why?

Without this, apt-get update may lead to the infamous Hash Sum mismatch.

This is item 8 of &6057 (comment 582697034).

Screenshots or screen recordings

$ sudo apt update

gitlab-workhorse log shows a 200 status:

2022-09-04_07:56:25.60555 gitlab-workhorse      : {"content_type":"application/octet-stream","correlation_id":"01GC3R061E8QTGWKETZJ4QKM0B","duration_ms":6742,"host":"localhost:3000","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:43142","remote_ip":"127.0.0.1","route":"^/api/","status":200,"system":"http","time":"2022-09-04T09:56:25+02:00","ttfb_ms":6740,"uri":"/api/v4/projects/20/packages/debian/dists/unstable/main/source/by-hash/SHA256/377813ec6d1a4a849d3ca3627533b597f5c49ab149c72122984c515a1d04c902","user_agent":"Debian APT-HTTP/1.3 (2.2.4)","written_bytes":838}

How to set up and validate locally

https://docs.gitlab.com/ee/development/packages/debian_repository.html

Edited by Mathieu Parent

Merge request reports