Ubuntu MCUXpresso IDE install fail - ./install.sh: Permission denied

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ubuntu MCUXpresso IDE install fail - ./install.sh: Permission denied

Jump to solution
2,916 Views
daniel_fudge
Contributor III

I'm running Ubuntu 20.04.6 LTS on a x86_64 Intel i3.

When I try to install the MCUXpresso IDE I get the following error.

sudo ./mcuxpressoide-11.10.0_3148.x86_64.deb.bin

Verifying archive integrity... 100% All good.
Uncompressing mcuxpressoide installer 100%
./mcuxpressoide-11.10.0_3148.x86_64.deb.bin: 1: eval: ./install.sh: Permission denied

The file has 755 permisions but it appears a script is created that does not have sufficient permissions...?


0 Kudos
Reply
1 Solution
2,883 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @daniel_fudge 

It seems there might be an issue with the temporary files or directories created during the installation process. You can try the following steps to resolve the issue:
1. Extract the Installer Manually:
Extract the contents of the .bin file to a directory and manually set the permissions for the install.sh script.
mkdir mcuxpresso_installer
cp mcuxpressoide-11.10.0_3148.x86_64.deb.bin mcuxpresso_installer/
cd mcuxpresso_installer
chmod +x mcuxpressoide-11.10.0_3148.x86_64.deb.bin
./mcuxpressoide-11.10.0_3148.x86_64.deb.bin --target .
chmod +x install.sh
sudo ./install.sh

2. Check and Change Ownership:
Ensure that the script has the correct ownership and permissions.
sudo chown $USER:$USER install.sh
chmod +x install.sh
sudo ./install.sh

3. Run Installer with Root Privileges:
Run the installer script directly with root privileges.
sudo bash ./install.sh

Hope this will help you.

BR

Hang

View solution in original post

4 Replies
2,884 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @daniel_fudge 

It seems there might be an issue with the temporary files or directories created during the installation process. You can try the following steps to resolve the issue:
1. Extract the Installer Manually:
Extract the contents of the .bin file to a directory and manually set the permissions for the install.sh script.
mkdir mcuxpresso_installer
cp mcuxpressoide-11.10.0_3148.x86_64.deb.bin mcuxpresso_installer/
cd mcuxpresso_installer
chmod +x mcuxpressoide-11.10.0_3148.x86_64.deb.bin
./mcuxpressoide-11.10.0_3148.x86_64.deb.bin --target .
chmod +x install.sh
sudo ./install.sh

2. Check and Change Ownership:
Ensure that the script has the correct ownership and permissions.
sudo chown $USER:$USER install.sh
chmod +x install.sh
sudo ./install.sh

3. Run Installer with Root Privileges:
Run the installer script directly with root privileges.
sudo bash ./install.sh

Hope this will help you.

BR

Hang

2,786 Views
daniel_fudge
Contributor III
Thank you Hang. I finally had a change to reinstall Ubuntu and retry. It worked. Thank you very much.
0 Kudos
Reply
2,877 Views
daniel_fudge
Contributor III

Thank you Hang.

I was trying to go down that path but I got stuck on the "Extract the contents of the .bin file". How do you extract the files? tar doesn't work.

My second theory was there is a permissions prompt that is not coming up or was being answered "no" in the process. I restarted and also tried the LinkServer deb.bin file and got the same error there. All other deb files install properly.

0 Kudos
Reply
2,831 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @daniel_fudge 

1. Extract the Installer:
• Extract the .deb.bin file to access its contents:
./mcuxpressoide-<version>.x86_64.deb.bin --target <target-directory> --noexec

2. Run the Install Script:
• Navigate to the target directory and run the install script manually:
cd <target-directory>
sudo ./install.sh

Hope this will help you

BR

