RaspAP / raspap-webgui

Simple wireless AP setup & management for Debian-based devices
https://raspap.com/
GNU General Public License v3.0
4.42k stars 784 forks source link

Installation problem after apt upgrade #1336

Closed Toadie1 closed 1 year ago

Toadie1 commented 1 year ago

Checklist

Bug description

Many errors during Quick installation on clean installation of OS. Few weeks ago this worked like a charm, but today i have no luck.

Your environment

  1. Operating System: RPi OS 32-bit Lite
  2. Hardware and version: RPi 4 (4GB)
  3. RaspAP version: 2.8.9
  4. Clean install of a compatible operating system? Yes
  5. RaspAP Quick Install or Manual setup? Quick Install
  6. Using default configuration? Yes
  7. Simultaneous AP and managed mode? No
  8. Onboard wireless chipset or external adapter? Onboard
  9. Other software or services running with RaspAP? No

Steps to reproduce

I have a clean installation of Raspberry OS 32bit right now created via Raspberry Pi Imager.

After the first boot I execute the routine

sudo apt update
sudo apt upgrade
sudo reboot now

After the boot, the system is switched to 64bit kernel. So I add the arm_64bit=0 parameter to /boot/config.txt and reboot.

After boot I have version Linux travel-cube 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l

I run the RaspAP installation with sudo curl -sL https://install.raspap.com | bash and then the installation crashes. Here is listing of the console output...

toadie@travel-cube:~ $ uname -a
Linux travel-cube 6.1.21-v7l+ #1642 SMP Mon Apr  3 17:22:30 BST 2023 armv7l GNU/Linux
toadie@travel-cube:~ $ sudo curl -sL https://install.raspap.com | bash

 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.8.9

The Quick Installer will guide you through a few easy steps

RaspAP Install: Configure installation
Detected OS: Raspbian GNU/Linux 11 (bullseye)
Using GitHub repository: RaspAP/raspap-webgui 2.8.9 branch
Configuration directory: /etc/raspap
lighttpd root: /var/www/html? [Y/n]: y
Installing lighttpd directory: /var/www/html
Complete installation with these values? [Y/n]: y
RaspAP Install: Updating sources
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian 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
Reading package lists...
Building dependency tree...
Reading state information...
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 11.0 MB of archives.
After this operation, 54.8 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
Restarting procps (via systemctl): procps.service.
Checking iptables rules
grep: /etc/iptables/rules.v4: No such file or directory
Adding rule: -t nat -A POSTROUTING -j MASQUERADE
grep: /etc/iptables/rules.v4: No such file or directory
Adding rule: -t nat -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE
Persisting IP tables rules
tee: /etc/iptables/rules.v4: No such file or directory
[ ✘ error] Unable to execute iptables-save
Enable RaspAP control service (Recommended)? [Y/n]: y
RaspAP Install: Enabling RaspAP daemon
Disable with: sudo systemctl disable raspapd.service
cp: cannot stat '/var/www/html/installers/raspapd.service': No such file or directory
[ ✘ error] Unable to move raspap.service file
Failed to enable unit: Unit file raspapd.service does not exist.
[ ✘ error] Failed to enable raspap.service
[ ✓ ok]
RaspAP Install: Configure ad blocking (Beta)
Install ad blocking and enable list management? [Y/n]: y
RaspAP Install: Creating ad blocking base configuration (Beta)
Creating /etc/raspap/adblock
Fetching latest hostnames list
/tmp/hostnames.txt  100%[===================>]   6.74M  4.59MB/s    in 1.5s
Fetching latest domains list
/tmp/domains.txt    100%[===================>]  18.71M  4.82MB/s    in 3.9s
Adding blocklists to /etc/raspap/adblock
Moving and setting permissions for blocklist update script
cp: cannot stat '/var/www/html/installers/update_blocklist.sh': No such file or directory
[ ✘ error] Unable to move blocklist update script
changed ownership of '/etc/raspap/adblock/domains.txt' from root:root to root:www-data
changed ownership of '/etc/raspap/adblock/hostnames.txt' from root:root to root:www-data
chown: cannot access '/etc/raspap/adblock/*.sh': No such file or directory
[ ✘ error] Unable to change owner/group
chmod: cannot access '/etc/raspap/adblock/*.sh': No such file or directory
/tmp/raspap_common.sh: line 358: install_error: command not found
Adding 090_addblock.conf to /etc/dnsmasq.d
Enabling local DNS name resolution for DHCP clients
sed: can't read /etc/dnsmasq.d/090_wlan0.conf: No such file or directory
[ ✘ error] Unable to modify
Enabling ad blocking management option
sed: can't read /var/www/html/includes/config.php: No such file or directory
[ ✘ error] Unable to modify config.php
[ ✓ ok]
RaspAP Install: Configure OpenVPN support
Install OpenVPN and enable client configuration? [Y/n]: y
RaspAP Install: Installing OpenVPN and enabling client configuration
Adding packages via apt-get
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  easy-rsa libccid liblzo2-2 libpkcs11-helper1 opensc opensc-pkcs11 pcscd
Suggested packages:
  pcmciautils openvpn-systemd-resolved
