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

Installing dependencies fails using Quick Installer on RPi OS 64-bit Lite #1341

Closed
6 tasks done
kszkristof opened this issue Apr 12, 2023 · 1 comment
Closed
6 tasks done

Comments

@kszkristof
Copy link

Checklist

  • This is a bug report
  • I observed this bug on a clean install of the OS
  • I have followed the project prerequisites
  • I have searched this repository for existing issues
  • I checked the FAQ and official documentation before creating this issue
  • I have read and understand the issue reporting guidelines

Bug description

When doing a fresh installation on the latest RPi OS 64-bit Lite, the install dependencies command just fails and after, everything errors out (obviously)

Your environment

  1. Operating System: RPi OS 64-bit Lite
  2. Hardware and version: Raspberry Pi 4B 4GB RAM
  3. RaspAP version: 2.9.1 latest
  4. Clean install of a compatible operating system? Yes
  5. RaspAP Quick Install or Manual setup?Quick install script
  6. Using default configuration? Yes
  7. Simultaneous AP and managed mode? Not installed yet
  8. Onboard wireless chipset or external adapter? Onboard
  9. Other software or services running with RaspAP? None, fresh install

Steps to reproduce

  • Install Raspberry Pi OS 64-bit Lite
  • Follow quick install instructions on raspap.com

Additional context

After running sudo apt install dnsmasq git git-man hostapd iptables-persistent liberror-perl libqrencode4 libsodium23 lighttpd lighttpd-mod-deflate lighttpd-mod-openssl netfilter-persistent php-common php7.4-cgi php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline qrencode spawn-fcgi vnstat and manually installing the dependencies, the quick installer runs fine

Logs:



 888888ba                              .d888888   888888ba
 88     8b                            d8     88   88     8b
a88aaaa8P' .d8888b. .d8888b. 88d888b. 88aaaaa88a a88aaaa8P
 88    8b. 88    88 Y8ooooo. 88    88 88     88   88
 88     88 88.  .88       88 88.  .88 88     88   88
 dP     dP  88888P8  88888P  88Y888P  88     88   dP
                             88
                             dP      version 2.9.1

The Quick Installer will guide you through a few easy steps


RaspAP Install: Configure installation
Detected OS: Debian GNU/Linux 11 (bullseye)
Using GitHub repository: RaspAP/raspap-webgui 2.9.1 branch
Configuration directory: /etc/raspap
lighttpd root: /var/www/html? [Y/n]:
Installing lighttpd directory: /var/www/html
Complete installation with these values? [Y/n]:
RaspAP Install: Updating sources
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
RaspAP Install: Checking for systemd network services
systemd-networkd.service is not running (ok)
systemd-resolved.service is not running (ok)
[ ✓ ok ]
RaspAP Install: Installing required packages
php7.4-cgi will be installed from the main deb sources list

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
dhcpcd5 is already the newest version (1:8.1.2-1+rpt9).
The following additional packages will be installed:
  git-man liberror-perl libqrencode4 libsodium23 lighttpd-mod-deflate
  lighttpd-mod-openssl netfilter-persistent php-common php7.4-cli
  php7.4-common php7.4-json php7.4-opcache php7.4-readline spawn-fcgi
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn rrdtool php-fpm apache2-utils
  lighttpd-doc lighttpd-mod-authn-gssapi lighttpd-mod-authn-pam
  lighttpd-mod-authn-sasl lighttpd-mod-geoip lighttpd-mod-maxminddb
  lighttpd-mod-trigger-b4-dl lighttpd-mod-vhostdb-pgsql lighttpd-mod-webdav
  lighttpd-modules-dbi lighttpd-modules-ldap lighttpd-modules-lua
  lighttpd-modules-mysql php-pear vnstati
