The issue I am facing: I can´t update to latest version
Details about my system: Raspberry 3B with Debian Trixie
What I have changed since installing Pi-hole: Nothing
———-
I´ve installed Pihole a few days ago, after a lot of struggle on Debian Trixie. Last week I´ve installed it (to test Pihole) on the same machine in 5 minutes, unfortunadely not this time.
Now I´m trying to update to the lastest version and it doesnt work. After running “sudo bash basic-install.sh” it says this:
[i] SELinux not detected
[✓] Update local cache of available packages
[✓] Checking apt-get for upgraded packages... 2 updates available
[i] It is recommended to update your OS after installing the Pi-hole!
[✓] Building dependency package pihole-meta.deb
[✓] Installing Pi-hole dependency package
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...HEAD is now at 1837b75 v6.2.2 (#6447 )
[✓] Update repo in /etc/.pihole
[✗] Check for existing repository in /var/www/html/admin
[✗]Unable to clone GitHub - pi-hole/web: Pi-hole Dashboard for stats and more into /var/www/html/admin : Directory already exists
Error: Could not update local repository. Contact support.
I´m kind of lost here.
Thanks!
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
pihole -d
or if you run your Pi-hole as a Docker container:
docker exec -it <pihole-container-name-or-id> pihole -d
where you substitute <pihole-container-name-or-id> as required.
xtrange
November 1, 2025, 12:12pm
3
The error message above and your log shows there is something wrong with the web interface files:
*** [ DIAGNOSING ]: Web version
git status failed
What is the output of this command?
ls -la /var/www/html/admin
Here:
lars@lab:~ $ ls -la /var/www/html/admin
total 616
drwxr-xr-x 9 www-data www-data 4096 Oct 26 20:58 .
drwxr-xr-x 3 www-data www-data 4096 Oct 26 20:29 ..
-rw-r--r-- 1 www-data www-data 17 Oct 26 20:58 .codespellignore
drwxr-xr-x 2 www-data www-data 4096 Oct 26 20:58 .devcontainer
-rw-r--r-- 1 www-data www-data 571 Oct 26 20:58 .editorconfig
drwxr-xr-x 8 www-data www-data 4096 Oct 26 20:58 .git
-rw-r--r-- 1 www-data www-data 43 Oct 26 20:58 .gitattributes
drwxr-xr-x 4 www-data www-data 4096 Oct 26 20:58 .github
-rw-r--r-- 1 www-data www-data 154 Oct 26 20:58 .gitignore
-rw-r--r-- 1 www-data www-data 2348 Oct 26 20:58 CONTRIBUTING.md
-rw-r--r-- 1 www-data www-data 14136 Oct 26 20:58 LICENSE
-rw-r--r-- 1 www-data www-data 10180 Oct 26 20:58 README.md
-rw-r--r-- 1 www-data www-data 1023 Oct 26 20:58 error403.lp
-rw-r--r-- 1 www-data www-data 1018 Oct 26 20:58 error404.lp
-rw-r--r-- 1 www-data www-data 1302 Oct 26 20:58 gravity.lp
-rw-r--r-- 1 www-data www-data 4984 Oct 26 20:58 groups-clients.lp
-rw-r--r-- 1 www-data www-data 8870 Oct 26 20:58 groups-domains.lp
-rw-r--r-- 1 www-data www-data 4564 Oct 26 20:58 groups-lists.lp
-rw-r--r-- 1 www-data www-data 3324 Oct 26 20:58 groups.lp
drwxr-xr-x 3 www-data www-data 4096 Oct 26 20:58 img
-rw-r--r-- 1 www-data www-data 10823 Oct 26 20:58 index.lp
-rw-r--r-- 1 www-data www-data 1062 Oct 26 20:58 interfaces.lp
-rw-r--r-- 1 www-data www-data 8065 Oct 26 20:58 login.lp
-rw-r--r-- 1 www-data www-data 1580 Oct 26 20:58 messages.lp
-rw-r--r-- 1 www-data www-data 2851 Oct 26 20:58 network.lp
-rw-r--r-- 1 www-data www-data 326254 Oct 26 20:50 package-lock.json
-rw-r--r-- 1 www-data www-data 2348 Oct 26 20:50 package.json
-rw-r--r-- 1 www-data www-data 144 Oct 26 20:58 postcss.config.js
-rw-r--r-- 1 www-data www-data 10183 Oct 26 20:58 queries.lp
drwxr-xr-x 4 www-data www-data 4096 Oct 26 20:29 scripts
-rw-r--r-- 1 www-data www-data 2148 Oct 26 20:58 search.lp
-rw-r--r-- 1 www-data www-data 1427 Oct 26 20:58 settings-all.lp
-rw-r--r-- 1 www-data www-data 15452 Oct 26 20:58 settings-api.lp
-rw-r--r-- 1 www-data www-data 20373 Oct 26 20:58 settings-dhcp.lp
-rw-r--r-- 1 www-data www-data 18054 Oct 26 20:58 settings-dns.lp
-rw-r--r-- 1 www-data www-data 6859 Oct 26 20:58 settings-dnsrecords.lp
-rw-r--r-- 1 www-data www-data 7202 Oct 26 20:58 settings-privacy.lp
-rw-r--r-- 1 www-data www-data 16426 Oct 26 20:58 settings-system.lp
-rw-r--r-- 1 www-data www-data 6598 Oct 26 20:58 settings-teleporter.lp
drwxr-xr-x 3 www-data www-data 4096 Oct 26 20:58 style
-rw-r--r-- 1 www-data www-data 1448 Oct 26 20:58 taillog.lp
drwxr-xr-x 29 www-data www-data 4096 Oct 26 20:58 vendor
-rw-r--r-- 1 www-data www-data 1653 Oct 26 20:58 xo.config.js
Thanks!
I'm not sure what is causing the issue, but we can try the same solution suggested on this other topic:
Maybe it is a permission issue... I really don't know.
Try to nuke the web repo and clone it again:
sudo rm -rf /var/www/html/admin
sudo git clone https://github.com/pi-hole/web.git /var/www/html/admin
After that, run pihole -r again, just to make sure everything is correct.
Does that fix the issue?
This will completely remove the web interface files and install them again.
1 Like
Excellent! Now it´s working fine.
Thanks your help!