# Error: Web Admin repo is missing from system: Unable to upgrade to release 5.16.1

**URL:** https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034
**Category:** Help
**Tags:** update
**Created:** [March 24, 2023, 1:26pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034 "2023-03-24T13:26:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Evgeny](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/evgeny/32/16189_2.png) [@Evgeny](https://discourse.pi-hole.net/u/Evgeny)
#### Post date: [March 24, 2023, 1:27pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/1 "2023-03-24T13:27:00Z")

</div>

```auto
$ pihole -up
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.4.33
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for dialog
  [✓] Checking for ca-certificates

  [i] Checking for updates...
  [i] Pi-hole Core:	update available

  Error: Web Admin repo is missing from system!
  Please re-run install script from https://pi-hole.net

```

Previously, there were no such problems when updating.

```auto
$ pihole -v
  Pi-hole version is v5.15.5 (Latest: v5.16.1)
  AdminLTE version is N/A N/A (Latest: v5.19)
  FTL version is v5.21 (Latest: v5.22)

```

```auto
uname -a
Linux pi 5.15.76-v7+ #1597 SMP Fri Nov 4 12:13:17 GMT 2022 armv7l GNU/Linux

```

Distributor ID: Raspbian  
Description: Raspbian GNU/Linux 11 (bullseye)  
Release: 11  
Codename: bullseye

What to do about it?

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [March 24, 2023, 2:10pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/2 "2023-03-24T14:10:37Z")

</div>

```auto
sudo rm -rf /var/www/html/admin
sudo git clone https://github.com/pi-hole/AdminLTE.git /var/www/html/admin

```

---

<div class="post-metadata">

### Author: ![Evgeny](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/evgeny/32/16189_2.png) [@Evgeny](https://discourse.pi-hole.net/u/Evgeny)
#### Post date: [March 24, 2023, 3:03pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/3 "2023-03-24T15:03:37Z")

</div>

> [@yubiuser](#):
>
> `/var/www/html/admin`

Thanks! It helped. The update has now completed successfully.

Do I need to change the owner of the files in this directory?

```auto
sudo chown -R www-data:www-data /var/www/html/admin

```

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [March 24, 2023, 10:46pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/4 "2023-03-24T22:46:50Z")

</div>

I think this should not be necessary. Did you try if the web interface is working without the change?

---

<div class="post-metadata">

### Author: ![Evgeny](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/evgeny/32/16189_2.png) [@Evgeny](https://discourse.pi-hole.net/u/Evgeny)
#### Post date: [March 25, 2023, 9:26am UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/5 "2023-03-25T09:26:36Z")

</div>

Yes, everything works. Thanks again.

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [March 25, 2023, 1:14pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/6 "2023-03-25T13:14:21Z")

</div>

A post was split to a new topic: [Web admin damaged, cannot update](https://discourse.pi-hole.net/t/web-admin-damaged-cannot-update/62059)

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [April 15, 2023, 1:14pm UTC](https://discourse.pi-hole.net/t/error-web-admin-repo-is-missing-from-system-unable-to-upgrade-to-release-5-16-1/62034/7 "2023-04-15T13:14:42Z")

</div>

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