Update Gravity issue after Pi.hole 6 update

Hello all,

I did my normal Pi.hole 6 update for the latest "Pi-hole Core" in the macOS terminal, all seem fine, until it got to Update Gravity section, then I started seeing issues with this: [✗] List download failed: using previously cached list for all Gravity list. I checked the Gravity list and they are all working fine and readable through a browser.

Expected Behaviour:

Normal updates as previous, which one has done over time.

Raspberry pi 4B
Core
Version is v6.0.6-49-g195e6585 (Latest: null)
Branch is development
Hash is 195e6585 (Latest: 195e6585)

Debug Token:

https://tricorder.pi-hole.net/ql3TsYUT/

It appears you are on the development branch and not the master released branch. Is there a reason you are running development (aka 'this can break at any time' code)?

No, I was on the development for another error that was solve sometime ago and instructed to go back to master.

How does one go back to master ?

Thank you in advance.

At the terminal type sudo pihole checkout core master and that should get everything set up for you.

 [i] SELinux not detected
  [✓] Update local cache of available packages

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

  [✓] Building dependency package pihole-meta.deb
  [✗] Installing Pi-hole dependency package
   Error: Unable to install Pi-hole dependency package.
   Error: Unable to complete update, please contact support
1 Like

same error now cant update

Try sudo pihole checkout master to move all of the composite parts to master.

Don't run commands that were not directed to you.

  [i] SELinux not detected
  [✓] Update local cache of available packages

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

  [✓] Building dependency package pihole-meta.deb
  [✗] Installing Pi-hole dependency package
   Error: Unable to install Pi-hole dependency package.
   Error: Unable to complete update, please contact support

Again.

okay

Redback, you're fine, you typed what I asked. My reply was to the other user that was running commands that they were not told to do.

I have the same problem, my lists are not updated, so I executed the command

Sorry, that did not work, even after doing a reboot of the raspberry pi, I ran gravity update again, and it still failed.

  [i] Target: https://raw.githubusercontent.com/ShadowWhisperer/BlockLists/master/Lists/Cryptocurrency
  [✗] Status: https://raw.githubusercontent.com/ShadowWhisperer/BlockLists/master/Lists/Cryptocurrency ()
  [✗] List download failed: using previously cached list
  [✓] Parsed 1126 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

I'm checking with the other developers to see if there's any advice.

Development code is pre-alpha and most of the time when it breaks we just restart from scratch, development code is meant for developing the software so nothing of value is lost when it breaks.

Thank you.

Can you try doing another pihole -up please? And then we can look at getting you back on to the master code everywhere.

redback@raspberrypi:~ $ sudo pihole -up
[✓] Supported OS detected
[✓] Update local cache of available packages
[✓] Building dependency package pihole-meta.deb
[✗] Installing Pi-hole dependency package
Error: Unable to install Pi-hole dependency package.

What's the output of

sudo bash -x /opt/pihole/update.sh
**redback@raspberrypi**:**~ $** sudo bash -x /opt/pihole/update.sh

+ readonly ADMIN_INTERFACE_GIT_URL=https://github.com/pi-hole/web.git

+ ADMIN_INTERFACE_GIT_URL=https://github.com/pi-hole/web.git

+ readonly PI_HOLE_GIT_URL=https://github.com/pi-hole/pi-hole.git

+ PI_HOLE_GIT_URL=https://github.com/pi-hole/pi-hole.git

+ readonly PI_HOLE_FILES_DIR=/etc/.pihole

+ PI_HOLE_FILES_DIR=/etc/.pihole

+ SKIP_INSTALL=true

+ CHECK_ONLY=false

+ source '/etc/.pihole/automated install/basic-install.sh'

++ set -e

++ export PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

++ PATH+=:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

++ trap abort INT QUIT TERM

++ : 0

++ : 1

++ : 255

+++ cat

++ DNS_SERVERS='Google (ECS, DNSSEC);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844

OpenDNS (ECS, DNSSEC);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53

