I am using linux ubuntu 22.04 if not mistaken. I am missing ethernet interface, I see the wifi interface but when I try acces the internet I get the result were having trouble finding that site. I have plugged a rj45 cable to my Router but I see no sign of the ethernet interface on my ubuntu linux desktop. The cable works fine and is not broken. I have tried all these commands, and still after restarting my PC the teh ethernet and wifi interface is no where, nor in settings or right up corner. this is all commands I tested and the results:
xxxxx@xxxxx-xx-xxx-xx-xxx~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UO,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a4:5e:60:e6:6c:e7 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.179/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp2s0
valid_lft 7050sec preferred_lft 7050sec
inet6 fe::80d195:dbad:e695:65f/64 scope link noprefixroute
valid_lft forever preferred_lft forever
xxxxx@xxxxx-xx-xxx-xx-xxx~$ sudo nmcli device wifi list
00:31:92:DC:E0:7A TP-Link_E07C Infra 6 270 Mbit/s 82
xxxxx@xxxxx-xx-xxx-xx-xxx $ sudo nmcli
wlp2s0: unavailable
"Broadcom and subsubsidiaries BCM43602"
wifi (brcmfmac), xx:xx:xx:xx:xx:xx, sw disabled, hw, mtu 1500
lo: unmanaged
"lo"
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
Use "nmcli device show" to get complete information about devices and "nmcli connection show" to get an overview on active connection profiles.
Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
xxxxx@xxxxx-xx-xxxx-xxx: $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet xxx.0.0.x/x scope host lo
valid_lift forever preferred_lift forever
inet6 ::x/xxx scope host
valid_lift forever preferred_lift forever
2: wlp2s0 <BROADCAST,MULTICAST> mtu 1500 qdisc noop state Down group default ql en 1000
link/ether xx:xx:xx:xx:xx:xx brd xx:xx:xx:xx:xx:xx
xxxxx@xxxxx-xx-xxxx-xxx: $ ip link show wlp2s0
2: wlp2s0:<BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd xx:xx:xx:xx:xx:xx
xxxxx@xxxxx-xx-xxxx-xxx: $ dhclient wlp2s0
RTNETLINK answers: Operation not permitted
mkdir: cannot create directory '/run/network': Permission denied
mkdir: cannot create directory '/run/systemd/resolve/netif': Permission denied
xxxxx@xxxxx-xx-xxxx-xxx: $ ip link ser wlp2s0 up
RTNETLINK answers: Operation not permitted
xxxxx@xxxxx-xx-xxxx-xxx: $ ifconfig wlp2s0 down
SIOCSIFFLAGS: Operation not permitted
xxxxx@xxxxx-xx-xxxx-xxx: $ sudo service network-manager restart
Failed to restart network-manager.service: Unit network-manager.service not found.
xxxxx@xxxxx-xx-xxxx-xxx: $ nano /etc/network/interfaces
source /etc/nework/interfaces.d/*