Update via pihole -up errors

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 instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

I am running my pihole in an Ubuntu container. I set this up a long time ago and am trying to update it. I have run apt-get update and apt-get upgrade to ensure I am up to date there.

When I try to update I get the following error:

ubuntu@Pi-Hole:~$ pihole -up
sudo: unable to resolve host Pi-Hole
[i] Checking for updates...
[i] Pi-hole Core: update available
[i] Web Interface: update available
[i] FTL: update available

[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.

Actual Behaviour:

The local repository is able to be updated.
Thank you!

Debug Token:

https://tricorder.pi-hole.net/43e0ekkw2s

Sorry I have solved this.

For anyone else, the issue for me is I had a lock file remaining from some previous git instance which crashed. I removed this lock file, and the update worked as expected.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.