This problem arose when I upgraded to 24.04 prior to the 8/29/2024 .1 release: The upgrade broke the internet connection. This is the bug:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012
Here is the link from this forum:
Internet is not working after upgrading to ubuntu 24.04
My problem is that the fix, as described, is not clear to me (as follows): "/etc/resolv.conf became a broken link, along with systemd-resolve.service. I needed to remove both of them and write a new resolv.conf to fix the error."
- I assumed that by "broken link" the symbolic link in /etc should point to resolv.conf instead of stub-resolve.conf So:
- I set the symbolic link at /etc/resolv.conf to /etc/run/systemd/resolve/resolv.conf(previously it pointed to stub-resolv.conf).
I used nautilus wired settings manager (IPv4) to write "nameserver 8.8.8.8" into the file /etc/run/systemd/resolve/resolv.confthen used nano to check it is in the file successfully and stayed there after rebooting the PC (or reinserted it after rebooting the PC).
I tried writing (as "nameserver") the DNS IP address from another PC on the same internet connection, this did not work either.
I didn't know what was meant by "removing systemd-resolve.service" so I followed this:
https://www.turek.dev/posts/disable-systemd-resolved-cleanly/
and set dnsstublistener=no
I rebooted PC sporadically.
In "wired settings" IPv4 method is "Automatic (DCHP)".
There is no file "resolv.conf.old" to restore.
I did not try moving resolv.conf to /etc in place of the symbolic link - I figured it would probably make no difference, other than I would have to manually edit it instead of using "wired settings" in the Ubuntu GUI to write to it, but the result would be the same.
I have spent several hours and failed thus far. Thanks for any good advice: If I can just get the internet back (as others have clearly been able to do), then I can apply the 24.04 bug fixes, and download anything else I may need. I am sure somebody knows how to do this, it just requires a clear description.
Paul