# Error: Could not update local repository. Contact support

**URL:** <https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850>\
**Category:** Help\
**Created:** [May 2, 2017, 1:44pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850 "2017-05-02T13:44:34Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 1:44pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/1 "2017-05-02T13:44:34Z")

</div>

Trying to update to FTL, the core updated fine, but the web interface gives me this error:

pi@raspberrypi:~ $ pihole -up  
::: Checking for updates...  
::: Pi-hole Core: up to date  
::: Web Interface: update available  
:::  
::: Pi-hole Web Admin files out of date  
:::  
::: Checking for existing repository...  
::: Updating repo in /var/www/html/admin...\*\*\* Error: Could not update local repository. Contact support.

--  
The only thing I can think is that dark theme is interfering?

Any ideas how to fix it? I'm running this on the original Pi model B so have been looking forward to the new FTL API

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [May 2, 2017, 2:22pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/2 "2017-05-02T14:22:09Z")

</div>

Uninstall the dark theme, try again, then reinstall the dark theme. There may be a more efficient way, but I don't remember the details of how the dark theme installs.

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 2:27pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/3 "2017-05-02T14:27:15Z")

</div>

I'm not sure how to uninstall it, is there a command line I can use?

---

<div class="post-metadata">

**Author:** ![Anudeep](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/anudeep/32/194_2.png) [@Anudeep](https://discourse.pi-hole.net/u/Anudeep)\
**Post date:** [May 2, 2017, 2:34pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/4 "2017-05-02T14:34:21Z")

</div>

I too had the same problem, only way is to uninstall and reinstall the pihole

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 2:42pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/5 "2017-05-02T14:42:42Z")

</div>

I was worried that might be the case, damn.. thanks

I remember it made a backup of the original dashboard before installing, but no idea how to restore that

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 3:44pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/6 "2017-05-02T15:44:04Z")

</div>

So I exported my settings and lists from the teleporter, reflashed rapsian, reintalled pi hole, go to import my teleported lists and am met with error after error about not being valid domains

Not particularity impressed I have to set this back up from scratch

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [May 2, 2017, 3:50pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/7 "2017-05-02T15:50:28Z")

</div>

What is the specific error you are receiving. Are you having trouble importing black and whitelists or just one or the other?

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 3:54pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/8 "2017-05-02T15:54:24Z")

</div>

I've sorted it now, it seems that URLs added via the terminal (pihole -w or pihole -b) allow illegal URLs to be added that the web interface does not allow to be imported, such as URLs with http:// or anything after the main URL such as one I had with :9980 at the end

I edited my zip with the lists and removed all the bad URLs, it then let me import it

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [May 2, 2017, 4:01pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/9 "2017-05-02T16:01:37Z")

</div>

So after re-installing and importing (with your edits), is everything working as expected now?

We have logic in the scripts that allow you to only add domain names and would not accept URLs...Did you by chance ever edit these white or blacklist files manually?

```auto
pi@raspberrypi:~ $ pihole -b http://something.com
::: http://something.com is not a valid argument or domain name
pi@raspberrypi:~ $ pihole -b somedomain.com:9980
::: somedomain.com:9980 is not a valid argument or domain name

```

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 4:03pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/10 "2017-05-02T16:03:06Z")

</div>

sort of working now, the white and black lists imported correctly after the edits, but now I have LOST CONNECTION TO API across the top boxes and pihole is not resolving DNS any longer

Also says Pi-hole FTL (Not running) in settings

I never edited those lists manually, always either via the web interface or via SSH PuTTY

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 4:05pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/11 "2017-05-02T16:05:11Z")

</div>

OK, rebooted the Pi and it's working again properly now

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [May 2, 2017, 4:08pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/12 "2017-05-02T16:08:44Z")

</div>

Please let us know if FTL goes offline again; we have had some other users having this.

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 2, 2017, 4:09pm UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/13 "2017-05-02T16:09:45Z")

</div>

Will do, I have the Pi set as my only DNS for that reason, if it goes offline I lose connection on everything so I`ll know straight away

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [May 3, 2017, 9:24am UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/14 "2017-05-03T09:24:06Z")

</div>

RAM usage is significantly lower with FTL, only seeing 12.9% usage on the original RPI Model B with 8MB set for video

---

<div class="post-metadata">

**Author:** ![randomstring](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/randomstring/32/2412_2.png) [@randomstring](https://discourse.pi-hole.net/u/randomstring)\
**Post date:** [December 29, 2017, 3:12am UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/15 "2017-12-29T03:12:01Z")

</div>

You might have some changes in your local git repo in /var/www/html/admin. You can check this by running `git status` and `git diff` in the /var/www/html/admin dir. If you have changes you can either back them out, or just delete the whole directory and start over.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [January 1, 2018, 11:54am UTC](https://discourse.pi-hole.net/t/error-could-not-update-local-repository-contact-support/2850/16 "2018-01-01T11:54:02Z")

</div>

This is an old thread, but we have an FAQ on this error message:

> [@Why does the Pi-hole installer produce the error "Unable to complete update, contact Pi-hole'?](https://discourse.pi-hole.net/t/why-does-the-pi-hole-installer-produce-the-error-unable-to-complete-update-contact-pi-hole/4159):
>
> If you try to install or update Pi-hole but run into problems, you may see a message such as: [✓] Check for existing repository in /var/www/html/admin [i] Update repo in /var/www/html/admin… Error: Could not update local repository. Contact support. Broken Or Modified Web Interface This error typically means the Web interface (or the Core) repository has been modified in some fashion. Since we use git to check for updates and keep Pi-hole up-to-date, you will need to remove your changes, cd …
