I have had a long history of not being able to run .sh files. I don't understand what the underlying problem is,(I'm a little bit new to Ubuntu/UNIX based systems). When I try to run certain .sh scripts I get the following error, accompanied by the Ubuntu Software Center starting up:
"The file "/home/user/Downloads/netbeans-8.1-cpp-linux-x86.sh" could not be opened."
As a clarification, I have been double clicking directly on the .sh file in the file system.
ls -l
of the file. – Rinzwind Dec 25 '15 at 21:30bask /home/user/Downloads/netbeans-8.1-cpp-linux-x86.sh
? – Daniel Dec 25 '15 at 21:50sudo chmod 755 /home/user/Downloads/netbeans-8.1-cpp-linux-x86.sh; bash /home/user/Downloads/netbeans-8.1-cpp-linux-x86.sh
. You will be asked for your login password. – Daniel Dec 25 '15 at 21:51xdg-mime query default $(mimetype -b /home/user/Downloads/netbeans-8.1-cpp-linux-x86.sh)
in a Terminal? – Florian Diesch Dec 25 '15 at 22:53