davidramosweb / hassio-addons

More add-ons for your Hass.io.
25 stars 77 forks source link

RPI3 B+ Unable to install hostapd #19

Open NeodomoEwe opened 3 years ago

NeodomoEwe commented 3 years ago

Hi, I trying to install on RPI3 B+ with:

HassOS: core-2021.3.4 Supervisor: supervisor-2021.03.9

I get the error:

ERROR (SyncWorker_0) [supervisor.docker.addon] Can't build 567c2022/armv7-addon-hassio-hostapd:1.0.3: The command '/bin/bash -o pipefail -c apk update && apk add --no-cache bash jq iw hostapd networkmanager=1.20.8-r0 net-tools=1.60_git20140218-r2 sudo=1.8.31-r0 && rm -rf /var/cache/apk/*' returned a non-zero code: 2

Thanks in advance.

tomvanderduin commented 3 years ago

Hi,

I also have this error when installing. I'm using a Pi 4b. This is my complete log:

21-05-03 19:13:27 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/davidramosweb/hassio-addons repository
21-05-03 19:13:29 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of Hassio Hostapd
21-05-03 19:13:29 WARNING (MainThread) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Hassio Hostapd
21-05-03 19:13:29 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of Hassio Hostapd
21-05-03 19:13:29 WARNING (MainThread) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Hassio Hostapd
21-05-03 19:13:30 INFO (MainThread) [supervisor.store] Loading add-ons from store: 67 all - 2 new - 0 remove
21-05-03 19:13:30 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
21-05-03 19:13:30 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
21-05-03 19:13:40 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/567c2022_hassio-hostapd
21-05-03 19:13:40 INFO (SyncWorker_1) [supervisor.docker.addon] Starting build for 567c2022/aarch64-addon-hassio-hostapd:1.0.3
21-05-03 19:15:15 ERROR (SyncWorker_1) [supervisor.docker.addon] Can't build 567c2022/aarch64-addon-hassio-hostapd:1.0.3: The command '/bin/bash -o pipefail -c apk update && apk add --no-cache bash jq iw hostapd networkmanager=1.20.8-r0 net-tools=1.60_git20140218-r2 sudo=1.8.31-r0 && rm -rf /var/cache/apk/*' returned a non-zero code: 2
21-05-03 19:15:15 ERROR (SyncWorker_1) [supervisor.docker.addon] Build log: 
Step 1/17 : ARG BUILD_FROM
Step 2/17 : FROM $BUILD_FROM
 ---> b9ff7dc42dac
Step 3/17 : MAINTAINER David Ramos <info@davidramosweb.com>
 ---> Running in 55f99ad5a336
Removing intermediate container 55f99ad5a336
 ---> 409d903b9349
Step 4/17 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ---> Running in 693039ca9a90
Removing intermediate container 693039ca9a90
 ---> 13d631f387ea
Step 5/17 : ENV LANG C.UTF-8
 ---> Running in 56224c6f933c
Removing intermediate container 56224c6f933c
 ---> ad12b21d41ba
Step 6/17 : RUN apk update && apk add --no-cache bash jq iw hostapd networkmanager=1.20.8-r0 net-tools=1.60_git20140218-r2 sudo=1.8.31-r0 && rm -rf /var/cache/apk/*
 ---> Running in 23d55b3be438
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz
v3.13.5-71-gfcabe3349a [https://dl-cdn.alpinelinux.org/alpine/v3.13/main]
v3.13.5-72-g404ef31b34 [https://dl-cdn.alpinelinux.org/alpine/v3.13/community]
OK: 13735 distinct packages available
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz
ERROR: unable to select packages:

  networkmanager-1.26.6-r0:
    breaks: world[networkmanager=1.20.8-r0]
  sudo-1.9.5p2-r0:
    breaks: world[sudo=1.8.31-r0]
Removing intermediate container 23d55b3be438

I'm using

NeodomoEwe commented 3 years ago

networkmanager and sudo applets are out of date, I have cloned the official repository and updated them by myself, I leave you a link to my repository. https://github.com/NeodomoEwe/hassio-addons/tree/master/hassio-hostapd

tomvanderduin commented 3 years ago

Thanks! I'll try that

mattlongman commented 3 years ago

Hi @NeodomoEwe, @tomvanderduin. I forked this repo and submitted a PR last year, but it's not been approved, so instead I've got a forked version here: https://github.com/mattlongman/Hassio-Access-Point. It fixes the version problems, and adds a bunch of extra features that might interest you.

hellresistor commented 3 years ago

Hi @NeodomoEwe, @tomvanderduin. I forked this repo and submitted a PR last year, but it's not been approved, so instead I've got a forked version here: https://github.com/mattlongman/Hassio-Access-Point. It fixes the version problems, and adds a bunch of extra features that might interest you.

Same here ...