Hang

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1910152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUbuntu%20MCUXpresso%20IDE%20install%20fail%20-%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1910152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20running%20Ubuntu%2020.04.6%20LTS%20on%20a%20x86_64%20Intel%20i3.%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20install%20the%20MCUXpresso%20IDE%20I%20get%20the%20following%20error.%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Esudo%20.%2Fmcuxpressoide-11.10.0_3148.x86_64.deb.bin%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3EVerifying%20archive%20integrity...%20100%25%20All%20good.%3CBR%20%2F%3EUncompressing%20mcuxpressoide%20installer%20100%25%3CBR%20%2F%3E.%2Fmcuxpressoide-11.10.0_3148.x86_64.deb.bin%3A%201%3A%20eval%3A%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FP%3E%3CP%3EThe%20file%20has%20755%20permisions%20but%20it%20appears%20a%20script%20is%20created%20that%20does%20not%20have%20sufficient%20permissions...%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1918504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Ubuntu%20MCUXpresso%20IDE%20install%20fail%20-%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1918504%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20Hang.%20I%20finally%20had%20a%20change%20to%20reinstall%20Ubuntu%20and%20retry.%20It%20worked.%20Thank%20you%20very%20much.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1913576%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Ubuntu%20MCUXpresso%20IDE%20install%20fail%20-%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1913576%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236802%22%20target%3D%22_blank%22%3E%40daniel_fudge%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Extract%20the%20Installer%3A%3CBR%20%2F%3E%E2%80%A2%20Extract%20the%20.deb.bin%20file%20to%20access%20its%20contents%3A%3CBR%20%2F%3E.%2Fmcuxpressoide-%3CVERSION%3E.x86_64.deb.bin%20--target%20%3CTARGET-DIRECTORY%3E%20--noexec%3C%2FTARGET-DIRECTORY%3E%3C%2FVERSION%3E%3C%2FP%3E%0A%3CP%3E2.%20Run%20the%20Install%20Script%3A%3CBR%20%2F%3E%E2%80%A2%20Navigate%20to%20the%20target%20directory%20and%20run%20the%20install%20script%20manually%3A%3CBR%20%2F%3Ecd%20%3CTARGET-DIRECTORY%3E%3CBR%20%2F%3Esudo%20.%2Finstall.sh%3C%2FTARGET-DIRECTORY%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20will%20help%20you%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHang%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1911411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Ubuntu%20MCUXpresso%20IDE%20install%20fail%20-%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1911411%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20Hang.%3C%2FP%3E%3CP%3EI%20was%20trying%20to%20go%20down%20that%20path%20but%20I%20got%20stuck%20on%20the%20%22%3CSPAN%3EExtract%20the%20contents%20of%20the%20.bin%20file%3C%2FSPAN%3E%22.%20How%20do%20you%20extract%20the%20files%3F%20tar%20doesn't%20work.%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20second%20theory%20was%20there%20is%20a%20permissions%20prompt%20that%20is%20not%20coming%20up%20or%20was%20being%20answered%20%22no%22%20in%20the%20process.%20I%20restarted%20and%20also%20tried%20the%20LinkServer%20deb.bin%20file%20and%20got%20the%20same%20error%20there.%20All%20other%20deb%20files%20install%20properly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1910972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Ubuntu%20MCUXpresso%20IDE%20install%20fail%20-%20.%2Finstall.sh%3A%20Permission%20denied%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1910972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236802%22%20target%3D%22_blank%22%3E%40daniel_fudge%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20there%20might%20be%20an%20issue%20with%20the%20temporary%20files%20or%20directories%20created%20during%20the%20installation%20process.%20You%20can%20try%20the%20following%20steps%20to%20resolve%20the%20issue%3A%3CBR%20%2F%3E1.%20Extract%20the%20Installer%20Manually%3A%3CBR%20%2F%3EExtract%20the%20contents%20of%20the%20.bin%20file%20to%20a%20directory%20and%20manually%20set%20the%20permissions%20for%20the%20install.sh%20script.%3CBR%20%2F%3Emkdir%20mcuxpresso_installer%3CBR%20%2F%3Ecp%20mcuxpressoide-11.10.0_3148.x86_64.deb.bin%20mcuxpresso_installer%2F%3CBR%20%2F%3Ecd%20mcuxpresso_installer%3CBR%20%2F%3Echmod%20%2Bx%20mcuxpressoide-11.10.0_3148.x86_64.deb.bin%3CBR%20%2F%3E.%2Fmcuxpressoide-11.10.0_3148.x86_64.deb.bin%20--target%20.%3CBR%20%2F%3Echmod%20%2Bx%20install.sh%3CBR%20%2F%3Esudo%20.%2Finstall.sh%3C%2FP%3E%0A%3CP%3E2.%20Check%20and%20Change%20Ownership%3A%3CBR%20%2F%3EEnsure%20that%20the%20script%20has%20the%20correct%20ownership%20and%20permissions.%3CBR%20%2F%3Esudo%20chown%20%24USER%3A%24USER%20install.sh%3CBR%20%2F%3Echmod%20%2Bx%20install.sh%3CBR%20%2F%3Esudo%20.%2Finstall.sh%3C%2FP%3E%0A%3CP%3E3.%20Run%20Installer%20with%20Root%20Privileges%3A%3CBR%20%2F%3ERun%20the%20installer%20script%20directly%20with%20root%20privileges.%3CBR%20%2F%3Esudo%20bash%20.%2Finstall.sh%3C%2FP%3E%0A%3CP%3EHope%20this%20will%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHang%3C%2FP%3E%3C%2FLINGO-BODY%3E