chromeos-adb-fastboot icon indicating copy to clipboard operation
chromeos-adb-fastboot copied to clipboard

displaying errors

Open The-IT-Sec-Professional opened this issue 3 years ago • 2 comments

I was getting these errors after installation,

chronos@localhost /home/user/"my account" $ adb --version shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor bash: /usr/local/bin/adb: cannot execute binary file: Exec format error

and

chronos@localhost /home/user/"my account"/ $ fastboot --version shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor bash: /usr/local/bin/fastboot: cannot execute binary file: Exec format error

i was actually able to solve the issue by cd into /user/local/bin/ and making it adb and fastboot executable with chmod +x then undoing it with chmod -x and then when I ran adb --version or fastboot --version it displays the version.

The-IT-Sec-Professional avatar Jan 04 '22 09:01 The-IT-Sec-Professional

What does uname -m output?

nathanchance avatar Jan 04 '22 15:01 nathanchance

Also, those binaries should be executable, removing that bit is probably just causing the system adb and fastboot to be used (as I believe Chromebooks ship with copies of those in /usr/bin) but I could be wrong.

nathanchance avatar Jan 04 '22 15:01 nathanchance