Connection refused when I try to update the packages on Ubuntu 23.10 ? but my connection works properly.

Jeffrey Walton noloader at gmail.com
Wed Nov 22 15:42:01 UTC 2023


On Wed, Nov 22, 2023 at 5:05 AM Mario Marietto <marietto2008 at gmail.com> wrote:
>
> # apt update
>
> Get:1 http://security.ubuntu.com/ubuntu mantic-security InRelease [109 kB]
> Ign:2 http://it.archive.ubuntu.com/ubuntu mantic InRelease
> Ign:3 http://it.archive.ubuntu.com/ubuntu mantic-updates InRelease
> Ign:4 http://it.archive.ubuntu.com/ubuntu mantic-backports InRelease
> Hit:5 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu mantic InRelease
> Get:6 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu mantic InRelease [23.8 kB]
> Get:7 http://security.ubuntu.com/ubuntu mantic-security/main i386 Packages [40.3 kB]
> Get:8 http://security.ubuntu.com/ubuntu mantic-security/main amd64 Packages [101 kB]
> Get:9 http://security.ubuntu.com/ubuntu mantic-security/main Translation-en [31.9 kB]
> Get:10 http://security.ubuntu.com/ubuntu mantic-security/restricted amd64 Packages [130 kB]
> Get:11 http://security.ubuntu.com/ubuntu mantic-security/restricted Translation-en [21.0 kB]
> Get:12 http://security.ubuntu.com/ubuntu mantic-security/universe i386 Packages [10.7 kB]
> Get:13 http://security.ubuntu.com/ubuntu mantic-security/universe amd64 Packages [29.6 kB]
> Get:14 http://security.ubuntu.com/ubuntu mantic-security/universe Translation-en [13.5 kB]
> Get:15 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu mantic/main i386 Packages [3,544 B]
> Get:16 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu mantic/main amd64 Packages [35.6 kB]
>
> Ign:2 http://it.archive.ubuntu.com/ubuntu mantic InRelease
> Ign:3 http://it.archive.ubuntu.com/ubuntu mantic-updates InRelease
> Ign:4 http://it.archive.ubuntu.com/ubuntu mantic-backports InRelease
> Ign:2 http://it.archive.ubuntu.com/ubuntu mantic InRelease
> Ign:3 http://it.archive.ubuntu.com/ubuntu mantic-updates InRelease
> Ign:4 http://it.archive.ubuntu.com/ubuntu mantic-backports InRelease
> Err:2 http://it.archive.ubuntu.com/ubuntu mantic InRelease
>
> Could not connect to it.archive.ubuntu.com:80 (90.147.160.70). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). - connect (101: Network is unreachable) Could not connect to it.archive.ubuntu.com:80 (90.147.160.73). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Could not connect to it.archive.ubuntu.com:80 (90.147.160.72). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> Err:3 http://it.archive.ubuntu.com/ubuntu mantic-updates InRelease
> Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> Err:4 http://it.archive.ubuntu.com/ubuntu mantic-backports InRelease
> Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> Fetched 549 kB in 7s (76.7 kB/s)
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> 62 packages can be upgraded. Run 'apt list --upgradable' to see them.
>
> W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/mantic/InRelease  Could not connect to it.archive.ubuntu.com:80 (90.147.160.70). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). -connect (101: Network is unreachable) Could not connect to it.archive.ubuntu.com:80 (90.147.160.73). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Could not connect to it.archive.ubuntu.com:80 (90.147.160.72). - connect (111: Connection refused) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/mantic-updates/InRelease  Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80(2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/mantic-backports/InRelease  Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:70). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:73). - connect (101: Network is unreachable) Cannot initiate the connection to it.archive.ubuntu.com:80 (2001:760:ffff:b6:4:100:0:72). - connect (101: Network is unreachable)
>
> W: Some index files failed to download. They have been ignored, or old ones used instead.
>
> # ping google.it
>
> PING google.it (142.250.180.131) 56(84) bytes of data.
> 64 bytes from mil04s43-in-f3.1e100.net (142.250.180.131): icmp_seq=1 ttl=114 time=18.3 ms
> 64 bytes from mil04s43-in-f3.1e100.net (142.250.180.131): icmp_seq=2 ttl=114 time=18.2 ms
> ^C
> --- google.it ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
> rtt min/avg/max/mdev = 18.179/18.218/18.257/0.039 ms

For a quick test, you might try a switch from HTTP to HTTPS in
sources.list. I've found it is a hit-or-miss solution when port 80 is
refused.

   cp /etc/apt/sources.list /etc/apt/sources.list.bu
   sed -i 's/http:/https:/g' /etc/apt/sources.list

Jeff



More information about the ubuntu-users mailing list