sudo dd bs=1M conv=fdatasync if=./proxmox-ve_8.1-2.iso of=/dev/sdb # or
sudo dd bs=1M conv=fdatasync if=./proxmox-ve_8.2-1.iso of=/dev/sdb
I know this is a bit dated, but I thought I'd post my solution. I encountered this error when using a USB stick. I saw a solution to install 7.4 and then upgrade, which I did but I didn't want to stop there. I thought about it and saw some folks said to use a different or a new USB stick. I had a USB 3.0 HDD enclosure so I put in a 500GB SSD I had around (overkill I know) and wrote the 8.2 image to the HDD using the PI imager. It installed flawlessly. Same image as failed on the USB stick.I received the following error on trying to install on a new NUC.
"command ‘unsquashfs -f -dest /target -i /cdrom/pve-base.squashfs’ failed with exit code 1 at /usr/share/perl5/Proxmox/Install.pm line 908”
Appreciate a solution. Thanks