天天看點

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)