unable to update to ver 6.5

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx, apache2 or another reverse proxy, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

I have a Raspberry Pi with version 6.4 of pi-hole running very well. At the bottom of the dashboard I spotted that version 6.5 is available so I tried to install it but got an error message. There is nothing custom about my install.

Actual Behaviour:

Error: Unable to update local repository. Contact Pi-hole Support.

I got this error message after several attempts

Debug Token:

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

Pi-hole has 3 components.
Your debug log shows 2 components need an update:

Core should be updated to v6.4.2:

*** [ DIAGNOSING ]: Core version
[✓] Version: v6.4

Web should be updated to v6.5:

*** [ DIAGNOSING ]: Web version
[✓] Version: v6.4.1

FTL is already updated:

*** [ DIAGNOSING ]: FTL version
[✓] Version: v6.6.2

This message means that Github was inaccessible when you tried to update.
This is usually a temporary issue.
Try again later.

If it still fails after a retry, please try to access https://github.com in a browser (from a computer or phone on the same network).

If the domain also fails on the browser, check if the domain is blocked by Pi-hole (check if it shows as blocked, on the Query Log page).

If the domain is accessible via browser, but Pi-hole machine still can't access it, please report back, so we can try to find out what is the issue.

github is accessible by browser. The error message I get when I run "sudo pihole -up" is -

[i] Pi-hole Core:     update available
[i] Web Interface:    update available
[i] FTL:              up to date

[i] Pi-hole core files out of date, updating local repo.
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...
: Could not update local repository. Contact support.

Could you post the last 20 lines from output for below one pls?

sudo bash -x /opt/pihole/update.sh

Description: Pi-hole dependency meta package
Depends: awk,bash-completion,binutils,ca-certificates,cron|cron-daemon,curl,dialog,bind9-dnsutils|dnsutils,dns-root-data,git,grep,iproute2,iputils-ping,jq,libcap2,libcap2-bin,lshw,procps,psmisc,sudo,unzip
Section: contrib/metapackages
Priority: optional'
+ 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_mUtJN 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_mUtJN
+ 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

If run below one, does above .deb file still exist?

file /tmp/pihole-meta.deb

If still exists, whats output for below?

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

I changed the last command by removing the -qq argument!

FYI:

$ man apt-get
[..]
       -q, --quiet
           Quiet; produces output suitable for logging, omitting progress
           indicators. More q's will produce more quiet up to a maximum of
           2. You can also use -q=# to set the quiet level, overriding the
           configuration file. Note that quiet level 2 implies -y; you
           should never use -qq without a no-action modifier such as -d,
           --print-uris or -s as APT may decide to do something you did
           not expect. Configuration Item: quiet.

it returns -

/tmp/pihole-meta.deb: cannot open \`/tmp/pihole-meta.deb' (No such file or directory)

Yeah I already suspected that.
That .deb package tries to install below list of dependency packages:

Whats output for below one?

sudo apt update

And whats output if try to install a couple of those dependency packages with below instead?

sudo apt-get -y --no-install-recommends install bash-completion curl

When copying/pasting the output to here, try to format the output in the reply window by selecting/highlighting it with the mouse first, and pressing the </> button before posting the reply pls?

Eg:

I hope I got the formatting correct this time.



alanb@pihole6:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB                              ]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 https://downloads.plex.tv/repo/deb public InRelease [6,685 B]
Get:5 http://archive.raspberrypi.com/debian bookworm InRelease [55.0 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main armhf Package                              s [293 kB]
Get:7 http://deb.debian.org/debian-security bookworm-security/main arm64 Package                              s [308 kB]
Get:8 http://deb.debian.org/debian-security bookworm-security/main Translation-e                              n [191 kB]
Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [573 kB                              ]
Get:10 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [573 k                              B]
Fetched 2,102 kB in 7s (294 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
309 packages can be upgraded. Run 'apt list --upgradable' to see them.
alanb@pihole6:~ $ sudo apt-get -y --no-install-recommends install bash-completio                              n curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bash-completion is already the newest version (1:2.11-6).
The following additional packages will be installed:
libcurl3-gnutls libcurl4
The following packages will be upgraded:
curl libcurl3-gnutls libcurl4
3 upgraded, 0 newly installed, 0 to remove and 306 not upgraded.
Need to get 0 B/1,039 kB of archives.
After this operation, 65.5 kB disk space will be freed.
apt-listchanges: Reading changelogs...
dpkg: unrecoverable fatal error, aborting:
files list file for package 'libmagickcore-6.q16-6:arm64' is missing final newl                              ine
^Calanb@pihole6:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB                              ]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 https://downloads.plex.tv/repo/deb public InRelease [6,685 B]
Get:5 http://archive.raspberrypi.com/debian bookworm InRelease [55.0 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main armhf Package                              s [293 kB]
Get:7 http://deb.debian.org/debian-security bookworm-security/main arm64 Package                              s [308 kB]
Get:8 http://deb.debian.org/debian-security bookworm-security/main Translation-e                              n [191 kB]
Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [573 kB                              ]
Get:10 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [573 k                              B]
Fetched 2,102 kB in 7s (294 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
309 packages can be upgraded. Run 'apt list --upgradable' to see them.
alanb@pihole6:~ $ sudo apt-get -y --no-install-recommends install bash-completio                              n curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bash-completion is already the newest version (1:2.11-6).
The following additional packages will be installed:
libcurl3-gnutls libcurl4
The following packages will be upgraded:
curl libcurl3-gnutls libcurl4
3 upgraded, 0 newly installed, 0 to remove and 306 not upgraded.
Need to get 0 B/1,039 kB of archives.
After this operation, 65.5 kB disk space will be freed.
apt-listchanges: Reading changelogs...
dpkg: unrecoverable fatal error, aborting:
files list file for package 'libmagickcore-6.q16-6:arm64' is missing final newl                              ine

Try upgrading first:

sudo apt upgrade

If it complains about held back packages, try run a full upgrade:

sudo apt full-upgrade

If that runs successful, you could try run Pi-hole update again:

sudo pihole updatePihole

If all fails, I recommend to ask on the Raspi forums as this is a Pi-OS issue and not a Pi-hole one.

Thank you for your time and patience. I only looked on here because the error message instructed me to contact Pihole support. I did not realise it was an OS issue. I will look elsewhere to see if this can be resolved.