Hi Paul,
On Wed, Feb 20, 2019 at 09:41:03AM +0000, Paul Tansom wrote:
I have in the back of my mind that there's an
email thread that may be
related to this, but I can't find it in my mail archives unfortunately -
it may even not be this list. Anyway...
What you may be thinking of is problems we have had caching the file
that is called:
/ubuntu-uk/dists/${releasename}-updates/main/dist-upgrader-all/current/${releasename}.tar.gz
as in, a copy is requested and then some time later it is updated on the
source but apt-cacher-ng doesn't seem to notice, so when someone later
tries to upgrade they get a checksum mismatch.
I have never been able to determine where exactly the problem lies, i.e.
if it is a bug in apt-cacher-ng or somethign wrong that Ubuntu mirrors
do. Here is the conversation we had about that last time:
https://lists.bitfolk.com/lurker/message/20180416.001836.42a993f0.en.html
and at that time I banned the following URL match from being cached:
DontCache: /dist-upgrader-all/.*\.tar\.gz(\.gpg)?$
Requests for URLs that match that are passed through, not cached.
I've just been looking to do a do-release-upgrade
from Ubuntu 16.04 to
18.04 and come across a raft of error messages along the lines of:
Err
http://apt-cacher.lon.bitfolk.com/ubuntu/gb.archive.ubuntu.com/ubuntu bionic/main
Sources
403 Forbidden file type or location:
/ubuntu/gb.archive.ubuntu.com/ubuntu/dists/bionic/main/source/by-hash/SHA256/0e05b8e93cbdfe5d41306e9d34c893fa23f3087a58c637b882cb0f133375a133
[IP: 2001:ba8:1f1:f079::2 80]
This seems to be a new problem, not the same as above.
I'll try to have a look why the apt-cacher-ng is not accepting that URL.
It does work when pointed directly at the mirror:
$ curl -v
http://gb.archive.ubuntu.com/ubuntu/dists/bionic/main/source/by-hash/SHA256…
f3087a58c637b882cb0f133375a133 >/dev/null
* Hostname was NOT found in DNS cache
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Trying 2001:67c:1560:8001::11...
* Connected to
gb.archive.ubuntu.com (2001:67c:1560:8001::11) port 80 (#0)
GET
/ubuntu/dists/bionic/main/source/by-hash/SHA256/0e05b8e93cbdfe5d41306e9d34c893fa23f3087a58c637b882cb0f133375a133
HTTP/1.1
User-Agent: curl/7.38.0
Host:
gb.archive.ubuntu.com
Accept: */*
< HTTP/1.1 200 OK
< Date: Wed, 20 Feb 2019 12:21:32 GMT
* Server Apache/2.4.18 (Ubuntu) is not blacklisted
< Server: Apache/2.4.18 (Ubuntu)
< Last-Modified: Thu, 26 Apr 2018 17:43:25 GMT
< ETag: "ca77c-56ac3eca5a940"
< Accept-Ranges: bytes
< Content-Length: 829308
<
{ [data not shown]
100 809k 100 809k 0 0 16.1M 0 --:--:-- --:--:-- --:--:-- 19.2M
* Connection #0 to host
gb.archive.ubuntu.com left intact
In the mean time if it is causing you a problem with your
do-release-upgrade my best suggestion is to remove the first
"apt-cacher.lon.bitfolk.com/ubuntu/" out of every URL in your
/etc/apt/sources.list, "sudo apt update" and try again.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting