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

Installation stops in mid-air #1756

Closed
3 tasks done
Mausy5043 opened this issue Nov 4, 2017 · 25 comments
Closed
3 tasks done

Installation stops in mid-air #1756

Mausy5043 opened this issue Nov 4, 2017 · 25 comments

Comments

@Mausy5043
Copy link
Contributor

Mausy5043 commented Nov 4, 2017

In raising this issue, I confirm the following (please check boxes, eg [X]) Failure to fill the template will close your issue:

**How familiar are you with the codebase?: **

{3}


[BUG REPORT]:

[BUG | ISSUE] Expected Behaviour:
Install completes succesfully

[BUG | ISSUE] Actual Behaviour:
Install stops during installation of dependent packages (it seems).

[BUG | ISSUE] Steps to reproduce:

$ uname
Linux rbian 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.1 (stretch)
Release:	9.1
Codename:	stretch
  • Install Pi-Hole using sudo curl -sSL https://install.pi-hole.net | sudo bash
  • Accept all defaults
    Output:

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

:::
::: You are root.
::: Verifying free disk space...
:::
::: Updating local cache of available packages... done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Pi-hole installation...
:::    Checking for apt-utils... installed!
:::    Checking for dialog... installed!
:::    Checking for debconf... installed!
:::    Checking for dhcpcd5... installed!
:::    Checking for git... installed!
:::    Checking for iproute2... installed!
:::    Checking for whiptail... installed!
:::
::: Stopping dnsmasq service... done.
:::
::: Stopping lighttpd service... done.
::: Using Google DNS servers.
::: Static IP already configured
::: Found IPv6 GUA address, using it for blocking IPv6 ads
::: IPv4 address: 192.168.178.15/24
::: IPv6 address: 2001:985:dead:dead:dead:dead
::: Web Interface On.
::: Logging On.
:::
::: Checking for existing repository...
:::    Updating repo in /etc/.pihole... done!
 done!
:::
::: Checking for existing repository...
:::    Updating repo in /var/www/html/admin... done!
 done!
:::    Checking for bc... installed!
:::    Checking for cron... installed!
:::    Checking for curl... installed!
:::    Checking for dnsmasq... installed!
:::    Checking for dnsutils... installed!
:::    Checking for iputils-ping... installed!
:::    Checking for lsof... installed!
:::    Checking for netcat... installed!
:::    Checking for sudo... installed!
:::    Checking for unzip... installed!
:::    Checking for wget... installed!
:::    Checking for lighttpd... installed!
:::    Checking for php-common... installed!
:::    Checking for php-cgi... added to install list!
pi@rbian $

And that's it.

@Mausy5043
Copy link
Contributor Author

Well this is remarkable: While preparing to re-install raspberrypi-ua-netinst and re-set the Pi back to a clean system I needed to install cpio and here's what happened:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
   libarchive1
