Cannot upgrade HACS

hi,
I am trying to add GitHub - jdeneef/ha_gpiod: gpiod based RPI gpio switches and sensors to my HA 2024.12.5
But I get stuck.
First issue:
my HACS is still 1.28.3 and it tells me that there is a 2.0.1 available
But when I click on that text-button to upgrade, nothing happens
The the log shows:

2024-12-23 16:25:39.910 ERROR (Dummy-1) [homeassistant.components.websocket_api.http.connection] [3544900128] Error handling message: Unknown error (unknown_error) homeass from 192.168.0.213 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 40, in hacs_repository_info
    await repository.update_repository(ignore_issues=True, force=True)
  File "/config/custom_components/hacs/utils/decorator.py", line 28, in wrapper
    result = await function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/repositories/integration.py", line 126, in update_repository
    if manifest := await self.async_get_integration_manifest():
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hacs/repositories/integration.py", line 173, in async_get_integration_manifest
    raise HacsException(f"No {RepositoryFile.MAINIFEST_JSON} file found '{manifest_path}'")
custom_components.hacs.exceptions.HacsException: No RepositoryFile.MAINIFEST_JSON file found 'custom_components/hacs/RepositoryFile.MAINIFEST_JSON'

It seems like I am missing a Manifest file?
I have to admit… I did restore earlier backups… so maybe I broke HACS

Any tips on his to fix this are very welcome.
PS: I’d be happy to full re-install HACS if needed
thanks in advance
/chris

This is what happens if you ignore updates.
A full reinstall is needed.
Use the (official) docs for instructions.

Actually, it were those automated updates that got me in trouble with their Breaking Changes (GPIO no longer supported)
A long night later… and I found a work-around to install HACS anyway.
I cleaned up HACS directories and HACS cache first
Then I did:

 wget -O - https://raw.githubusercontent.com/hacs/get/main/get >   hacs_install.sh
  chmod +x hacs_install.sh
  sudo ./hacs_install.sh
  sudo reboot

HACS is now working again and I was able to install the RPI.GPIO from HACS
Now my sensors and automations work again
chris