The following NEW packages will be installed:
  easy-rsa libccid liblzo2-2 libpkcs11-helper1 opensc opensc-pkcs11 openvpn
  pcscd
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,183 kB of archives.
After this operation, 6,491 kB of additional disk space will be used.
Get:1 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf libccid armhf 1.4.34-1 [330 kB]
Get:2 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf pcscd armhf 1.9.1-1 [87.6 kB]
Get:3 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf easy-rsa all 3.0.8-1 [45.2 kB]
Get:4 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf liblzo2-2 armhf 2.10-2 [50.2 kB]
Get:5 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf libpkcs11-helper1 armhf 1.27-1 [42.8 kB]
Get:6 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf opensc-pkcs11 armhf 0.21.0-1 [772 kB]
Get:7 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf opensc armhf 0.21.0-1 [326 kB]
Get:8 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf openvpn armhf 2.5.1-3 [529 kB]
Preconfiguring packages ...
Fetched 2,183 kB in 2s (1,385 kB/s)
Selecting previously unselected package libccid.
(Reading database ... 44240 files and directories currently installed.)
Preparing to unpack .../0-libccid_1.4.34-1_armhf.deb ...
Unpacking libccid (1.4.34-1) ...
Selecting previously unselected package pcscd.
Preparing to unpack .../1-pcscd_1.9.1-1_armhf.deb ...
Unpacking pcscd (1.9.1-1) ...
Selecting previously unselected package easy-rsa.
Preparing to unpack .../2-easy-rsa_3.0.8-1_all.deb ...
Unpacking easy-rsa (3.0.8-1) ...
Selecting previously unselected package liblzo2-2:armhf.
Preparing to unpack .../3-liblzo2-2_2.10-2_armhf.deb ...
Unpacking liblzo2-2:armhf (2.10-2) ...
Selecting previously unselected package libpkcs11-helper1:armhf.
Preparing to unpack .../4-libpkcs11-helper1_1.27-1_armhf.deb ...
Unpacking libpkcs11-helper1:armhf (1.27-1) ...
Selecting previously unselected package opensc-pkcs11:armhf.
Preparing to unpack .../5-opensc-pkcs11_0.21.0-1_armhf.deb ...
Unpacking opensc-pkcs11:armhf (0.21.0-1) ...
Selecting previously unselected package opensc.
Preparing to unpack .../6-opensc_0.21.0-1_armhf.deb ...
Unpacking opensc (0.21.0-1) ...
Selecting previously unselected package openvpn.
Preparing to unpack .../7-openvpn_2.5.1-3_armhf.deb ...
Unpacking openvpn (2.5.1-3) ...
Setting up libccid (1.4.34-1) ...
Setting up pcscd (1.9.1-1) ...
Created symlink /etc/systemd/system/sockets.target.wants/pcscd.socket → /lib/systemd/system/pcscd.socket.
pcscd.service is a disabled or a static unit, not starting it.
Setting up liblzo2-2:armhf (2.10-2) ...
Setting up libpkcs11-helper1:armhf (1.27-1) ...
Setting up opensc-pkcs11:armhf (0.21.0-1) ...
Setting up easy-rsa (3.0.8-1) ...
Setting up openvpn (2.5.1-3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/openvpn.service → /lib/systemd/system/openvpn.service.
Setting up opensc (0.21.0-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
sed: can't read /var/www/html/includes/config.php: No such file or directory
[ ✘ error] Unable to modify config.php
Enabling openvpn-client service on boot
Created symlink /etc/systemd/system/multi-user.target.wants/openvpn-client@client.service → /lib/systemd/system/openvpn-client@.service.
RaspAP Install: Creating OpenVPN control scripts
cp: cannot stat '/var/www/html/installers/configauth.sh': No such file or directory
[ ✘ error] Unable to move auth control script
cp: cannot stat '/var/www/html/installers/openvpnlog.sh': No such file or directory
[ ✘ error] Unable to move logging script
chown: cannot access '/etc/raspap/openvpn/*.sh': No such file or directory
[ ✘ error] Unable change owner and/or group
chmod: cannot access '/etc/raspap/openvpn/*.sh': No such file or directory
[ ✘ error] Unable to change file permissions
[ ✓ ok]
RaspAP Install: Configure WireGuard support
Install WireGuard and enable VPN tunnel configuration? [Y/n]: y
RaspAP Install: Configure WireGuard support
Installing wireguard from apt
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  wireguard-tools
The following NEW packages will be installed:
  wireguard wireguard-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 84.4 kB of archives.
After this operation, 302 kB of additional disk space will be used.
Get:1 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf wireguard-tools armhf 1.0.20210223-1 [76.2 kB]
Get:2 http://mirror.dkm.cz/raspbian/raspbian bullseye/main armhf wireguard all 1.0.20210223-1 [8,164 B]
Fetched 84.4 kB in 0s (224 kB/s)
Selecting previously unselected package wireguard-tools.
(Reading database ... 44544 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210223-1_armhf.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20210223-1_all.deb ...
Unpacking wireguard (1.0.20210223-1) ...
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up wireguard (1.0.20210223-1) ...
Processing triggers for man-db (2.9.4-2) ...
Enabling wg-quick@wg0
Created symlink /etc/systemd/system/multi-user.target.wants/wg-quick@wg0.service → /lib/systemd/system/wg-quick@.service.
Enabling WireGuard management option
sed: can't read /var/www/html/includes/config.php: No such file or directory
[ ✘ error] Unable to modify config.php
[ ✓ ok]
RaspAP Install: Adding raspap.sudoers to /etc/sudoers.d/090_raspap
cp: cannot stat '/var/www/html/installers/raspap.sudoers': No such file or directory
[ ✘ error] Unable to apply raspap.sudoers to /etc/sudoers.d/090_raspap
chmod: cannot access '/etc/sudoers.d/090_raspap': No such file or directory
[ ✘ error] Unable to change file permissions for /etc/sudoers.d/090_raspap
RaspAP Install: Symlinked wpa_supplicant hooks for multiple wlan interfaces
RaspAP Install: Unmasking and enabling hostapd service
Unit hostapd.service does not exist, proceeding anyway.
Failed to enable unit: Unit file hostapd.service does not exist.
[ ✓ ok]
RaspAP Install: Installation completed
Join RaspAP Insiders for early access to exclusive features!

> https://docs.raspap.com/insiders/
> https://github.com/sponsors/RaspAP/

toadie@travel-cube:~ $

What am I doing wrong? Alternatively, am I the first to try to install RaspAP on the new Raspberry Pi OS kernel released on April 3, 2023? Thank you

billz commented 1 year ago

The latest kernel update introduced this. Thanks for reporting

Toadie1 commented 1 year ago

Hello, I tried the installation after your fix but nothing changed, still get same errors. So I tried manual installation and I ended up at step:

sudo add-apt-repository ppa:ondrej/php

with this console output:

toadie@travel-cube:~ $ sudo add-apt-repository ppa:ondrej/php
 Co-installable PHP versions: PHP 5.6, PHP 7.x, PHP 8.x and most requested extensions are included.  
Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases  
(https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu  
release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

IMPORTANT: The <foo>-backports is now required on older Ubuntu releases.

BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting

CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advised to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider  
donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmptq8t22il/pubring.gpg' created
gpg: /tmp/tmptq8t22il/trustdb.gpg: trustdb created
gpg: key 4F4EA0AAE5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg:               imported: 1
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.extra'
ashishdlp commented 1 year ago

++ Even I have the same issue

Toadie1 commented 1 year ago

Next try was with Linux travel-cube 5.15.0-1026-raspi #28-Ubuntu SMP PREEMPT Fri Mar 10 14:28:52 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux.

Quick instal ends with similar output like the first try wit Raspberry Pi OS. Manual attempt ends with this console output:

toadie@travel-cube:~$ sudo add-apt-repository ppa:ondrej/php
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1139, in connect
    address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)
  File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 347, in main
    shortcut = handler(source, **shortcut_params)
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
    if self.lpppa.publish_debug_symbols:
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
    self._lpteam = self.lp.people(self.teamname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
    return cls(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1725, in request
    (response, content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
    response, content = super(LaunchpadOAuthAwareHttp, self)._request(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1370, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.error.ServerNotFoundError: Unable to find the server at api.launchpad.net
toadie@travel-cube:~$
em429 commented 1 year ago

Same issue here, using the latest installer with latest raspi lite os.