"Unhealthy system - Setup failed" after cloning the SD card using the "dd" command

Using the “dd” command on my Mac, I transferred my HA from one SD card to another. However, after booting HA from the new SD card, an error message appeared - “Unhealthy system - Setup failed”.

The following solution does not help - Setup of the Supervisor failed - Home Assistant

I can see the error message in the supervisor log:

24-01-28 09:52:38 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
24-01-28 09:52:45 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
24-01-28 09:52:45 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-01-28 09:52:46 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
24-01-28 09:52:47 WARNING (SyncWorker_4) [supervisor.store.data] No repository information exists at /data/addons/git/5c53de3b
24-01-28 09:52:47 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 'str' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 289, in wrapper
    return await self._method(obj, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/store/__init__.py", line 95, in reload
    await self.load()
  File "/usr/src/supervisor/supervisor/store/__init__.py", line 76, in load
    await self.data.update()
  File "/usr/src/supervisor/supervisor/store/data.py", line 136, in update
    addons.update(await self._read_addons_folder(repo.path, repo.slug))
  File "/usr/src/supervisor/supervisor/store/data.py", line 215, in _read_addons_folder
    return await self.sys_run_in_executor(_process_addons_config)
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/store/data.py", line 197, in _process_addons_config
    addon_config = SCHEMA_ADDON_CONFIG(addon_config)
  File "/usr/local/lib/python3.11/site-packages/voluptuous/validators.py", line 237, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
  File "/usr/local/lib/python3.11/site-packages/voluptuous/validators.py", line 359, in _exec
    v = func(v)
  File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 287, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 834, in validate_callable
    return schema(data)
  File "/usr/src/supervisor/supervisor/addons/validate.py", line 213, in _migrate
    name = config.get(ATTR_NAME)
AttributeError: 'str' object has no attribute 'get'
24-01-28 09:52:52 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
24-01-28 09:53:15 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
24-01-28 09:53:15 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance

Please, is there a way to fix this without a clean install of HA?

In the past I have always found it much easier to do a clean install of HA and then recover from a back-up.

By the time you have finished troubleshooting this, your recovery will be complete.

Assuming that you have a recent backup that is…