In terminal when I try to sudo chroot .
in home directory I get:
chroot: failed to run command ‘/bin/bash’: No such file or directory
When I try to sudo chroot .
in external Sd card I get:
chroot: failed to run command ‘/bin/bash’: Permission denied
I found out there was a chroot bug reported about this, but there on 2016/04/12 they say:
"Changed in canonical-devices-system-image:
status:
Fix Committed → Fix Released"
I am on a Bq Aquaris m10 HD running Ubuntu 15.04 (OTA-11). This bug also affected OTA 10.1, but I decided to wait for the next OTA. Is anyone else experiencing this behaviour?
I'm asking this because I'd like to install some cli tools without messing the system and breaking much needed OTAs. I'm following this guide:
https://askubuntu.com/a/623311.
Is there any other way to install cli tools without setting the filesystem as writable?
Any workaround is welcome
Edit: Problem solved! As terdon and Rinzwind pointed out the "Permission denied" error was due to not having execution permits in my external SDcard. I downloaded and extracted the ubuntu image in a folder in my home directory and I can now chroot in it just fine. Thanks!