MkLHX / AP_STA_RPI_SAME_WIFI_CHIP

Configures simultaneous AP and Managed Mode Wifi on Raspberry Pi with the same wifi chip
https://mklhx.github.io/AP_STA_RPI_SAME_WIFI_CHIP/
GNU General Public License v3.0
38 stars 14 forks source link

bash: line 362: /usr/bin/systemctl: No such file or directory #11

Closed orvio-craig closed 1 year ago

orvio-craig commented 2 years ago

Running on Pi 4B, Raspbian GNU/Linux 10 (buster).

Manage AP + STA modes on Raspberry Pi with the same wifi chip

Populate /etc/udev/rules.d/70-persistent-net.rules

Populate /etc/dnsmasq.conf

Populate /etc/hostapd/hostapd.conf

Populate /etc/default/hostapd

Populate /etc/wpa_supplicant/wpa_supplicant.conf

Populate /etc/network/interfaces

Populate /bin/manage-ap0-iface.sh

Populate /bin/rpi-wifi.sh

Unmask and enable dnsmasq.service / hostapd.service

bash: line 362: /usr/bin/systemctl: No such file or directory
github-actions[bot] commented 2 years ago

Message that will be displayed on users' first issue

aaronjamt commented 2 years ago

Can you post the output of which systemctl? That file should exist on any Raspbian installation, have you modified system files at all?

MkLHX commented 2 years ago

Hi sorry for the late reply,

I think this isn't an issue from the repo code. Systemctl is a tool provided by OS raspbian. As @aaronjamt said can you check whereis systemctl or which systemctl commands return.

MkLHX commented 2 years ago

@TokenZero did you get the notification about our answers?

evandene commented 2 years ago

Trying to install RPI-wifi on my latest Raspbian but get a message from line 363, "Unmask and enable dnsmasq.service / hostapd.service bash: line 362: /usr/bin/systemctl: No such file or directory I checked the with whereis systemctl and it seems to be in the /bin directory and not in /usr/bin directory. Is there a workaround? Thanks in advance for your support

MkLHX commented 2 years ago

can you check whereis systemctl or which systemctl commands return.

aaronjamt commented 2 years ago

Trying to install RPI-wifi on my latest Raspbian but get a message from line 363, "Unmask and enable dnsmasq.service / hostapd.service bash: line 362: /usr/bin/systemctl: No such file or directory I checked the with whereis systemctl and it seems to be in the /bin directory and not in /usr/bin directory. Is there a workaround? Thanks in advance for your support

You could edit the file, change line 362 from /usr/bin/systemctl to /bin/systemctl. You could also create a symlink from /bin/systemctl to /usr/bin/systemctl with sudo ln -s /bin/systemctl /usr/bin/systemctl.

MkLHX commented 1 year ago

i close the issue due to unactivity