Level3;4.2.2.1;4.2.2.2;;

Comodo;8.26.56.26;8.20.247.20;;

DNS.WATCH (DNSSEC);84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b

Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9

Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10

Quad9 (filtered, ECS, DNSSEC);9.9.9.11;149.112.112.11;2620:fe::11;2620:fe::fe:11

Cloudflare (DNSSEC);1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001'

++ installLogLoc=/etc/pihole/install.log

++ coltable=/opt/pihole/COL_TABLE

++ webroot=/var/www/html

++ webInterfaceGitUrl=https://github.com/pi-hole/web.git

++ webInterfaceDir=/var/www/html/admin

++ piholeGitUrl=https://github.com/pi-hole/pi-hole.git

++ PI_HOLE_LOCAL_REPO=/etc/.pihole

++ PI_HOLE_FILES=(list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)

++ PI_HOLE_INSTALL_DIR=/opt/pihole

++ PI_HOLE_CONFIG_DIR=/etc/pihole

++ PI_HOLE_BIN_DIR=/usr/local/bin

++ PI_HOLE_V6_CONFIG=/etc/pihole/pihole.toml

++ fresh_install=true

++ adlistFile=/etc/pihole/adlists.list

++ IPV4_ADDRESS=

++ IPV6_ADDRESS=

++ QUERY_LOGGING=

++ PRIVACY_LEVEL=

++ V6_CONF_MIGRATION_DIR=/etc/pihole/migration_backup_v6

++ '[' -z root ']'

++ r=20

++ c=70

+++ cat

++ PIHOLE_META_PACKAGE_CONTROL_APT='Package: pihole-meta

Version: 0.1

Maintainer: Pi-hole team <adblock@pi-hole.net>

Architecture: all

Description: Pi-hole dependency meta package

Depends: grep,dnsutils,binutils,git,iproute2,dialog,ca-certificates,cron,curl,iputils-ping,psmisc,sudo,unzip,libcap2-bin,dns-root-data,libcap2,netcat-openbsd,procps,jq,lshw,bash-completion'

+++ cat

++ PIHOLE_META_PACKAGE_CONTROL_RPM='Name: pihole-meta

Version: 0.1

Release: 1

License: EUPL

BuildArch: noarch

Summary: Pi-hole dependency meta package

Requires: grep,curl,psmisc,sudo, unzip,jq,git,dialog,ca-certificates, bind-utils, iproute, procps-ng, chkconfig, binutils, cronie, findutils, libcap, nmap-ncat, lshw, bash-completion

%description

Pi-hole dependency meta package

%prep

%build

%files

%install

%changelog

* Sun Sep 29 2024 Pi-hole Team - 0.1

- First version being packaged'

++ repair=false

++ runUnattended=false

++ [[ -f /opt/pihole/COL_TABLE ]]

++ source /opt/pihole/COL_TABLE

+++ '[' -t 1 ']'

++++ tput colors

+++ '[' 256 -ge 8 ']'

+++ COL_BOLD='**'**

**+++ COL_ULINE='****'**

**+++ COL_NC='**'

+++ COL_GRAY=''

+++ COL_RED=''

+++ COL_GREEN=''

+++ COL_YELLOW=''

+++ COL_BLUE=''

+++ COL_PURPLE=''

+++ COL_CYAN=''

+++ COL_WHITE='**'**

**+++ COL_BLACK='**'

+++ COL_LIGHT_BLUE=''

+++ COL_LIGHT_GREEN=''

+++ COL_LIGHT_CYAN=''

+++ COL_LIGHT_RED=''

+++ COL_URG_RED='**'**

**+++ COL_LIGHT_PURPLE='****'**

**+++ COL_BROWN='****'**

**+++ COL_LIGHT_GRAY='****'**

**+++ COL_DARK_GRAY=''**

**+++ TICK='[****✓**]'

+++ CROSS='[✗]'

+++ INFO='[i]'

+++ QST='[?]'

+++ DONE=' done!'

+++ OVER='\r'

