Sorry, there's a typo in the last command of the workaround -- there should only be one pipe, not two:
cat linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
Sorry, there's a typo in the last command of the workaround -- there should only be one pipe, not two:
cat linux-installer.py | sudo python -c "import sys; main=lambda: sys.stderr. write(' Download failed\n'); exec(sys. stdin.read( )); main()"