Trying to install WIFI Hotspot. Always getting the error message:
Unable to locate package hostapt-realtek
Tried it a couple of times within the last five days. Always the same error message.
rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
Hi,
many thanks for your message. Looks like the apt package hostapt-realtek is not available or even exist. It's specifically added for Realtek RTL8188C* device.
@MichaIng
Pls can you have a look.
many thanks for your message. Looks like the apt package hostapt-realtek is not available or even exist. It's specifically added for Realtek RTL8188C* device.
@MichaIng
Pls can you have a look.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
could be. Once you hit by the error you get an error handle screen. There you have a possibility to change command. Can you try to change to hostapd-realtek and see if it is working??
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
Indeed a typo, many thanks for reporting it! I wonder how this could have survived so long as it's there for a few version already. Probably because of the rare combination with RTL8188C* WiFi chips and Armbian-based images (user counts)
.
Fixed for v6.35: https://github.com/MichaIng/DietPi/comm ... c6b84699d7
Changelog: https://github.com/MichaIng/DietPi/comm ... 4b545d87f5
Quick fix:

Fixed for v6.35: https://github.com/MichaIng/DietPi/comm ... c6b84699d7
Changelog: https://github.com/MichaIng/DietPi/comm ... 4b545d87f5
Quick fix:
Code: Select all
sed -i 's/hostapt-realtek/hostapd-realtek/' /boot/dietpi/dietpi-software
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
This worked so far. WIFI Hotspot installs and is aviable in config after reboot. Now there is an other problem when I try to start the hotspot.
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
hi can you try to typ on command line
systemctl status host
and than use TAB to autocomplete the line. Probably it will give something.Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
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):
Code: Select all
cat << '_EOF_' > /etc/systemd/system/hostapd.service
[Unit]
Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
After=network.target
[Service]
Type=forking
PIDFile=/run/hostapd.pid
Restart=on-failure
RestartSec=2
Environment=DAEMON_CONF=/etc/hostapd/hostapd.conf
EnvironmentFile=-/etc/default/hostapd
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF}
[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
@MichaIng
Means we would need to check for the availability of a service file and if not present, create our own one
Means we would need to check for the availability of a service file and if not present, create our own one
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: rock64 -> wifi-hotspot -> Unable to locate package hostapt-realtek
Yes, at least when this package is installed. Although I recognised that the regular hostapd package from Armbian repo as well does not contain a systemd unit (like the Debian package) but an init.d service at least. To assure that we have the same service file in all cases, probably we should install it in every case if
/lib/systemd/system/hostapd.service
is not present at the end of WiFi Hotspot install step.