ERROR CHROOT - Android Q&A, Help & Troubleshooting

When I open terminal on my Android phone
chroot: can't execute '/bin/su': No such file or directory
I'm getting an error, is there a solution for this?
It was written in some sources that selinux should be disabled. How can I solve this?

Related

How do I install Ubuntu on Infuse 4G?

Hey guys. I am attempting to install Ubuntu on my rooted Samsung Infuse 4G. I have consulted several how-to articles here and elsewhere, but after several hours of work I am still stuck on the final lines of code in the terminal emulator app that a YouTube tutorial suggested. Below is the code that I have entered thus far, and the error code at the bottom of the list:
-----------------
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!
Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at AndroLinux.com ,G2Hacks.com and NexusOneHacks.net
To enter the Ubuntu Linux console just type 'bootubuntu'
# bootubuntu
losetup: /dev/block/loop1/sdcard/ubuntu/ubuntu.img: Not a directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
chroot: can't execute '/bin/bash': No such file or directory
Shutting down Ubuntu
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
# bootubuntu
mknod: /dev/loop1: File exists
losetup: /dev/block/loop1/sdcard/ubuntu/ubuntu.img: Not a directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
chroot: can't execute '/bin/bash': No such file or directory
Shutting down Ubuntu
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
#
---------------------
I have tried two different installation methods. The first one focused on accessing the advanced shell through Windows Command Prompt. This didn't work because the prompt froze after I typed in "advanced shell" (several attempts brought same results) .
I then tried the "easy" version that involved the terminal emulator app in the place of the command prompt. Assumedly, if I can resolve this last issue without causing any more, I should be able to access Ubuntu through Android VNC. It may be important to note that the time before last when I typed in the above code, I got a different error code. That error read: losetup: /dev/loop1: no such device or address. I don't know what made it change.
I can provide further info if needed. Can anyone plz help?
Sent from my SAMSUNG-SGH-I997 using XDA App
Sent from my SAMSUNG-SGH-I997 using XDA App
Sorry, as far as I know there is currently no way to install Ubuntu on the Infuse 4G. But I'll be working on a rom for it and I'll contact you if it works.
Sorry.
Sent from my SGH-I997 using xda premium
calvinllyman said:
Hey guys. I am attempting to install Ubuntu on my rooted Samsung Infuse 4G. I have consulted several how-to articles here and elsewhere, but after several hours of work I am still stuck on the final lines of code in the terminal emulator app that a YouTube tutorial suggested. Below is the code that I have entered thus far, and the error code at the bottom of the list:
-----------------
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!
Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at AndroLinux.com ,G2Hacks.com and NexusOneHacks.net
To enter the Ubuntu Linux console just type 'bootubuntu'
# bootubuntu
losetup: /dev/block/loop1/sdcard/ubuntu/ubuntu.img: Not a directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
chroot: can't execute '/bin/bash': No such file or directory
Shutting down Ubuntu
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
# bootubuntu
mknod: /dev/loop1: File exists
losetup: /dev/block/loop1/sdcard/ubuntu/ubuntu.img: Not a directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
chroot: can't execute '/bin/bash': No such file or directory
Shutting down Ubuntu
failed.
failed.
failed.
failed.
losetup: /dev/loop1: Device or resource busy
#
---------------------
Click to expand...
Click to collapse
OK. While you can't do it on the infuse. Ever. You could get the lg optimus g which once Ubuntu touch gets CDMA will get Ubuntu touch soon after!
Sent from my LG-LS970 using xda app-developers app

[SOLVED]Logcat not working on MIUI

How to enable logcat on MIUI?
When i try to open,i see this error
C:\android-sdk\platform-tools>adb logcat
Unable to open log device '/dev/log/main': No such file or directory
Solution:
Just now i found.
File '/dev/log/main' was get deleted on boot due to init.d script.
Just deleted that file.

trouble installing ubuntu on galaxy tab 2 10.1 (p5100)

hi,
i want to install ubuntu on a Samsung Galaxy Tab2 10.1 (P5100). I have rooted the tab, installed CWM and busybox. I want to finish the installation with command line in shell but it d'oesn't work.
here is the text response to the command:
To enter the Ubuntu Linux console just type 'bootubuntu'
# bootubuntu
bootubuntu
mknod: /dev/loop7: Permission denied
losetup: /sdcard/ubuntu/ubuntu.img: Permission denied
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
/system/bin/bootubuntu[22]: can't create /data/local/ubuntu/etc/resolv.conf: No such file or directory
/system/bin/bootubuntu[23]: can't create /data/local/ubuntu/etc/resolv.conf: No such file or directory
Setting localhost on /etc/hosts
/system/bin/bootubuntu[25]: can't create /data/local/ubuntu/etc/hosts: No such file or directory
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!
chroot: can't change root directory to '/data/local/ubuntu': Operation not permitted
Shutting down Ubuntu
failed: No such file or directory
failed: No such file or directory
failed: No such file or directory
failed: Invalid argument
losetup: /dev/block/loop7: Permission denied
i've followed a tutorial when they said if we are an error at this step, it's certainly because OS can't support loop device, but i have have test and loop devices is supported...
Anybody else has ever had this problem

Problem with SELinux, adb only works as root, else it said it has no permission

So I'm currently building an AOSP Marshmallow based ROM (Chroma) to my Android One device (sprout).
I've modified the sepolicy to make RIL works, etc.
But I have one thing, adb doesn't seem to work properly. I have to sudo adb shell to get to adb. And if I do it on Windows, I will get straight to root user in phone's shell (# instead of $).
Here is my device tree:
https://github.com/kclkcl/android_device_google_sprout-common
As you can see there is an adbd.te file in sepolicy folder. I could not successfully build the ROM with this file, if I delete this, the build will go fine and complete.
Here is the error:
Code:
evice/google/sprout-common/sepolicy/adbd.te:2:ERROR 'unknown type auditd_log' at token ';' on line 14045:
#line 1 "device/google/sprout-common/sepolicy/adbd.te"
allow adbd auditd_log:dir getattr;
checkpolicy: error(s) encountered while parsing configuration
make: *** [out/target/product/sprout8/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
I wonder what's wrong with my sepolicy, and why I couldn't build with that adbd.te file there. Do I need that policy to be able to use adb normally?
As you can see in the picture, when I type adb devices, it list my device, but it says no permission
http://imgur.com/LMqwldc

Complete linux installer - 404 file not found

Sir
I am able to install any distro with CLI successfully in my tablet (android.2.3.4) But when I issue any command (sudo apt-get update or sudo apt-get-installabiword etc.) through lx terminal or ssh terminal, the commands are not executed but returned with error 404 : file not found. Can anybody suggest solution overcome this difficulty ?

Categories

Resources