Not able to install *.run file in Ubuntu?
Solution 1
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to the directory of the .run file, and run the command(s) below:
chmod +x example.run
sudo ./example.run
OR
Right-click the file and select Properties. Under the Permissions tab, make sure that Allow executing file as program is checked and press Close. Double-click the .run file to open it. A dialog box will appear, choose Run in Terminal to run the installer
A Terminal window will open. Follow any instructions on-screen to install the program.
Note:64-bit versions of Ubuntu don't include the 32-bit libraries required to run the installer. Before the installer will run, you need to install the ia32-libs.
Solution 2
Try with the following commands:
cd ~/Downloads chmod +x <file>.run sudo sh ./<file>.run
assuming that you downloaded your files in ~/Downloads
directory.
xpress_embedo
Updated on September 18, 2022Comments
-
xpress_embedo over 1 year
I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI.
I have to install few softwares in Ubuntu which are as follow:
- MPLAB X IDE version 1.90
- XC8 Compiler and X32 Compiler
- Cadsoft from Eagle
I download there setup files, which are having extension
*.run
extension.I searched on Internet and found that these files don't have executable permission, either one have to do it graphically by right clicking on the file and then under permissions tab check the Allow executing as program check box, or use
chmod
command to do so. I had tried everything but nothing works for me.I used graphical method to change this, but as soon as I click on the check box, the check mark disappears. I tried command line methods too but nothing works for me:
sudo chmod u+x MPLABX-v1.90-linux-installer.run sudo chmod +x MPLABX-v1.90-linux-installer.run chmod +x MPLABX-v1.90-linux-installer.run sudo chmod 777 MPLABX-v1.90-linux-installer.run
When run:
sudo ./MPLABX-v1.90-linux-installer.run
the result is command not found.
sudo "./MPLABX-v1.90-linux-installer.run"
results in command not found.
I tried all these commands but nothing changes the permission to executable. Please help me as soon as possible.
-
Scott Salley over 10 yearsCan you print the output of the 'file' command on that file? 'file ./MPLABX-v1.90-linux-installer.run'
-
kiri over 10 yearsAre these files on a NTFS drive? Only Linux filesystems support marking as executable
-
xpress_embedo over 10 yearsHello!! Scott Salley, how to print the output, i am new thats why i dont know. you tell me the instruction, i will do so. What i think is that the problem is with OS part as i am having 4 files to install and all are behaving in similar manner.
-
xpress_embedo over 10 yearshello!! minerz029, i am using wubi to install Ubuntu 12.04.3 and yes they are on NTFS partition. How to solve my problem, if they are on NTFS
-
Braiam over 10 yearsCould you edit your question and add the output of
sudo fdisk -l
andmount
. Also runmd5sum MPLABX-v1.90-linux-installer.run
and add the result.
-
Stormvirux over 10 yearsWill the first one work ,since
./example.run
is not in secure-path of sudo? -
Mitch over 10 yearsIt should work as is, if not then you can force it by using Radu's answer.
-
xpress_embedo over 10 yearsPlease read my first post. I had tried all this method, but nothing works. Because my chmod command isn't changing the permission of the file. When doing this graphically, when i check the allow program as executable, it disappears as soon as i click on it. I had written this in my first post.
-
Radu Rădeanu over 10 years@xpress_embedo So, what is the output of
sudo sh ./MPLABX-v1.90-linux-installer.run
command? -
xpress_embedo over 10 yearsI will see this method. But i want to tell one thing, the software which i am trying to install are present on the hard disk formatted with NTFS. I think this was the reason i am not able to change the permission. I copied the *.run file into the downloads folder and changed its permission, and it works, but when i tried to run it, no error and nothing appears.
-
kiri over 10 years@xpress_embedo be sure to report back which method works for you and note that the last solution, I think is not possible (seeing as it is the system
/
drive) but I put it there for completeness -
xpress_embedo over 10 yearsTill now no method works, but i am able to change the permissions of file, but when i click on the file, nothing happens, no error nothing.
-
xpress_embedo over 10 years@radu-rdeanu I got this sharma@ubuntu:~/Downloads$ sudo sh ./MPLABX-v1.90-linux-installer.run [sudo] password for sharma: ./MPLABX-v1.90-linux-installer.run: 1: ./MPLABX-v1.90-linux-installer.run: Syntax error: "(" unexpected
-
kiri over 10 years@xpress_embedo try running it with this command
sudo bash ./MPLABX-v1.90-linux-installer.run
in terminal -
kiri over 10 years@xpress_embedo You should try using
sudo bash ./MPLABX-v1.90-linux-installer.run
instead, asbash
is different fromsh
(sh
is a symlink todash
) -
Radu Rădeanu over 10 years@xpress_embedo As minerz029 said, you can try with
bash
insteadsh
. But I think that there is a problem with your downloaded file. So, try to download again! -
xpress_embedo over 10 yearsThere is no problem with my download file, i am having four different softwares which all are giving same problem, For MPLAB X there is MD5sum also and i had verified that, it is okay. I will try bash method
-
xpress_embedo over 10 yearsThanks it works... I installed ia32-libs and finally my setup is running.