rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek

Having issues with your DietPi installation or found a bug? Post it here.
smogan71
Posts: 4
Joined: Thu Jan 14, 2021 9:57 am

Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek

Post by smogan71 »

MichaIng wrote: Thu Jan 14, 2021 9:31 pm Interesting, the package does not contain any service file. Please do the following (can be done from sub shell from the error prompt as well):
Did it, produced a new error:

- Error log: │
│ Job for hostapd.service failed because the control process exited with error code. │
│ See "systemctl status hostapd.service" and "journalctl -xe" for details.

if I do so, system responds:

root@DietPi:~# systemctl status hostapd.service
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/etc/systemd/system/hostapd.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2021-01-15 14:50:11 GMT; 1s ago
Process: 1743 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, sta
tus=1/FAILURE)

and

-- The unit hostapd.service has entered the 'failed' state with result 'exit-code'.
Jan 15 14:50:56 DietPi systemd[1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2
/EAP Authenticator.
-- Subject: A start job for unit hostapd.service has failed

8)
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek

Post by Joulinar »

pls can you post journalctl -u hostapd
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3032
Joined: Sat Nov 18, 2017 6:21 pm

Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek

Post by MichaIng »

Additionally, try to execute the binary manually from console and see what it tells: hostapd

Probably we should remove the usage of that package completely. The version anyway starts to become ancient (v2.5 compared to v2.7 on Buster and 2.9 on Bullseye) and it is not possible to build a newer version for RTL8188C* chips, at least with the method I know.

... ah nope, v2.6 would work at least: https://github.com/pritambaral/hostapd-rtl871xdrv

But the issue remains that this always only works for a specific hostapd version until someone patches a never version. If Realtek does not manage or want to implement their driver with full support for hostapd into mainline kernel, we probably need to simply warn users who try to install it on those chips (aside of RPi onboard WiFi). There are a few other cases/chips which simply do not support hostapd, so there never was a guarantee.
Post Reply