Failed to upgrade from 2.9.5 to 2.10.2

I get the following when running sudo pihole -up.

::: Checking for existing repository...
::: Checking /etc/.pihole is a repo... OK!
::: Updating repo in /etc/.pihole... [/] error: unable to resolve reference refs/remotes/origin/adlistssettings: Invalid argument
error: unable to resolve reference refs/remotes/origin/cleanup/debug_tweaks: Invalid argument
error: unable to resolve reference refs/remotes/origin/cleanup/shellcheck_debug: Invalid argument
error: unable to resolve reference refs/remotes/origin/feature/track_pre-installed_packages: Invalid argument
error: unable to resolve reference refs/remotes/origin/updatetodevel: Invalid argument
error: unable to resolve reference refs/remotes/origin/webbasedupdate: Invalid argument
error: unable to resolve reference refs/tags/v2.10: Invalid argument
error: unable to resolve reference refs/tags/v2.10.1: Invalid argument
error: unable to resolve reference refs/tags/v2.10.2: Invalid argument
done!

When I try running sudo git fetch on /etc/.pihole, I get:

error: unable to resolve reference refs/remotes/origin/adlistssettings: Invalid argument
From GitHub - pi-hole/pi-hole: A black hole for Internet advertisements
! [new branch] adlistssettings -> origin/adlistssettings (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/cleanup/debug_tweaks: Invalid argument
! [new branch] cleanup/debug_tweaks -> origin/cleanup/debug_tweaks (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/cleanup/shellcheck_debug: Invalid argument
! [new branch] cleanup/shellcheck_debug -> origin/cleanup/shellcheck_debug (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/feature/track_pre-installed_packages: Invalid argument
! [new branch] feature/track_pre-installed_packages -> origin/feature/track_pre-installed_packages (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/updatetodevel: Invalid argument
! [new branch] updatetodevel -> origin/updatetodevel (unable to update local ref)
error: unable to resolve reference refs/remotes/origin/webbasedupdate: Invalid argument
! [new branch] webbasedupdate -> origin/webbasedupdate (unable to update local ref)
error: unable to resolve reference refs/tags/v2.10: Invalid argument
! [new tag] v2.10 -> v2.10 (unable to update local ref)
error: unable to resolve reference refs/tags/v2.10.1: Invalid argument
! [new tag] v2.10.1 -> v2.10.1 (unable to update local ref)
error: unable to resolve reference refs/tags/v2.10.2: Invalid argument
! [new tag] v2.10.2 -> v2.10.2 (unable to update local ref)

I'd rather not wipe everything and start over.

Try just a plain pihole -up and then git status in the /etc/.pihole directory.

Hi Borat,

Might be best to wipe the local repos and start over. (Your configs will be preserved this way)

sudo rm -rf /etc/.pihole
sudo git clone -q --depth 1 https://github.com/pi-hole/pi-hole.git /etc/.pihole

sudo rm -rf /var/www/html/admin
sudo git clone -q --depth 1 https://github.com/pi-hole/adminLTE.git /var/www/html/admin

pihole -r

After the last step, choose the repair option, and you should be back on track

1 Like

Thanks. This solved my issue and was quick an painless!

I have issues updating too from 2.9.5 to 2.10.2 just getting another error

::: Checking for existing repository...
::: Checking /etc/.pihole is a repo... OK!
::: Updating repo in /etc/.pihole... [-]  fatal: unable to access 'https://github.com/pi-hole/pi-hole.git/': Failed to connect to github.com port 443: No route to host done!

Your system doesn't seem to have internet access. Please open a new thread if you are unable to fix the connection yourself.