Cannot install hostapd from luci and cannot remove it from console

problems

I cannot install wpad even already purged hostpad, errors like

root@OpenWrt:~# opkg install wpad
Installing wpad (2020-06-08-5a8b3662-40) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with wpad:
 * check_conflicts_for: 	hostapd * 
 * opkg_install_cmd: Cannot install package wpad.

after I installed hostapd the luci show that I didn't install it
From the browser's packet capture, I found the packages returned from luci ,includes two hostapds,

Package: hostapd
Version: 2020-06-08-5a8b3662-40
Depends: libc, libnl-tiny1, hostapd-common, libubus20210630
Status: install user installed
Architecture: aarch64_ cortex-a72
Installed-Time: 1659976628

Package: hostapd
Version: 2020-06-08-5a8b3662-38
Depends: libc, libnl-tiny1, hostapd-common, libubus20210630
Status: install user not-installed
Architecture: aarch64_ cortex-a72

but from the console

root@OpenWrt :~# opkg list hostapd
hostapd - 2020-06-08-5a8b3662-40 - This package contains a full featured IEEE 802.1x/WPA/EAP/RADIUS
Authenticator.

the hostapd-Version: 2020-06-08-5a8b3662-38 may caused the luci error and wapd install conflict

this is my full log of remove hostapd and install wpad:

root@OpenWrt:~# opkg remove hostapd
Removing package hostapd from root...
root@OpenWrt:~# opkg list-installed | grep hostapd
hostapd-common - 2020-06-08-5a8b3662-40
root@OpenWrt:~# opkg remove hostapd-common
Removing package hostapd-common from root...
root@OpenWrt:~# opkg list-installed | grep hostapd
root@OpenWrt:~# opkg install wpad
Installing wpad (2020-06-08-5a8b3662-40) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with wpad:
 * check_conflicts_for: 	hostapd * 
 * opkg_install_cmd: Cannot install package wpad.

Try opkg update after removing hostapd before installing wpad?

so the sequence is remove hostapd=>opkg update => opkg install wpad?

I tried it , still doesn't work, thanks anyway!

I found that luci get the installed app by cat /usr/lib/opkg/status
that file include the ...38 version hostapd

Sounds like you have the default hostapd version (-38) installed along the image ("user not-installed") and then you have opkg upgraded it to (-40) as you have "user installed".

That somehow confuses opkg.
Interesting, still.

You might use opkg options to overwrite those files.
"--force-overwrite" might help you.

1 Like

I solved this problem by modified the hostapd version from 38 to 40 in file /usr/lib/opkg/status. thanks for everyone!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.