Update pihole version (below is the output from pihole -v)
Pi-hole version is v3.3.1 (Latest: v4.0)
AdminLTE version is v3.3 (Latest: v4.0)
FTL version is v3.0 (Latest: v4.0)
Actual Behaviour:
I am getting an error regarding the repo in /etc/.pihole (below see the output from pihole -up)
pi@phi01:/etc/.pihole $ pihole -up
[i] Checking for updates...
[i] Pi-hole Core: update available
[i] FTL: update available
[i] Web Interface: update available
[i] Updating Pi-hole core and web admin files
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...
Error: Could not update local repository. Contact support.
I also checked the git status of the repo (below is the output from git status)
pi@phi01:/etc/.pihole $ git status
On branch master
Your branch is behind 'origin/master' by 3462 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
I then tried to use git pull and it seems to be successful, but I still get the same error when trying to update.
pi@phi01:/etc/.pihole $ pihole -up
[i] Checking for updates...
[i] Pi-hole Core: update available
[i] FTL: update available
[i] Web Interface: update available
[i] Updating Pi-hole core and web admin files
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...
Error: Could not update local repository. Contact support.
Debug Token:
[✓] Your debug token is: ndnzs4j39e
How do I get everything up-to-date so I can successfully update my pihole version?
No, I have not made any changes to the code or frozen anything (I do not think I even know how to do either of those things).
Output from the command is below.
pi@phi01:~ $ pihole checkout master
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y
[i] Shortcut "master" detected - checking out master branches...
[i] Pi-hole core
[i] Switching to branch: 'master' from 'refs/heads/master'fatal: Unable to create '/etc/.pihole/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
[✗] Unable to pull Core master branch
I ran sudo apt-get -y install php7.0 libapache2-mod-php7.0; sudo service apache2 restart and it rebooted and it is working again. I found this solution from another help site post.
glad you found the answer. For informatiomn purposes apache will be superceded by lighttpd when the installer runs as in a core update or a repair or reconfigure. just keep that in mind and you should be good