Issue
I did the following
Step 01:
wget -c https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh
Step 02:
class="lang-none prettyprint-override">chmod +x Apache-NetBeans-11.2-bin-linux-x64.sh
Step 03 :
./Apache-NetBeans-11.2-bin-linux-x64.sh
Error:
./Apache-NetBeans-11.2-bin-linux-x64.sh: line 1: syntax error near unexpected token `newline'
./Apache-NetBeans-11.2-bin-linux-x64.sh: line 1: <!DOCTYPE html>
Solution
You are downloading the website where you can choose a mirror to download NetBeans and try to execute that.
Try instead
or any other mirror and repeat your steps.
Answered By - Joachim Rohde
Answer Checked By - Mary Flores (JavaFixing Volunteer)