Linux Lite Forums

Hardware - Support => Other => Topic started by: +Me on September 07, 2020, 07:23:48 PM

Title: platform-tools flash-all returns command not found, Please Help
Post by: +Me on September 07, 2020, 07:23:48 PM
Hardware = HP EliteDesk 800 G1 DM, 2 GHz i5, 12 GB RAMemory, 1TB Sata, intel HD Graphics 4600

Fully Updated X64 bit Linux-Lite 5

I've Navigated 2 the Location of platform-tools ie. /home/linux-lite/platform-tools Checked that adb iz Running, Confirmed that it Detects the Pixel 2 Phone, I've Copied All the GrapheneOS image Files to inside the platform-tools Directory & Clicked on flash-all.bat it Opens MousePad & when I Click on flash-all.sh Nutthing happens.

From the Linux-Lite Terminal, I cd /home/linux-lite/platform-tools/flash-all it Returns command not found same w/ .bat & .sh eXtensions. Also in All cases I there's a Maroon Red Flag w/ 127 inside I don't know what this means.

Please Help!

;-)K


Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: firenice03 on September 08, 2020, 12:58:20 PM
I've Navigated 2 the Location of platform-tools ie. /home/linux-lite/platform-tools Checked that adb iz Running, Confirmed that it Detects the Pixel 2 Phone, I've Copied All the GrapheneOS image Files to inside the platform-tools Directory & Clicked on flash-all.bat it Opens MousePad & when I Click on flash-all.sh Nutthing happens.

From the Linux-Lite Terminal, I cd /home/linux-lite/platform-tools/flash-all it Returns command not found same w/ .bat & .sh eXtensions. Also in All cases I there's a Maroon Red Flag w/ 127 inside I don't know what this means.

@+Me

1st off the .bat will error as you have seen - .bat are Windows executable files.
The .sh - should work for but may not have the "x" permission (making it executable) - this can be seen if in the terminal ls -la 'the file' on the left you'll see wr-wr-wr- ... or similar (no X)

You can right click the file too - while having properties open - click the box for make executable.
OR in terminal (add path to file name as needed)
Code: [Select]
sudo chmod +x FILENAME
Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: +Me on September 08, 2020, 11:00:40 PM
Thanx FireNice03 4 your Support, Sorry this izn't happening 4 me, Please Check the Attached ScreenShot & let me know wot I've done wRong!

;-)K
Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: +Me on September 14, 2020, 05:45:59 PM
Please Please Help!

Wot eLse Can I Do?

;-)K
Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: firenice03 on September 14, 2020, 08:31:32 PM
Thanx FireNice03 4 your Support, Sorry this izn't happening 4 me, Please Check the Attached ScreenShot & let me know wot I've done wRong!

;-)K


@+Me
1st read up on proper way of posting an image - You will get faster responses, kinda of suspicious of downloading zipped image files ;)

It doesn't know your command - well it thinks its a command -- its a script.
In that directory try with a leading ' ./ '  -- so
Code: [Select]
./flash-all.sh
Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: +Me on September 15, 2020, 02:00:17 AM
Thanx again FireNice03, I've Advanced another step, w/ that ./

But Unfortunately the fastboot --version iz too Old... so I've Updated it, However Now I'm having Challenges w/ Setting the PATH Variable & I'm getting not a valid identifier Message.

Sorry I don't know about How 2 Post an image on this Forum???...

;-)K
Title: Re: platform-tools flash-all returns command not found, Please Help
Post by: firenice03 on September 15, 2020, 09:27:20 AM
@+Me


See the following for posting images/pictures:
https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/msg78/#msg78


For PATH:
https://askubuntu.com/questions/141718/what-is-the-path-environment-variable-and-how-do-i-add-to-it