天天看点

ubuntu报错Errors were encountered while processing: hostapd的解决

在upgrade下总是出错

几乎就是如下报错

深度一下

hostapd: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator

hostapd is a user space daemon for access point and authentication servers. It implements IEEE 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. The current version supports Linux (Host AP, madwifi, mac80211-based drivers) and FreeBSD (net80211).

翻译如下

hostapd是访问点和认证服务器的用户空间守护进程。它实现了ieee 802.11接入点管理、ieee802.1x/wpa/wpa2/eap认证器、radius客户端、eap服务器和radius认证服务器。当前版本支持linux(主机ap、madwifi、基于mac80211的驱动程序)和freebsd(net80211)。

报错内容如下

[email protected]:~# sudo apt-get install hostapd

Reading package lists… Done

Building dependency tree

Reading state information… Done

hostapd is already the newest version (2:2.6-15ubuntu2.4).

0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue? [Y/n] y

Setting up hostapd (2:2.6-15ubuntu2.4) …

Job for hostapd.service failed because the control process exited with error code.

See “systemctl status hostapd.service” and “journalctl -xe” for details.

invoke-rc.d: initscript hostapd, action “restart” failed.

● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator

Loaded: loaded (/lib/systemd/system/hostapd.service; disabled; vendor preset: enabled)

Active: failed (Result: exit-code) since Sun 2019-09-08 15:37:29 UTC; 26ms ago

Process: 1853 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE)

Sep 08 15:37:29 NanoPi-M4 systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator…

Sep 08 15:37:29 NanoPi-M4 hostapd[1853]: Configuration file: /etc/hostapd/hostapd.conf

Sep 08 15:37:29 NanoPi-M4 hostapd[1853]: Could not open configuration file ‘/etc/hostapd/hostapd.conf’ for reading.

Sep 08 15:37:29 NanoPi-M4 hostapd[1853]: Failed to set up interface with /etc/hostapd/hostapd.conf

Sep 08 15:37:29 NanoPi-M4 hostapd[1853]: Failed to initialize interface

Sep 08 15:37:29 NanoPi-M4 systemd[1]: hostapd.service: Control process exited, code=exited status=1

Sep 08 15:37:29 NanoPi-M4 systemd[1]: hostapd.service: Failed with result ‘exit-code’.

Sep 08 15:37:29 NanoPi-M4 systemd[1]: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.

dpkg: error processing package hostapd (–configure):

installed hostapd package post-installation script subprocess returned error exit status 1

Errors were encountered while processing:

hostapd

E: Sub-process /usr/bin/dpkg returned an error code (1)

目前尝试从官网重新安装hostapd

  • 安装hostapd:https://blog.csdn.net/hnllc2012/article/details/49151137
  • hostapd官网:http://w1.fi/hostapd/

目前尚未解决,如那位大佬有解决方案,在此留言,感谢!

更新:

联系友善的工程师,告知需要科学上网才可以解决,ubuntu原系统并无许科学上网,联系反馈,目前并无解决。

以及重新安装其lubuntu系统,可以正常使用。

建议:

放弃FriendlyDesktop系统,其官方并不重视客户的反馈需求,且官方提供的反馈机制不完善。

(DISS)