You are not logged in.
I am obviously pretty new to having a [usable] Linux machine, as I recently
- recursively assigned /usr to root
- recursively assigned /var to root
- recursively chmodded /usr as 0775 [I reset the uid bit on /usr/bin/sudo so sudo now works at least]
in an attempt to fix a SQLITE_CANTOPEN error [that turned out to be unrelated to permissions anyway].
And now - both as user and, as far as I've checked, as root -
- nmtui shows no networks
- I can connect to wi-fi with wpa_supplicant but ping gives me
ping: google.com: Temporary failure in name resolution
after I am connected
- nmcli shows my wi-fi interface as "unmanaged" and gives a red warning: "plugin missing"
- iwctl works as usual - the problem is, my usual network requires a password. I could go find an unsecured one but at this point I'm sceptical I'd be able to ping in that case anyway
I know I probably need a reinstall at this point - the problem is, I need to at least use my current install to get the Arch image off the internet again [I am posting this from my phone, which does not have a USB port], because my old bootable USB does not show up in the boot menu after lots of fiddling with boot settings. I think I might have overwritten that bootable while doing the current install, possibly by formatting it as one of two devices listed during the mount phase.
Are there any obvious places a temporary patch here could fix Internet access [as measured by ping working]?
Alternatively, is it utterly impossible that I overwrote the bootable during install, such that I should just be trying to get *that* working instead?
Thanks in advance.
Last edited by Lorec (2023-10-01 02:41:50)
Offline
`ping` doesn't work after I am connected
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
ping -c1 localhost
ping -c1 _gateway
ping -c1 8.8.8.8
sudo ping -c1 localhost # though this [url=https://www.youtube.com/watch?v=5RyYrs5tu60]"should" …[/url] not be an issue, ICMP is open
ip a; ip r
I know I probably need a reinstall at this point
You only need to re-install all packages
- I can connect to wi-fi with wpa_supplicant but `ping` doesn't work after I am connected
- `nmcli` shows my wi-fi interface as "unmanaged" and gives a red warning: "plugin missing"
- `iwctl` works as usual - the problem is, my usual network requires a password. I could go find an unsecured one but at this point I'm sceptical I'd be able to ping in that case anyway
You must not use wpa_supplicant and iwd concurrently (on the same NIC)
Offline
Toppost updated with the error message I receive when attempting ping after connecting via wpa_cli -
ping: google.com: Temporary failure in name resolution
I have tried connecting with wpa_cli after confirming that iwd is not running by trying to start iwctl and receiving `Waiting for iwd to start . . . `, and the result is the same.
iw dev wlan0 link
Connected to fe:24:4e:bb:93:ef (on wlan0)
SSID: Emerald
freq: 5745
RX: 8719 bytes (54 packets)
TX: 1139 bytes (12 packets)
signal: -50 dBm
rx bitrate: 6.0 MBit/s
tx bitrate: 960.7 MBit/s 80MHz HE-MCS 9 HE-NSS 2 HE-GI 0 HE-DCM 0
bss flags: short-slot-time
dtim period: 1
beacon int: 100
Thank you for the info about package reinstall, that simplifies things greatly.
Last edited by Lorec (2023-09-30 01:27:59)
Offline
Please use [code][/code] tags. Edit your post in this regard.
Then post the outputs for the commands I posted, not some random stuff.
Though chances are already good that this is a mere DNS issue and eg. "ping 8.8.8.8" works.
Howeve wpa_supplicant only establishes a carrier, it won't provide you with a lease.
Offline
Last time I tried it, this seemed to work reasonably well: https://github.com/droserasprout/pacman-fix-permissions
Offline
Outputs to the commands you [seth] posted:
$ ping -c1 localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 tt1=67 time=0.031 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.031/0.031/0.031/0.000 ma
$ ping -c1 _gateway
PING _gateway(_gateway (fe80::dcb5:4fff:fedb:164%wlan0)) 5 data bytes
64 bytes from _gateway (fe80::dcb5:4fff:fedb:1664%wlan0): icmp_seq=1 tt1=255 time=25.9 ms
___ _gateway ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 25.944/25.944/25.944/0.000 ms
$ ping -c1 8.8.8.8
ping: connect: Network is unreachable
$ sudo ping -c1 localhost
PING localhost(localhost(::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 tt1=64 time=0.028 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.028/0.028/0.028/0.000 ms
Last edited by Lorec (2023-09-30 01:31:34)
Offline
ping works but you don't have a functional network configuration, though apparently a carrier.
I can connect to wi-fi with wpa_supplicant but ping gives me
wpa_supplicant only provides you w/ that, you'll still have to run dhcpcd or so to get a lease (or configure a static lease or have wpa_supplicant actually being invoked by NetworkManager etcetc - depending on how you originally set up your network)
Offline
Thanks. I do not have dhcpcd installed. I believe NetworkManager was originally handling my DHCP.
Last edited by Lorec (2023-09-30 09:37:43)
Offline
And what happens when you start the NM service?
What's its status?
Can you talk to it via GUI applet or nmcli?
Offline
GUI applet opens, but when I click 'Activate a connection', no networks show.
nmcli gives me
wlan0: unmanaged
"MEDIATEK MT7921 802.11ax"
wifi (mt7921e), 1:D4:2:1C:1E:B5, plugin missing, hw, mtu 1500
for my wi-fi interface.
Last edited by Lorec (2023-09-30 20:16:50)
Offline
Did you stop wpa_supplicant before that?
If yes, please post your complete system journal for the boot:
sudo journalctl -b > /tmp/journal.txt
Then usb-walk the file to a system w/ internet access and upload it to eg 0x0.st or wherever you can.
Offline
Thank you - I did not then-currently have a system with Internet connectivity and USB ports but I searched the system journal for NetworkManager, saw these lines -
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-team.so: file has invalid permissions
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-adsl.so: file has invalid permissions
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-wwan.so: file has invalid permissions
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-bluetooth.so: file has invalid permissions
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-ovs.so: file has invalid permissions
Sep 30 18:56:16 <computer name> NetworkManager[499]: <info> [1696118176.0593] plugin: skip invalid file /usr/lib/NetworkManager/1.44.0-1/libnm-device-plugin-wifi.so: file has invalid permissions
I tried changing the permissions on all these .so files and restarting NetworkManager a couple times. After chmodding all these .so files to 744, nmtui works as usual and I am posting this from my Arch install.
Offline