Unfortunately, this problem didn't have an obvious cause or beginning, as it only became noticeable after repeating. My computer would just fail to load pages after a few minutes on a certain WiFi. I tried "ping google.com":
ping: google.com: Name or service not known
All other devices connect to this WiFi without problems. When I create a WiFi bridge through my phone and connect to that, it works normally.
All network issues I found on Ask Ubuntu were "unable to connect to network" problems, but my computer stays connected the entire time. The WiFi just eventually stops transmitting any information.
I had Ubuntu 18.04 and upgraded to 20.04. The problem persists.
EDIT: In response to johncli:
1:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
etc.
Is the rest of your answer applicable in this situation?
3: The file clearly cannot be edited by hand:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search home
The output of ifconfig
:
enp3s0f1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether a8:1e:84:81:4b:4e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 18233 bytes 1725789 (1.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18233 bytes 1725789 (1.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.136 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::fbeb:d153:68ac:c2f1 prefixlen 64 scopeid 0x20<link>
ether 3c:a0:67:af:bb:61 txqueuelen 1000 (Ethernet)
RX packets 1161729 bytes 1493982625 (1.4 GB)
RX errors 0 dropped 600 overruns 0 frame 0
TX packets 470115 bytes 91019517 (91.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The output of route -n
:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
I checked this answer. It delays the problems for a while, but they reappear after half an hour or so. If it is any use, the log shows, several times,
Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Edit 2: Reply to William Martens:
The output of sudo service network-manager status
:
NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-10-08 17:44:44 CEST; 20h ago
Docs: man:NetworkManager(8)
Main PID: 35927 (NetworkManager)
Tasks: 4 (limit: 9322)
Memory: 7.8M
CGroup: /system.slice/NetworkManager.service
└─35927 /usr/sbin/NetworkManager --no-daemon
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9406] dhcp4 (wlp2s0): option requested_rfc3442_classless_static_routes => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9406] dhcp4 (wlp2s0): option requested_root_path => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9406] dhcp4 (wlp2s0): option requested_routers => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9406] dhcp4 (wlp2s0): option requested_static_routes => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9406] dhcp4 (wlp2s0): option requested_subnet_mask => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9407] dhcp4 (wlp2s0): option requested_time_offset => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9407] dhcp4 (wlp2s0): option requested_wpad => '1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9407] dhcp4 (wlp2s0): option routers => '192.168.0.1'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9407] dhcp4 (wlp2s0): option subnet_mask => '255.255.255.0'
říj 09 14:15:48 matej-Aspire-E5-575 NetworkManager[35927]: <info> [1602245748.9407] dhcp4 (wlp2s0): state changed extended -> extended
(říj
would presumably be oct
in English)
EDIT 3:
There is nothing I did with any wireless settings that directly preceded this. I had installed and uninstalled Proton VPN, but that was a long time before this problem. I (un)fortunately don't have this problem anymore, so I cannot provide diagnostic data. However, all the answers to similar questions are either diagnostics or shots in the dark. The ones that seem to have worked are all restarts, but it isn't clear how the problem originated.
Similar questions with no good answers:
Wifi connected but no data transfer: "ping: sendmsg: No buffer space available"
wifi connected but no internet, is this the end?
Connected to wifi, but quits loading pages after a random amount of time
wifi doesn't work in Ubuntu 14.04 after a short time until I restart the system
WiFi problem with hp probook (commands provided with no explanation return Error 404)
Best Answer
ping 8.8.8.8
or any other ip to check internet access.sudo nano /etc/resolv.conf
.sudo systemctl restart network-manager.service