++ [[ true != true ]]

+ source /opt/pihole/COL_TABLE

++ '[' -t 1 ']'

+++ tput colors

++ '[' 256 -ge 8 ']'

++ COL_BOLD='**'**

**++ COL_ULINE='****'**

**++ COL_NC='**'

++ COL_GRAY=''

++ COL_RED=''

++ COL_GREEN=''

++ COL_YELLOW=''

++ COL_BLUE=''

++ COL_PURPLE=''

++ COL_CYAN=''

++ COL_WHITE='**'**

**++ COL_BLACK='**'

++ COL_LIGHT_BLUE=''

++ COL_LIGHT_GREEN=''

++ COL_LIGHT_CYAN=''

++ COL_LIGHT_RED=''

++ COL_URG_RED='**'**

**++ COL_LIGHT_PURPLE='****'**

**++ COL_BROWN='****'**

**++ COL_LIGHT_GRAY='****'**

**++ COL_DARK_GRAY=''**

**++ TICK='[****✓**]'

++ CROSS='[✗]'

++ INFO='[i]'

++ QST='[?]'

++ DONE=' done!'

++ OVER='\r'

+ source /opt/pihole/utils.sh

++ getFTLConfigValue webserver.paths.webroot

++ pihole-FTL --config -q webserver.paths.webroot

++ getFTLConfigValue webserver.paths.webhome

++ pihole-FTL --config -q webserver.paths.webhome

+ ADMIN_INTERFACE_DIR=/var/www/html/admin/

+ readonly ADMIN_INTERFACE_DIR

+ [[ '' == \-\-\c\h\e\c\k\-\o\n\l\y ]]

+ main

+ local 'basicError=\n Unable to complete update, please contact Pi-hole Support'

+ local core_update

+ local web_update

+ local FTL_update

+ core_update=false

+ web_update=false

+ FTL_update=false

+ os_check

+ '[' '' '!=' true ']'

+ local remote_os_domain valid_os valid_version valid_response detected_os detected_version display_warning cmdResult digReturnCode response

+ local piholeNameserver=@ns1.pi-hole.net

+ remote_os_domain=versions.pi-hole.net

++ grep '^ID=' /etc/os-release

++ cut -d = -f2

++ tr -d '"'

+ detected_os=debian

++ grep VERSION_ID /etc/os-release

++ cut -d = -f2

++ tr -d '"'

+ detected_version=12

++ os_check_dig 4 versions.pi-hole.net @ns1.pi-hole.net

++ local protocol=4

++ local domain=versions.pi-hole.net

++ local nameserver=@ns1.pi-hole.net

++ local response

+++ dig -4 +short -t txt versions.pi-hole.net @ns1.pi-hole.net

+++ echo 0

++ response='"Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9,10"

0'

++ echo '"Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9,10"

0'

+ cmdResult='"Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9,10"

0'

+ digReturnCode=0

+ '[' '!' 0 == 0 ']'

++ os_check_dig_response cmdResult

++ local digReply=cmdResult

++ local response

++ response=cmdResult

++ '[' cmdResult == 0 ']'

++ echo true

+ valid_response=true

+ '[' true = false ']'

+ '[' true = false ']'

+ '[' true = false ']'

+ '[' true = true ']'

+ response='"Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9,10"'

+ IFS=' '

+ read -r -a supportedOS

++ echo '"Raspbian=11,12 Ubuntu=20,22,23,24 Debian=11,12 Fedora=40,41 CentOS=9,10"'

++ tr -d '"'

+ for distro_and_versions in "${supportedOS[@]}"

+ distro_part=Raspbian

+ versions_part=11,12

+ [[ DEBIAN =~ RASPBIAN ]]

+ for distro_and_versions in "${supportedOS[@]}"

+ distro_part=Ubuntu

+ versions_part=20,22,23,24

+ [[ DEBIAN =~ UBUNTU ]]

+ for distro_and_versions in "${supportedOS[@]}"

+ distro_part=Debian

