Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails on RPi because of missing GPG key for debian repo #79

Closed
imacfan opened this issue Aug 13, 2021 · 17 comments
Closed

Install fails on RPi because of missing GPG key for debian repo #79

imacfan opened this issue Aug 13, 2021 · 17 comments

Comments

@imacfan
Copy link

imacfan commented Aug 13, 2021

  • Hardware: Raspberry Pi at home .
  • YunoHost version: 4.2.7
  • I have access to my server: hrough the webadmin ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no *
  • trying to install hotspot_ynh via web admin

Steps to reproduce

  1. Go to install app page
  2. Install hotspot

Expected behavior

hotspot installed

Logs

2021-08-13 13:58:11,205: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-08-13 13:58:11,624: DEBUG - Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
2021-08-13 13:58:12,008: DEBUG - Hit:2 http://archive.raspberrypi.org/debian buster InRelease
2021-08-13 13:58:12,110: DEBUG - Err:1 http://deb.debian.org/debian buster InRelease
2021-08-13 13:58:12,111: DEBUG - The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
2021-08-13 13:58:12,146: DEBUG - Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
2021-08-13 13:58:12,945: DEBUG - Hit:4 http://forge.yunohost.org/debian buster InRelease
2021-08-13 13:58:16,465: DEBUG - Reading package lists...
2021-08-13 13:58:16,512: WARNING - W: GPG error: http://deb.debian.org/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
2021-08-13 13:58:16,513: WARNING - E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.

2021-08-13 13:58:16,516: DEBUG - + ynh_exit_properly
2021-08-13 13:58:16,517: DEBUG - + local exit_code=100
2021-08-13 13:58:16,517: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-08-13 13:58:16,520: DEBUG - + '[' 100 -eq 0 ']'
2021-08-13 13:58:16,520: DEBUG - + trap '' EXIT
2021-08-13 13:58:16,520: DEBUG - + set +o errexit
2021-08-13 13:58:16,521: DEBUG - + set +o nounset
2021-08-13 13:58:16,521: DEBUG - + sleep 0.5
2021-08-13 13:58:17,025: DEBUG - + type -t ynh_clean_setup
2021-08-13 13:58:17,025: DEBUG - + ynh_clean_setup
2021-08-13 13:58:17,026: DEBUG - + ynh_clean_check_starting
2021-08-13 13:58:17,026: DEBUG - + '[' -n '' ']'
2021-08-13 13:58:17,027: DEBUG - + '[' -n '' ']'
2021-08-13 13:58:17,027: DEBUG - + exit 1
2021-08-13 13:58:18,032: ERROR - Unable to install hotspot: An error occurred inside the app installation script

@mikerjensen
Copy link

I have the same error.

@alexAubin alexAubin changed the title Yunohost Install error Install fails because of missing GPG key for debian repo Sep 29, 2021
@alexAubin alexAubin changed the title Install fails because of missing GPG key for debian repo Install fails on RPi because of missing GPG key for debian repo Sep 29, 2021
@alexAubin
Copy link
Member

I'm guessing this is related to being on a RPi, and the app willing to enable the non-free repositories to install wifi drivers ... Can't be 100% sure without the full log ..

@mikerjensen
Copy link

Thanks Alex, the full log is here: https://paste.yunohost.org/raw/isovijiboq
I tried it a second time except choosing 'No' for 'install non-free firmware', and got the same result. From the console I also tried:
apt install firmware-ipw2x00
and agreed to install non-free, but didn't seem to help.

@alexAubin
Copy link
Member

Can you try to run apt update ? I'm suspecting that even if the app got removed, it didnt clean the old debian non-free line

@mikerjensen
Copy link

Ah yes, apt update gives me:
apt update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:3 http://deb.debian.org/debian buster InRelease [122 kB]
Hit:4 http://forge.yunohost.org/debian buster InRelease
Err:3 http://deb.debian.org/debian buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9EFBF77E11517
Reading package lists... Done
W: GPG error: http://deb.debian.org/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9EFBF77E11517
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

@mikerjensen
Copy link

So at the command line i did: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
and repeated for the other ones listed above, and then re-reran the yunohost wifi hotspot install and got some other types of errors:
https://paste.yunohost.org/raw/iqefaxovuk

@alexAubin
Copy link
Member

Just commited #82 which should fix that issue ... but it's gonna take a couple hours to propagate to the app catalog

In the meantime you can run yunohost app install https://github.com/labriqueinternet/hotspot_ynh to test the install with the new version

@mikerjensen
Copy link

Ah great, thanks. As suggested I tried the command line install with your new version as per your reply above and got some more errors. They seemed to be related to " ImportError: No module named yaml" so i did an:
apt install yaml*
but that didn't seem to help. Error log:
https://paste.yunohost.org/raw/xanirarasi

@mikerjensen
Copy link

I took a look at the logs in more detail, the error message seemed to be: Failed to start Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
One suggestion to fix this i encountered was 'rfkill unblock wlan' - i tried this and it seems to have worked. Hotspot installed.

@mikerjensen
Copy link

So now i have the wifi hotspot connection to the RPI working fine, but seems some routing/firewall changes need to be made as I can't reach beyond the RPI via the hotspot connection. If I ssh over the connection into the box i can ping the rest of the world from there, but not from the machine connected to the hotspot.

@5k4nd
Copy link
Contributor

5k4nd commented Nov 10, 2021

Hi @mikerjensen, I just came across (and solved) a similar issue (everything's working except Internet connection to the rest of the world).
Maybe I can help: could you please post the output of the following command iptables -nvL -t nat?

@mikerjensen
Copy link

mikerjensen commented Nov 10, 2021 via email

@5k4nd
Copy link
Contributor

5k4nd commented Nov 10, 2021

@mikerjensen ok it's the same issue as mine then, a fix his coming. In order to workaround, waiting for the fix to be deployed, I'll also need the output of ip route (sorry, I forgot to ask in my previous post)

@mikerjensen
Copy link

mikerjensen commented Nov 14, 2021 via email

@mikerjensen
Copy link

mikerjensen commented Nov 24, 2021 via email

@mikerjensen
Copy link

I upgraded to the new version of Wifi Hotspot that came with Yunohost 4.3.3 today, and the hotspot worked fine after the initial install. However when I reconnected to the hotspot some hours later, i could connect, but I had no upstream connectivity. I rebooted and the RPI then routed my traffic correctly again...

@alexAubin
Copy link
Member

Closing because 2 years old and the initial issue seems to be fixed, please open other tickets if there are still other issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants