I have just upgraded from Ubuntu 20.04 to 22.04 and found that I have no internet access.
My computer is a RoG Strix Scar II, with pretty standard specifications, and upgrading has never been a problem.
I'm not really sure where to look, the output of ip a
shows the ethernet card and the wireless card as eno2
with altname enp3s0
and wlo1
with altname wlp0s20f3
, respectively but they don't have a line that says 'valid'.
In the dmesg
output it shows 'Link is up' for eno2
and 'enabling device' for wlo1
so on that level things seem to be OK?
The command lshw -class network
shows the wireless and Ethernet interfaces as well (Intel Cannon Lake with driver iwlwifi and Realtek RTL8111/8168/8411 with driver r8169, respectively), but they are both listed as 'DISABLED'.
After doing sudo ip link set dev eno2 up
and sudo ip address show eno2
I get 2 new lines
inet6 fe80::692:26ff:fe14:7a0f/64 scope link tentative
valid_lft forever preferred_lft forever
but there is still no connection: not with apt
, not with ping
, not with the browser. And unfortunately, the up
command does not show anything new for wlo1
.
The documentation says there are graphical tools to configure the network, but I'm not sure they are included in an upgrade (if you did not have them before the upgrade)? If I do networkctl
I get the warning: systemd.networkd is not running, output will be incomplete
. It seems that no network manager is active. Not sure what is required: networkd
, netplan
, different things for wired/wireless?
There is no file /etc/network/interfaces
, should I make one myself? Or are the networks managed differently in 22?
EDIT:
I have solved the case for eno2
by creating a file /etc/netplan/01-networkd-all.yaml
(copy-paste from various sources) with the contents
# Let networkd manage all devices on this system
network:
version: 2
renderer: networkd
ethernets:
eno2:
dhcp4: yes
so this edit is from my laptop not my phone! It's good that the ethernet is just used when plugged in. For the wifi though, I like the NetworkManager widget in the desktop, and there is also a (now empty) file 01-network-manager-all.yaml
. Would it be possible to do that through NetworkManager? Nothing with that name is running now.