Unable to install add-ons (500 Server Error - network is unreachable)

I’m pretty new to Home Assistant.
Did an installation on Raspberry Pi 4 and installed some add-ons by using the Add-on store (File editor, Zigbee2mqtt, Mosquitto broker, Samba share) everything is working fine, but now when I’m trying to install another add-on, I get the following error message when I click the “Install” button in the Add-on store:

image

Failed to install addon

500 Server Error for http+docker://localhost/v1.40/images/create?tag=1.12.4&fromImage=homeassistant%2Farmv7-addon-duckdns: Internal Server Error (“Get “https://registry-1.docker.io/v2/”: dial tcp 52.55.168.20:443: connect: network is unreachable”)

I’m using url http://xxxxxx.duckdns.org:8123 in Android app and http://homeassistant.local:8123 on pc.
I want to install Duck DNS Add-on and Let’s Encrypt Add-on .

Sounds like your RPi4 doesn’t have a working internet connection (or internet access originating from it is being blocked). It’s trying to connect to https://registry-1.docker.io/v2/ but it doesn’t have route to it (so it has no idea where to send the packets).

Ik removed the addons I didn’t used yet (Samba share, Grafana and InfluxDB) and rebooted the Host. Now issue is fixed.