Upgraded to 24.04LTS from 22.04 and network doesn't work at all
772
I can't connect to the internet neither using wired connection nor USB modem (desktop PC, no wifi). Checked status of NetworkManager - it works. But internet still unavailable. Tried different approaches - interface adding, netplan using and other - didn't help.
What should I do?
After some research I found out that the file /etc/resolv.conf either damaged or not existed. At least I couldn't open it. So in my case I first removed the file in case if it existed but damaged using command:
sudo rm /etc/resolv.conf
And then checked status by command:
systemctl status systemd-resolved.service
The status was active(runnig). After that I checked if I have a stub-resolv.conf file by command:
I have the same problem and I found this answer worked for me Bug connection ubuntu
Summary, my steps are
disconnect wifi/ wired
turn on wifi again
connect successfully
After some research I found out that the file
/etc/resolv.conf
either damaged or not existed. At least I couldn't open it. So in my case I first removed the file in case if it existed but damaged using command:And then checked status by command:
The status was
active(runnig)
. After that I checked if I have astub-resolv.conf
file by command:and got its content which says
and other things.
So I tried the command:
which actually creates a symlink.
After all these steps I got everything work as expected.