Skip to content

curl-installer fails on systems without either systemd-resovled or resolvconf #1926

@Schniefel

Description

@Schniefel

When trying to install nextcloudpi via the curl-script on a freshly flashed Raspberry Pi OS (Bookworm) i get the following error:

Downloading updates
Performing updates
PHP Warning: Undefined variable $CONFIG in Command line code on line 1
PHP Warning: Trying to access array offset on value of type null in Command line code on line 1
PHP Warning: Undefined variable $CONFIG in Command line code on line 1
PHP Warning: Trying to access array offset on value of type null in Command line code on line 1
Installing clear-php-opcache
Installing dnsmasq

  • apt-get update
    Hit:1 http://archive.raspberrypi.com/debian bookworm InRelease
    Hit:2 http://deb.debian.org/debian bookworm InRelease
    Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
    Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
    Hit:5 https://packages.sury.org/php bookworm InRelease
    Reading package lists... Done
  • apt-get install --no-install-recommends -y dnsmasq
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libraspberrypi0 libwpe-1.0-1 libwpebackend-fdo-1.0-1
    Use 'sudo apt autoremove' to remove them.
    Suggested packages:
    resolvconf
    The following NEW packages will be installed:
    dnsmasq
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 32.4 kB of archives.
    After this operation, 120 kB of additional disk space will be used.
    Get:1 http://deb.debian.org/debian bookworm/main arm64 dnsmasq all 2.89-1 [32.4 kB]
    Fetched 32.4 kB in 0s (567 kB/s)
    Selecting previously unselected package dnsmasq.
    (Reading database ... 246159 files and directories currently installed.)
    Preparing to unpack .../dnsmasq_2.89-1_all.deb ...
    Unpacking dnsmasq (2.89-1) ...
    Setting up dnsmasq (2.89-1) ...
    Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /lib/systemd/system/dnsmasq.service.
  • rc=0
  • service dnsmasq status
  • [[ 0 -eq 3 ]]
  • echo 'Applying workaround for dnsmasq bug (compare issue Installation of dnsmasq breaks DNS-resolution #1446)'
    Applying workaround for dnsmasq bug (compare issue Installation of dnsmasq breaks DNS-resolution #1446)
  • mkdir -p /etc/systemd/resolved.conf.d
  • systemctl status systemd-resolved
    **Unit systemd-resolved.service could not be found.
  • systemctl stop resolvconf
    Failed to stop resolvconf.service: Unit resolvconf.service not loaded.**

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions