sciguy14 / Remote-Wake-Sleep-On-LAN-Server

Use a low-power server (such as a Raspberry Pi) to create a remote interface for easily waking up more power-hungry computers
http://www.jeremyblum.com/2013/07/14/rpi-wol-server/
Other
392 stars 82 forks source link

"Error installing prerequisite software" (key is stored in legacy trusted.gpg keyring) #72

Open MarcoPo10 opened 2 months ago

MarcoPo10 commented 2 months ago

I've been trying to get this running on a Pi Zero 2W, getting this same error during the setup.py step every time. I've flashed every version of Raspberry Pi OS Lite (bookworm) from March 2024 going back to December 2023 with the same results. Since the default username and password have been removed from the OS since early 2022 I set up the image with username "pi" and password "raspberry" for the install. I don't think that's causing the issue here. I also checked the URL included in the error as well as opening the /etc/apt/trusted.gpg file. The URL was a dead-end and the gpg file was scrambled.

Error: Running: Install Prequisite Software Hit:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease Hit:2 http://archive.raspberrypi.com/debian bookworm InRelease Reading package lists... Done
W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. /bin/sh: 1: Syntax error: Unterminated quoted string Error installing prerequisite software. Script Exiting due to failure in 'Install Prequisite Software' setup step.

Screenshot 2024-05-17 at 4 30 13 PM

Screenshot 2024-05-17 at 4 41 07 PM

lukee12zakk commented 1 month ago

i have the same problem exept a bit different image

JTricky commented 1 month ago

I'm getting the same error as @lukee12zakk except mine is erroring out after reading the package lists of Hit : 4

itzmattu commented 1 month ago

Same error as the OP. I'm on a Raspberry Pi 2B, fresh install but setup a user/pass. Instructions mention script relies on no password for sudo, but I assume it would just popup a sudo pw prompt.

itzmattu commented 1 month ago

I went through the script and fixed what was going wrong with this error.

Fixing setup.py improper handling of process output

Be advised that this still resulted in a 403 Forbidden error when trying to reach the web server. I simply deleted the symlink created at /var/www and copied the contents of $HOME/RWSOL/www to /var/www instead, and then it worked great.