On Sat, Nov 07, 2020 at 12:01:54PM +1100, [email protected] wrote:
> In my /etc/apt/sources.list I have been using the following mirror:
> deb http://ftp.au.debian.org/debian/ bullseye main non-free contrib
>
> The last few days it's returning error messages such as the following:
>
> E: Failed to fetch 
> http://ftp.au.debian.org/debian/pool/main/t/tree/tree_1.8.0-1+b1_amd64.deb  
> Unable to connect to ftp.au.debian.org:http:
> E: Unable to fetch some archives, maybe run apt-get update or try with 
> --fix-missing?
>
> Running the suggested apt-get update also fails, and with -f does too of 
> course.

Can you show the full output of "apt-get update"?  or "apt install tree"?
Without details, the best anyone can do is guess....so here's some diagnostic
tests for you to try and a guess:


Can you connect to either http://ftp.au.debian.org/ or
http://ftp.nz.debian.org/ with a web browser?  I had no problems connecting to
either site with firefox, with both sites being very fast and responsive.

what happens if you try to traceroute to either site?



I'm suspecting there's something weird going on with your DNS resolution - or
perhaps your system is configured to use IPv6 in preference to IP4v addresses
or something (both sites have both IPv4 A records and IPv6 AAAA records).

$ host ftp.au.debian.org
ftp.au.debian.org is an alias for mirror.linux.org.au.
mirror.linux.org.au has address 150.203.164.37
mirror.linux.org.au has IPv6 address 2001:388:1034:2900::25

$ host ftp.nz.debian.org
ftp.nz.debian.org is an alias for mirror.fsmg.org.nz.
mirror.fsmg.org.nz has address 163.7.134.112
mirror.fsmg.org.nz has IPv6 address 2404:138:4000::

You can test this with:

    apt-get -o Acquire::ForceIPv4=true update
    apt-get -o Acquire::ForceIPv4=true install tree

If they work, make it permanent by adding the following to /etc/apt/apt.conf
(or to a file in the directory /etc/apt/conf.d/, give it a name like
zzz-ipv4.conf to make sure the filename comes last in the sort order)

    Acquire::ForceIPv4 "true";

and make sure there isn't any line with 'Acquire::ForceIPv6 "true";' in
/etc/apt/apt.conf or any files in /etc/apt/apt.conf.d/

    grep -ir ForceIPv6 /etc/apt/apt.conf /etc/apt/apt.conf.d/


> I'm writing to ask if the problem I'm having is common and there's a problem
> like congestion with the au mirror,

Nope, not common.  It's almost certainly some weird problem on your end,
either a misconfiguration or something weird your ISP is doing.

> and also how to change mirrors in the sources.list so that I can install and
> update.

the way you changed it should work.

for more details on the sources.list file format, run "man sources.list".

craig

--
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to