The following NEW packages will be installed:
  dnsmasq git git-man hostapd iptables-persistent liberror-perl libqrencode4
  libsodium23 lighttpd lighttpd-mod-deflate lighttpd-mod-openssl
  netfilter-persistent php-common php7.4-cgi php7.4-cli php7.4-common
  php7.4-json php7.4-opcache php7.4-readline qrencode spawn-fcgi vnstat
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.6 MB of archives.
After this operation, 64.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
[ ✘ error ]  Unable to install dependencies
[ ✓ ok ]
RaspAP Install: Enabling PHP for lighttpd
sudo: lighttpd-enable-mod: command not found
Failed to restart lighttpd.service: Unit lighttpd.service not found.
Failed to restart lighttpd.service: Unit lighttpd.service not found.
[ ✘ error ]  Unable to restart lighttpd
RaspAP Install: Creating RaspAP directories
Creating /etc/raspap/networking
Adding /etc/dhcpcd.conf as base configuration
Changing file ownership of /etc/raspap
RaspAP Install: Backing up existing configs to /etc/raspap/backups
[ ✓ ok ]
RaspAP Install: Optimize PHP configuration
[ ⚠ warning ] PHP configuration could not be found.
RaspAP Install: Cloning latest files from github
/tmp/raspap_common.sh: line 464: git: command not found
[ ✘ error ]  Unable to download files from github
mv: cannot stat '/tmp/raspap-webgui': No such file or directory
[ ✘ error ]  Unable to move raspap-webgui to web root
[ ✓ ok ]
[ ✘ error ]  Web root directory doesn't exist
RaspAP Install: Changing file ownership in web root directory
chown: cannot access '/var/www/html': No such file or directory
[ ✘ error ]  Unable to change file ownership for '/var/www/html'
RaspAP Install: Creating hostapd logging & control scripts
cp: cannot stat '/var/www/html/installers/*log.sh': No such file or directory
[ ✘ error ]  Unable to move logging scripts
cp: cannot stat '/var/www/html/installers/service*.sh': No such file or directory
[ ✘ error ]  Unable to move service control scripts
chown: cannot access '/etc/raspap/hostapd/*.sh': No such file or directory
[ ✘ error ]  Unable change owner and/or group
chmod: cannot access '/etc/raspap/hostapd/*.sh': No such file or directory
[ ✘ error ]  Unable to change file permissions
[ ✓ ok ]
RaspAP Install: Creating lighttpd control scripts
Copying configport.sh to /etc/raspap/lighttpd
cp: cannot stat '/var/www/html/installers/configport.sh': No such file or directory
[ ✘ error ]  Unable to move service control scripts
Changing file ownership
chown: cannot access '/etc/raspap/lighttpd/*.sh': No such file or directory
[ ✘ error ]  Unable change owner and/or group
chmod: cannot access '/etc/raspap/lighttpd/*.sh': No such file or directory
[ ✘ error ]  Unable to change file permissions
[ ✓ ok ]
RaspAP Install: Copying lighttpd extra config files
Copying 50-raspap-router.conf to /etc/lighttpd/conf-available
grep: /etc/lighttpd/lighttpd.conf: No such file or directory
awk: cannot open /var/www/html/config/50-raspap-router.conf (No such file or directory)
cp: cannot create regular file '/etc/lighttpd/conf-available/': No such file or directory
[ ✘ error ]  Unable to copy lighttpd config file into place.
Creating link to /etc/lighttpd/conf-enabled
Existing 50-raspap-router.conf found. Unlinking.
unlink: cannot unlink '/etc/lighttpd/conf-enabled/50-raspap-router.conf': No such file or directory
Linking 50-raspap-router.conf to /etc/lighttpd/conf-enabled/
ln: failed to create symbolic link '/etc/lighttpd/conf-enabled/50-raspap-router.conf': No such file or directory
[ ✘ error ]  Unable to symlink lighttpd config file (this is normal if the link already exists).
Failed to restart lighttpd.service: Unit lighttpd.service not found.
[ ✘ error ]  Unable to restart lighttpd
[ ✓ ok ]
RaspAP Install: Moving configuration file to /etc/raspap
cp: cannot stat '/var/www/html/raspap.php': No such file or directory
[ ✘ error ]  Unable to move files to '/etc/raspap'
chown: cannot access '/etc/raspap/raspap.php': No such file or directory
[ ✘ error ]  Unable change owner and/or group
RaspAP Install: Applying default configuration to installed services
cp: cannot stat '/var/www/html/config/hostapd.conf': No such file or directory
[ ✘ error ]  Unable to move hostapd configuration file
cp: cannot stat '/var/www/html/config/090_raspap.conf': No such file or directory
[ ✘ error ]  Unable to move dnsmasq default configuration file
cp: cannot stat '/var/www/html/config/090_wlan0.conf': No such file or directory
[ ✘ error ]  Unable to move dnsmasq wlan0 configuration file
cp: cannot stat '/var/www/html/config/dhcpcd.conf': No such file or directory
[ ✘ error ]  Unable to move dhcpcd configuration file
cp: cannot stat '/var/www/html/config/defaults.json': No such file or directory
[ ✘ error ]  Unable to move defaults.json settings
Changing file ownership of /etc/raspap/networking/defaults.json
chown: cannot access '/etc/raspap/networking//defaults.json': No such file or directory
[ ✘ error ]  Unable to change file ownership for defaults.json
Checking for existence of /etc/dnsmasq.d
Copying bridged AP config to /etc/systemd/network
cp: cannot stat '/var/www/html/config/raspap-bridge-br0.netdev': No such file or directory
[ ✘ error ]  Unable to move br0 netdev file
cp: cannot stat '/var/www/html/config/raspap-br0-member-eth0.network': No such file or directory
[ ✘ error ]  Unable to move br0 member file
Copying primary RaspAP config to includes/config.php
cp: cannot stat '/var/www/html/config/config.php': No such file or directory
[ ✓ ok ]
RaspAP Install: Configuring networking
Enabling IP forwarding
net.ipv4.ip_forward = 1
^C
@billz
Copy link
Member

billz commented Apr 13, 2023

This bug was introduced with the recent RPi OS firmware update that bumped the kernel to the 6.1 tree.
It's been resolved in the latest RaspAP release. Thanks for reporting

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

No branches or pull requests

2 participants