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

$ 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

Previously, there were no such problems when updating.

$ 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)
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?

sudo rm -rf /var/www/html/admin
sudo git clone /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?

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

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

Yes, everything works. Thanks again.

A post was split to a new topic: Web admin damaged, cannot update

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