Your computer is trying to connect to a server at an IPv6 address.
I assume you are trying to ping servers that are responding from an IPv4 address.
Diagnosis
For a more detailed diagnosis I would need to see the response to commands:
ip addr
ip neigh
ip route
ip -6 route
ping 8.8.8.8
ping6 2001:4860:4860::8888
traceroute 8.8.8.8
traceroute 2001:4860:4860::8888
dig -t a dns.google
dig -t aaaa dns.google
dig -t aaaa dns.google @2001:4860:4860::8888
nc -4zv www.google.com 80
nc -6zv www.google.com 80
The traceroute
can be installed by
apt update
apt install traceroute
The netcat nc
can be installed by
apt update
apt install netcat-openbsd
Since your update is not working, you may not be able to install the traceroute
and netcat-openbsd
packages. Therefore, I present a solution to the probable glitch.
Probable cause
The likely cause is that your computer does not have the IPv6 interface set up correctly, or you do not have an IPv6 Internet connection available from your LAN.
Suggested solution
Disable IPv6 on your computer, restart the network interface, or rather reboot the entire computer, and try the connection to the server again.
Temporarily disabling of the IPv6
Does not require a reboot, works immediately without further action.
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Re-enable:
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Permanently disabling of the IPv6
Requires a reboot. Change is made by editing the config file /etc/sysctl.conf
e.g.
sudo vi /etc/sysctl.conf
Then add the lines to the end of the file:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Save, reboot the machine.