+ versions_part=11,12

+ [[ DEBIAN =~ DEBIAN ]]

+ valid_os=true

+ IFS=,

+ read -r -a supportedVer

+ for version in "${supportedVer[@]}"

+ [[ 12 =~ 11 ]]

+ for version in "${supportedVer[@]}"

+ [[ 12 =~ 12 ]]

+ valid_version=true

+ break

+ break

+ '[' true = true ']'

+ '[' true = true ']'

+ '[' true = true ']'

+ display_warning=false

+ '[' false '!=' false ']'

+ printf ' %b %bSupported OS detected%b\n' '[✓]' '' ''

[✓] Supported OS detected

+ package_manager_detect

+ is_command apt-get

+ local check_command=apt-get

+ command -v apt-get

+ PKG_MANAGER=apt-get

+ UPDATE_PKG_CACHE='apt-get update'

+ PKG_INSTALL='apt-get -qq --no-install-recommends install'

+ PKG_COUNT='apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'

+ PKG_REMOVE='apt-get -y remove --purge'

+ update_package_cache

+ local 'str=Update local cache of available packages'

+ printf ' %b %s...' '[i]' 'Update local cache of available packages'

[i] Update local cache of available packages...+ eval 'apt-get update'

+ printf '%b %b %s\n' '\r' '[✓]' 'Update local cache of available packages'

[✓] Update local cache of available packages

+ build_dependency_package

+ rm -rf '/tmp/pihole-meta_*'

+ local tempdir

++ mktemp --directory /tmp/pihole-meta_XXXXX

+ tempdir=/tmp/pihole-meta_Pjl1P

+ chmod 0755 /tmp/pihole-meta_Pjl1P

+ is_command apt-get

+ local check_command=apt-get

+ command -v apt-get

+ pushd /tmp

+ rm -f /tmp/pihole-meta.deb

+ mkdir -p /tmp/pihole-meta_Pjl1P/DEBIAN

+ chmod 0755 /tmp/pihole-meta_Pjl1P/DEBIAN

+ touch /tmp/pihole-meta_Pjl1P/DEBIAN/control

+ echo 'Package: pihole-meta

Version: 0.1

Maintainer: Pi-hole team <adblock@pi-hole.net>

Architecture: all

Description: Pi-hole dependency meta package

Depends: grep,dnsutils,binutils,git,iproute2,dialog,ca-certificates,cron,curl,iputils-ping,psmisc,sudo,unzip,libcap2-bin,dns-root-data,libcap2,netcat-openbsd,procps,jq,lshw,bash-completion'

+ local 'str=Building dependency package pihole-meta.deb'

+ printf ' %b %s...' '[i]' 'Building dependency package pihole-meta.deb'

[i] Building dependency package pihole-meta.deb...+ dpkg-deb --build --root-owner-group /tmp/pihole-meta_Pjl1P pihole-meta.deb

+ printf '%b %b %s\n' '\r' '[✓]' 'Building dependency package pihole-meta.deb'

[✓] Building dependency package pihole-meta.deb

+ popd

+ rm -rf /tmp/pihole-meta_Pjl1P

+ install_dependent_packages

+ local 'str=Installing Pi-hole dependency package'

+ printf ' %b %s...' '[i]' 'Installing Pi-hole dependency package'

[i] Installing Pi-hole dependency package...+ is_command apt-get

+ local check_command=apt-get

+ command -v apt-get

+ '[' -f /tmp/pihole-meta.deb ']'

+ eval 'apt-get -qq --no-install-recommends install' /tmp/pihole-meta.deb

+ printf '%b %b %s\n' '\r' '[✗]' 'Installing Pi-hole dependency package'

[✗] Installing Pi-hole dependency package

+ printf ' %b Error: Unable to install Pi-hole dependency package.\n' ''

Error: Unable to install Pi-hole dependency package.

+ return 1

The file should still be there, let's try to install manually

sudo apt-get --no-install-recommends install /tmp/pihole-meta.deb

1 Like