Error message when trying to install HACS

I am a total newbie to Home Assistant but I can follow instructions, even if I don’t know what they are doing. I have Home Assistant running on a Home Assistant Yellow box and can access it from the Home Assistant app on my iPad and on my MacBook. Every time I run the “wget -O - https://get.hacs.xyz | bash -” command sequence ion a terminal window, I get the error message “get: connection closed prematurely” as shown in the screenshot below:

Can anyone please point me in the right direction to solve this problem - it is slowly driving me crazy!

Did you manage to fix this? I’m having the same issue.

Edit:
Tried completely uninstalling and reinstalling HAOS, still have the same error.
Always seems to fail between 60 and 80%

Hello Joe,

Sorry, I’ve only just seen your post. I did eventually manage to get HACS installed but the only problem is that it was so long ago, I have forgotten how I solved it. Unfortunately I haven’t been able to make any use the HACS integrations because I don’t understand, at a fundamental level, how all this is supposed to work. The whole Home Assistant thing is so un-intuitive to me that, even when I follow some users instructions to the letter and get some tiny thing to work, my brain just refuses to believe that there isn’t a much easier way to achieve the same thing.

I have programmed many things since the early 1980s, mostly successfully, and I thought that it shouldn’t be too difficult to learn Home Assistant. How wrong I was! The documentation available online is abysmal, often contradictory and seems to change every time a new version of Home Assistant is released. Anyway, not much use to you, I know.

Donald.

I had this exact same issue so thought I’d post my experience to help anyone else who ends up here. I first noticed it when trying to install HACS which failed downloading and also tried downloading other files of simalar size from other places with wget and found it failed in the same way. It worked on a laptop connected to the same router so it seemed the issue was with the Home Assistant install. I eventually came to the conclusion that my HAOS install was corrupt in some way and found this to be true when I tried to reboot it as I struggled to get it back up again and saw a ton of errors when I plugged a monitor into it. I eventually got it back up and I ended up running a backup but was unable to download it from HA probably due to the same issue. I had it upload the backup to AWS S3 and managed to flash a new SD card with HAOS and run a restore and then it worked. I can’t say for certain weather it was the SD card that was failing or if it was just a corrupt file. Maybe there’s just something odd about HAOS that means the wget binary could easily get corrupted.

The SD card I used for the original install was brand new out of the packet and I only set it up a week ago so it’s not had a lot of wear but it could well have been bad out of the packet. I’ll have to run some more tests on it to see.