The following NEW packages will be installed:
   cpio (2.11+dfsg-6)
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 165 kB of archives.
After this operation, 691 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf cpio armhf 2.11+dfsg-6 [165 kB]
Fetched 165 kB in 0s (929 kB/s)
Selecting previously unselected package cpio.
(Reading database ... 38862 files and directories currently installed.)
Preparing to unpack .../cpio_2.11+dfsg-6_armhf.deb ...
Unpacking cpio (2.11+dfsg-6) ...
Setting up cpio (2.11+dfsg-6) ...
update-alternatives: using /bin/mt-gnu to provide /bin/mt (mt) in auto mode
Processing triggers for man-db (2.7.6.1-2) ...
Setting up php7.0-common (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

Creating config file /etc/php/7.0/mods-available/exif.ini with new version

Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

Creating config file /etc/php/7.0/mods-available/phar.ini with new version

Creating config file /etc/php/7.0/mods-available/posix.ini with new version

Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
Setting up php7.0-readline (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
Setting up php7.0-opcache (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
Setting up php7.0-json (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Setting up php7.0-cli (7.0.19-1) ...
update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.0/cli/php.ini with new version
Setting up php7.0-cgi (7.0.19-1) ...
update-alternatives: using /usr/bin/php-cgi7.0 to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: using /usr/lib/cgi-bin/php7.0 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php/7.0/cgi/php.ini with new version
Setting up php-cgi (1:7.0+49) ...
W: APT had planned for dpkg to do more than it reported back (23 vs 27).
   Affected packages: php7.0-common:armhf
*********************************************************

The setting-up of php7.0-cgi completely took me by surprise. Guessing it's related to the failed install of PiHole.

Hope this helps.

@PromoFaux
Copy link
Member

Release: 9.1
Codename: stretch

Whilst Pi-hole does work on stretch, it does take a bit of tinkering to get it going. For instance, the php version causes the issue you've seen here. So far we officially support Jessie, but we are working towards stretch compatibility, too.

@Mausy5043
Copy link
Contributor Author

Are there any timelines known for stretch support?

@PromoFaux
Copy link
Member

Short answer: Soon™

Longer answer: We've been a bit pushed recently, we're all volunteers on the project that do this in what little spare time we have. We will get to it, for sure, but we need to test and test and test again to make sure it's stable before announcing official support for stretch.

We, of course, welcome all contributions to the source from the community! We gladly accept PRs, and don't bite (too hard) if e do not agree with the direction of the submitted content. :)

@PromoFaux
Copy link
Member

Going to take a look at this raspberrypi-ua-netinst package and see what happens

@PromoFaux
Copy link
Member

Confirmed bug, even on the development branch of pi-hole

stretchdevelinstall

Going to try with a vanilla stretch image, too.

@PromoFaux PromoFaux reopened this Nov 5, 2017
@PromoFaux PromoFaux added the Bug: Confirmed Verified as a bug to be resolved label Nov 5, 2017
@PromoFaux
Copy link
Member

Also seeing the thing where php7.0-common sets it up on the next package install:

root@pi:/etc/.pihole# apt install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  strace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
9 not fully installed or removed.
Need to get 78.2 kB of archives.
After this operation, 184 kB of additional disk space will be used.
Get:1 http://mirror1.it.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian stretch/main armhf htop armhf 2.0.2-1 [78.2 kB]
Fetched 78.2 kB in 0s (195 kB/s)
Selecting previously unselected package htop.
(Reading database ... 19593 files and directories currently installed.)
Preparing to unpack .../htop_2.0.2-1_armhf.deb ...
Unpacking htop (2.0.2-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up php7.0-common (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

Creating config file /etc/php/7.0/mods-available/exif.ini with new version

Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

Creating config file /etc/php/7.0/mods-available/phar.ini with new version

Creating config file /etc/php/7.0/mods-available/posix.ini with new version

Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
Setting up htop (2.0.2-1) ...
Setting up php7.0-readline (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
Setting up php7.0-opcache (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
Setting up php7.0-sqlite3 (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/sqlite3.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo_sqlite.ini with new version
Setting up php7.0-json (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Setting up php-sqlite3 (1:7.0+49) ...
Setting up php7.0-cli (7.0.19-1) ...
update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.0/cli/php.ini with new version
Setting up php7.0-cgi (7.0.19-1) ...
update-alternatives: using /usr/bin/php-cgi7.0 to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: using /usr/lib/cgi-bin/php7.0 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php/7.0/cgi/php.ini with new version
Setting up php-cgi (1:7.0+49) ...
W: APT had planned for dpkg to do more than it reported back (29 vs 33).
   Affected packages: php7.0-common:armhf

@PromoFaux
Copy link
Member

Vanilla Raspbian stretch installs php with no issues:

vanillastretch

@Mausy5043
Copy link
Contributor Author

Mausy5043 commented Nov 5, 2017

Still testing, but I just changed L1245 in basic-install.sh to

eval "${PKG_INSTALL[@]}" "${installArray[@]}"

and then the install went without problems.

I'll do some more testing here to confirm this finding. But it seems to me to be a bug in debconf-apt-progress.

Here's the output I got:

pi@rbpihole /etc/.pihole/automated install $ sudo ./basic-install.sh

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.


  [✓] Root user check
  [✓] Disk space check

  [✓] Update local cache of available packages

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [✓] Checking for apt-utils
  [✓] Checking for dialog
  [✓] Checking for debconf
  [✗] Checking for dhcpcd5 (will be installed)
  [✓] Checking for git
  [✓] Checking for iproute2
  [✗] Checking for whiptail (will be installed)
 >>> INTERVENTION
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libnewt0.52 libslang2
Suggested packages:
  dhcpcd-gtk
Recommended packages:
  openresolv | resolvconf libfribidi0
The following NEW packages will be installed:
  dhcpcd5 libnewt0.52 libslang2 whiptail
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 694 kB of archives.
After this operation, 2,223 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf dhcpcd5 armhf 1:6.11.5-1+rpt2 [135 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libslang2 armhf 2.3.1-5 [457 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libnewt0.52 armhf 0.52.19-1 [64.6 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf whiptail armhf 0.52.19-1 [37.1 kB]
Fetched 694 kB in 0s (1,815 kB/s)
Selecting previously unselected package libslang2:armhf.
(Reading database ... 38317 files and directories currently installed.)
Preparing to unpack .../libslang2_2.3.1-5_armhf.deb ...
Unpacking libslang2:armhf (2.3.1-5) ...
Selecting previously unselected package libnewt0.52:armhf.
Preparing to unpack .../libnewt0.52_0.52.19-1_armhf.deb ...
Unpacking libnewt0.52:armhf (0.52.19-1) ...
Selecting previously unselected package whiptail.
Preparing to unpack .../whiptail_0.52.19-1_armhf.deb ...
Unpacking whiptail (0.52.19-1) ...
Selecting previously unselected package dhcpcd5.
Preparing to unpack .../dhcpcd5_1%3a6.11.5-1+rpt2_armhf.deb ...
Unpacking dhcpcd5 (1:6.11.5-1+rpt2) ...
Setting up dhcpcd5 (1:6.11.5-1+rpt2) ...
Created symlink /etc/systemd/system/dhcpcd5.service → /lib/systemd/system/dhcpcd.service.
Created symlink /etc/systemd/system/multi-user.target.wants/dhcpcd.service → /lib/systemd/system/dhcpcd.service.
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libslang2:armhf (2.3.1-5) ...
Setting up libnewt0.52:armhf (0.52.19-1) ...
Setting up whiptail (0.52.19-1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...

  [✓] Stopping dnsmasq service...

  [✓] Stopping lighttpd service...
  [i] Using Google DNS servers
  [✓] Set IP address to 192.168.178.5
      You may need to restart after the install is complete
  [i] Found IPv6 GUA address, using it for blocking IPv6 ads
  [i] IPv4 address: 192.168.178.5/24
  [i] IPv6 address: 2001:985:509c:1:ba27:ebff:fe50:9f3b
  [i] Web Interface On
  [i] Logging On.
  [✓] Check for existing repository in /etc/.pihole
  [✓] Update repo in /etc/.pihole

  [✗] Check for existing repository in /var/www/html/admin
  [✓] Clone https://github.com/pi-hole/AdminLTE.git into /var/www/html/admin

  [i] Main Dependency checks...
  [✓] Checking for bc
  [✓] Checking for cron
  [✓] Checking for curl
  [✗] Checking for dnsmasq (will be installed)
  [✗] Checking for dnsutils (will be installed)
  [✓] Checking for iputils-ping
  [✓] Checking for lsof
  [✗] Checking for netcat (will be installed)
  [✓] Checking for sudo
  [✓] Checking for unzip
  [✓] Checking for wget
  [✗] Checking for idn2 (will be installed)
  [✗] Checking for lighttpd (will be installed)
  [✗] Checking for php-common (will be installed)
  [✗] Checking for php-cgi (will be installed)
  [✗] Checking for php-sqlite3 (will be installed)

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  bind9-host dnsmasq-base libbind9-140 libdns162 libfam0 libgeoip1 libisc160 libisccc140 libisccfg140 liblwres141 libnetfilter-conntrack3 libnfnetlink0
  netcat-traditional php7.0-cgi php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-sqlite3
Suggested packages:
  resolvconf rblcheck fam geoip-bin rrdtool php5-cgi apache2-utils lighttpd-doc php-pear
Recommended packages:
  dns-root-data geoip-database spawn-fcgi
The following NEW packages will be installed:
  bind9-host dnsmasq dnsmasq-base dnsutils idn2 libbind9-140 libdns162 libfam0 libgeoip1 libisc160 libisccc140 libisccfg140 liblwres141
  libnetfilter-conntrack3 libnfnetlink0 lighttpd netcat netcat-traditional php-cgi php-common php-sqlite3 php7.0-cgi php7.0-cli php7.0-common php7.0-json
  php7.0-opcache php7.0-readline php7.0-sqlite3
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,262 kB of archives.
After this operation, 23.3 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libnfnetlink0 armhf 1.0.1-3 [12.1 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf netcat-traditional armhf 1.10-41 [64.7 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libgeoip1 armhf 1.6.9-4 [85.3 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libisc160 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [366 kB]
Get:5 http://archive.raspberrypi.org/debian stretch/main armhf dnsmasq-base armhf 2.76-5+rpt1+deb9u1 [385 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libdns162 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [952 kB]
Get:7 http://archive.raspberrypi.org/debian stretch/main armhf dnsmasq all 2.76-5+rpt1+deb9u1 [16.1 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libisccc140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [196 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libisccfg140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [215 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libbind9-140 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [204 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian stretch/main armhf liblwres141 armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [210 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian stretch/main armhf bind9-host armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [230 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian stretch/main armhf dnsutils armhf 1:9.10.3.dfsg.P4-12.3+deb9u3 [281 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libnetfilter-conntrack3 armhf 1.0.6-2 [31.4 kB]
Get:15 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libfam0 armhf 2.7.0-17.2 [24.6 kB]
Get:16 http://mirrordirector.raspbian.org/raspbian stretch/main armhf lighttpd armhf 1.4.45-1 [256 kB]
Get:17 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php-common all 1:49 [14.1 kB]
Get:18 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-common armhf 7.0.19-1 [480 kB]
Get:19 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-json armhf 7.0.19-1 [15.3 kB]
Get:20 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-opcache armhf 7.0.19-1 [64.8 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-readline armhf 7.0.19-1 [10.8 kB]
Get:22 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-cli armhf 7.0.19-1 [1,054 kB]
Get:23 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-cgi armhf 7.0.19-1 [1,021 kB]
Get:24 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php-cgi all 1:7.0+49 [5,186 B]
Get:25 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php7.0-sqlite3 armhf 7.0.19-1 [20.2 kB]
Get:26 http://mirrordirector.raspbian.org/raspbian stretch/main armhf php-sqlite3 all 1:7.0+49 [5,052 B]
Get:27 http://mirrordirector.raspbian.org/raspbian stretch/main armhf idn2 armhf 0.16-1+deb9u1 [34.6 kB]
Get:28 http://mirrordirector.raspbian.org/raspbian stretch/main armhf netcat all 1.10-41 [8,962 B]
Fetched 6,262 kB in 2s (2,285 kB/s)
Selecting previously unselected package libnfnetlink0:armhf.
(Reading database ... 38456 files and directories currently installed.)
Preparing to unpack .../00-libnfnetlink0_1.0.1-3_armhf.deb ...
Unpacking libnfnetlink0:armhf (1.0.1-3) ...
Selecting previously unselected package netcat-traditional.
Preparing to unpack .../01-netcat-traditional_1.10-41_armhf.deb ...
Unpacking netcat-traditional (1.10-41) ...
Selecting previously unselected package libgeoip1:armhf.
Preparing to unpack .../02-libgeoip1_1.6.9-4_armhf.deb ...
Unpacking libgeoip1:armhf (1.6.9-4) ...
Selecting previously unselected package libisc160:armhf.
Preparing to unpack .../03-libisc160_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking libisc160:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package libdns162:armhf.
Preparing to unpack .../04-libdns162_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking libdns162:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package libisccc140:armhf.
Preparing to unpack .../05-libisccc140_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking libisccc140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package libisccfg140:armhf.
Preparing to unpack .../06-libisccfg140_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking libisccfg140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package libbind9-140:armhf.
Preparing to unpack .../07-libbind9-140_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking libbind9-140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package liblwres141:armhf.
Preparing to unpack .../08-liblwres141_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking liblwres141:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package bind9-host.
Preparing to unpack .../09-bind9-host_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking bind9-host (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../10-dnsutils_1%3a9.10.3.dfsg.P4-12.3+deb9u3_armhf.deb ...
Unpacking dnsutils (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Selecting previously unselected package libnetfilter-conntrack3:armhf.
Preparing to unpack .../11-libnetfilter-conntrack3_1.0.6-2_armhf.deb ...
Unpacking libnetfilter-conntrack3:armhf (1.0.6-2) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../12-dnsmasq-base_2.76-5+rpt1+deb9u1_armhf.deb ...
Unpacking dnsmasq-base (2.76-5+rpt1+deb9u1) ...
Selecting previously unselected package dnsmasq.
Preparing to unpack .../13-dnsmasq_2.76-5+rpt1+deb9u1_all.deb ...
Unpacking dnsmasq (2.76-5+rpt1+deb9u1) ...
Selecting previously unselected package libfam0:armhf.
Preparing to unpack .../14-libfam0_2.7.0-17.2_armhf.deb ...
Unpacking libfam0:armhf (2.7.0-17.2) ...
Selecting previously unselected package lighttpd.
Preparing to unpack .../15-lighttpd_1.4.45-1_armhf.deb ...
Unpacking lighttpd (1.4.45-1) ...
Selecting previously unselected package php-common.
Preparing to unpack .../16-php-common_1%3a49_all.deb ...
Unpacking php-common (1:49) ...
Selecting previously unselected package php7.0-common.
Preparing to unpack .../17-php7.0-common_7.0.19-1_armhf.deb ...
Unpacking php7.0-common (7.0.19-1) ...
Selecting previously unselected package php7.0-json.
Preparing to unpack .../18-php7.0-json_7.0.19-1_armhf.deb ...
Unpacking php7.0-json (7.0.19-1) ...
Selecting previously unselected package php7.0-opcache.
Preparing to unpack .../19-php7.0-opcache_7.0.19-1_armhf.deb ...
Unpacking php7.0-opcache (7.0.19-1) ...
Selecting previously unselected package php7.0-readline.
Preparing to unpack .../20-php7.0-readline_7.0.19-1_armhf.deb ...
Unpacking php7.0-readline (7.0.19-1) ...
Selecting previously unselected package php7.0-cli.
Preparing to unpack .../21-php7.0-cli_7.0.19-1_armhf.deb ...
Unpacking php7.0-cli (7.0.19-1) ...
Selecting previously unselected package php7.0-cgi.
Preparing to unpack .../22-php7.0-cgi_7.0.19-1_armhf.deb ...
Unpacking php7.0-cgi (7.0.19-1) ...
Selecting previously unselected package php-cgi.
Preparing to unpack .../23-php-cgi_1%3a7.0+49_all.deb ...
Unpacking php-cgi (1:7.0+49) ...
Selecting previously unselected package php7.0-sqlite3.
Preparing to unpack .../24-php7.0-sqlite3_7.0.19-1_armhf.deb ...
Unpacking php7.0-sqlite3 (7.0.19-1) ...
Selecting previously unselected package php-sqlite3.
Preparing to unpack .../25-php-sqlite3_1%3a7.0+49_all.deb ...
Unpacking php-sqlite3 (1:7.0+49) ...
Selecting previously unselected package idn2.
Preparing to unpack .../26-idn2_0.16-1+deb9u1_armhf.deb ...
Unpacking idn2 (0.16-1+deb9u1) ...
Selecting previously unselected package netcat.
Preparing to unpack .../27-netcat_1.10-41_all.deb ...
Unpacking netcat (1.10-41) ...
Setting up libfam0:armhf (2.7.0-17.2) ...
Setting up idn2 (0.16-1+deb9u1) ...
Setting up netcat-traditional (1.10-41) ...
update-alternatives: using /bin/nc.traditional to provide /bin/nc (nc) in auto mode
Setting up libgeoip1:armhf (1.6.9-4) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up php-common (1:49) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
Setting up lighttpd (1.4.45-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lighttpd.service → /lib/systemd/system/lighttpd.service.
Processing triggers for systemd (232-25+deb9u1) ...
Setting up liblwres141:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up netcat (1.10-41) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libnfnetlink0:armhf (1.0.1-3) ...
Processing triggers for dbus (1.10.22-0+deb9u1) ...
Setting up php7.0-common (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

Creating config file /etc/php/7.0/mods-available/exif.ini with new version

Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

Creating config file /etc/php/7.0/mods-available/phar.ini with new version

Creating config file /etc/php/7.0/mods-available/posix.ini with new version

Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
Setting up php7.0-readline (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
Setting up libnetfilter-conntrack3:armhf (1.0.6-2) ...
Setting up libisc160:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up php7.0-opcache (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
Setting up libisccc140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up php7.0-sqlite3 (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/sqlite3.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo_sqlite.ini with new version
Setting up php7.0-json (7.0.19-1) ...

Creating config file /etc/php/7.0/mods-available/json.ini with new version
Setting up dnsmasq-base (2.76-5+rpt1+deb9u1) ...
Setting up php-sqlite3 (1:7.0+49) ...
Setting up libdns162:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up libisccfg140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up php7.0-cli (7.0.19-1) ...
update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

Creating config file /etc/php/7.0/cli/php.ini with new version
Setting up dnsmasq (2.76-5+rpt1+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /lib/systemd/system/dnsmasq.service.
Setting up libbind9-140:armhf (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up bind9-host (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Setting up php7.0-cgi (7.0.19-1) ...
update-alternatives: using /usr/bin/php-cgi7.0 to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: using /usr/lib/cgi-bin/php7.0 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode

Creating config file /etc/php/7.0/cgi/php.ini with new version
Setting up php-cgi (1:7.0+49) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-12.3+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for dbus (1.10.22-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
  [✓] Installing scripts from /etc/.pihole

  [i] Installing configs from /etc/.pihole...
  [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
  [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

  [✓] Creating log and changing owner to dnsmasq

  [i] Installing blocking page...
  [✓] Creating directory for blocking page, and copying files
  [✓] Backing up index.lighttpd.html

  [✓] Installing sudoer file

  [✓] Installing latest Cron script

  [✓] Installing latest logrotate script

  [i] FTL Checks...
  [✓] Detected ARM-hf architecture (armv6 or lower) Using ARM binary
  [i] Checking for existing FTL binary...
  [✓] Downloading and Installing FTL

  [i] No active firewall detected.. skipping firewall configuration
  [i] Restarting services...

  [✓] Starting dnsmasq service

  [✓] Enabling dnsmasq service to start on reboot

  [✓] Starting lighttpd service

  [✓] Enabling lighttpd service to start on reboot

  [✓] Starting pihole-FTL service

  [✓] Enabling pihole-FTL service to start on reboot

  [i] Preparing to run gravity.sh to refresh hosts...
  [i] Running gravity.sh
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [i] Target: raw.githubusercontent.com (hosts)
  [✓] Status: Retrieval successful

  [i] Target: mirror1.malwaredomains.com (justdomains)
  [✓] Status: Retrieval successful

  [i] Target: sysctl.org (hosts)
  [✓] Status: Retrieval successful

  [i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist)
  [✓] Status: Retrieval successful

  [i] Target: s3.amazonaws.com (simple_tracking.txt)
  [✓] Status: Retrieval successful

  [i] Target: s3.amazonaws.com (simple_ad.txt)
  [✓] Status: Retrieval successful

  [i] Target: hosts-file.net (ad_servers.txt)
  [✓] Status: Retrieval successful

  [✓] Consolidating blocklists
  [✓] Extracting domains from blocklists
  [i] 130,512 domains being pulled in by gravity
  [✓] Removing duplicate domains
  [i] 107,267 unique domains trapped in the Event Horizon

  [✓] Adding 6 blocklist source domains to the whitelist
  [✓] Whitelisting 0 domains
  [✓] Parsing domains into hosts format
  [✓] Cleaning up stray matter

  [✓] Force-reloading DNS service
  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled
  [i] Web Interface password: xxx
      This can be changed using 'pihole -a -p'

  View the web interface at http://pi.hole/admin or http://192.168.178.5/admin

  You may now configure your devices to use the Pi-hole as their DNS server
  [i] Pi-hole DNS (IPv4): 192.168.178.5
  [i] Pi-hole DNS (IPv6): 2001:..
  If you set a new IP address, please restart the server running the Pi-hole

  [i] The install log is located at: /etc/pihole/install.log
  Installation Complete!

@Mausy5043
Copy link
Contributor Author

I wonder what the difference is between the debconf package of the vanilla Raspbian distro and the one installed by raspberrypi-ua-netinst.

Not fluent in perl so can't make heads nor tails of what's going on in debconf-apt-progress.

Anyway, I've found that pre-installing the various php* packages let's me install Pi-hole on stretch without further problems.

@PromoFaux PromoFaux removed the Bug: Confirmed Verified as a bug to be resolved label Nov 6, 2017
@PromoFaux
Copy link
Member

OK, that's good to hear. You may wish to open up a bug report with raspberrypi-ua-netinst, as they are probably in a better position to work out what is going wrong with that particular component.

@Mausy5043
Copy link
Contributor Author

For the time being, as a workaround, I'm installing pHp before installing Pi-hole using:

sudo apt install php-cgi php-common php php-sqlite3

@jacobsalmela
Copy link
Contributor

@PromoFaux did anything happen with this for v3.2?

@Mausy5043
Copy link
Contributor Author

Everything seems to work fine.

@ryandward
Copy link

Can confirm the same issue. Above workaround fixes it though. (Raspbian stretch)

@kenogo
Copy link

kenogo commented Apr 25, 2018

I thought I had the same issue (also on Raspbian stretch), but giving it enough time (like 10 minutes) actually made it work. Maybe it's the same for you and you're all just not as patient? 😁 But whatever, I guess taking 10 minutes to install php can be considered a bug anyways.

@hypn
Copy link

hypn commented Jul 14, 2018

Mausy5043's change fixed the installer for me on the latest OSMC (debian stretch based).

@Mausy5043
Copy link
Contributor Author

Mausy5043 commented Sep 30, 2019

2 years on and I'm still bitten by this. Now on raspberrypi-ua-netinst current (running Buster).

EDIT:

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

@Mausy5043 Mausy5043 reopened this Sep 30, 2019
@Mausy5043
Copy link
Contributor Author

Mausy5043 commented Sep 30, 2019

The change suggested here still fixes this.

Assuming no upstream fix is forthcoming.

@MichaIng
Copy link
Contributor

#2934 provides a fix, however the discussion is about to remove debconf-apt-progress usage completely from the installer as it inherits some other issues when package config files are updated and require a user choice. So it might take a little while, however should be part of the next release.

Wow so finally we are fixing a ~two years old issue with this, which seems to have not gotten the desired attention.

@Mausy5043
Copy link
Contributor Author

which seems to have not gotten the desired attention.

Well, not entirely true. At some point I led you to believe that the problem was resolved.

In actuality I had an automated script running, when needing to re-install, that fixed the issue before executing the script. So, the problem was fixed for me. Not for the rest.

@MichaIng
Copy link
Contributor

MichaIng commented Oct 1, 2019

@Mausy5043
Ah that's true. I just recognised the issue close/open and bug confirm/unconfirm confusion. So at least the root for the issue has been overseen at first but has been found in another context and will be fixed now 🙂.

@bcambl
Copy link
Member

bcambl commented Oct 13, 2019

#2962 created for the removal of debconf-apt-progress.

@prometheus247
Copy link

Same issue, bites me aswell. Installation aborted once the package install went on.
Details:

PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

"wheezy" might be "stretch" now (? read it somewhere else), but what do I know.
I did what was suggested here.
Didnt work for me.

Installing whiptail manually didnt do the trick either.
My issue might be, that I am not able to install debconf manually.
It says something about dbus (libdbus-1-3) being broken. I forced it via

apt-get -f install libdbus-1-3

This was quite a big one. Patching took some time incl. service restarts and what not.
Looked like it put the whole OS on leftside.

In the end, this seems to was my rootcause. After installing properly, the whole install process went forward.

PS: I changed my /etc/apt/sources.list to this:
deb http://archive.raspbian.org/raspbian stretch main contrib non-free
Because wheezy seems to be discontinued as mentioned above.

@dschaper
Copy link
Member

Wheezy is very very old and not supported in any way.

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