Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start SSH and VNC Services. #301

Closed
TheDiamondYT1 opened this issue Sep 27, 2015 · 26 comments
Closed

Can't start SSH and VNC Services. #301

TheDiamondYT1 opened this issue Sep 27, 2015 · 26 comments

Comments

@TheDiamondYT1
Copy link

I get an error when installing Linux

[09:15:11] Disassociating loop device ... done 
[09:15:11] <<< stop
[09:15:15] Updating configuration file ... done
[09:15:15] >>> install
[09:15:15] The container is already mounted. 
[09:15:15] Mounting partitions:  
[09:15:15] / ... skip 
[09:15:15] Installing Debian-based distribution:  
[09:15:15] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: /data/data/ru.meefik.linuxdeploy/linux/share/debootstrap/debootstrap: line 354: tr: Permission denied
[09:15:15] <<< install
[09:15:25] Updating configuration file ... done
[09:15:25] >>> configure
[09:15:25] Configuring the container:  
[09:15:25] qemu ... done 
[09:15:25] dns ... fail 
[09:15:25] mtab ... fail 
[09:15:26] motd ... fail 
[09:15:26] hosts ... done 
[09:15:26] hostname ... fail 
[09:15:26] timezone ... fail 
[09:15:26] su ... done 
[09:15:26] sudo ... fail 
[09:15:26] groups ... fail 
[09:15:26] locales ... fail 
[09:15:26] repository ... fail 
[09:15:26] profile ... fail 
[09:15:26] dbus ... fail 
[09:15:26] xorg ... fail 
[09:15:26] unchroot ... fail 
[09:15:26] android ... fail 
[09:15:26] misc ... done 
[09:15:26] Installing additional components:  
[09:15:26] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1989: chroot: Permission denied
[09:15:26] <<< configure
[09:17:08] Updating configuration file ... done
[09:17:08] >>> stop
[09:17:08] Stopping services:  
[09:17:08] SSH ... done 
[09:17:08] VNC ... fail 
[09:17:08] Release resources ... done 
[09:17:08] Unmounting partitions:  
[09:17:08]  ...nothing mounted 
[09:17:08] Disassociating loop device ... done 
[09:17:09] <<< stop
[09:17:22] Updating configuration file ... done
[09:19:41] Updating configuration file ... done
[09:19:47] Updating configuration file ... done
[09:19:47] >>> start
[09:19:47] Mounting partitions:  
[09:19:47] / ... skip 
[09:19:47] /proc ... skip 
[09:19:47] /sys ... skip 
[09:19:47] /dev ... skip 
[09:19:47] /dev/tty ... skip 
[09:19:47] /dev/pts ... skip 
[09:19:47] /dev/shm ... skip 
[09:19:47] Configuring the container:  
[09:19:47] dns ... fail 
[09:19:47] mtab ... fail 
[09:19:47] Starting services:  
[09:19:47] SSH [:22] ... fail 
[09:19:48] VNC [:5900] ... fail 
[09:19:48] <<< start
[09:19:53] Updating configuration file ... done
[09:19:53] >>> start
[09:19:53] Mounting partitions:  
[09:19:53] / ... skip 
[09:19:53] /proc ... skip 
[09:19:53] /sys ... skip 
[09:19:53] /dev ... skip 
[09:19:53] /dev/tty ... skip 
[09:19:53] /dev/pts ... skip 
[09:19:53] /dev/shm ... skip 
[09:19:53] Configuring the container:  
[09:19:53] dns ... fail 
[09:19:53] mtab ... fail 
[09:19:53] Starting services:  
[09:19:53] SSH [:22] ... fail 
[09:19:53] VNC [:5900] ... fail 
[09:19:53] <<< start
[09:20:42] Updating configuration file ... done
[09:20:45] Updating configuration file ... done
[09:20:45] >>> start
[09:20:46] Mounting partitions:  
[09:20:46] / ... skip 
[09:20:46] /proc ... skip 
[09:20:46] /sys ... skip 
[09:20:46] /dev ... skip 
[09:20:46] /dev/tty ... skip 
[09:20:46] /dev/pts ... skip 
[09:20:46] /dev/shm ... skip 
[09:20:46] /mnt/ ... skip 
[09:20:46] /mnt/ ... skip 
[09:20:46] Configuring the container:  
[09:20:46] dns ... fail 
[09:20:46] mtab ... fail 
[09:20:46] Starting services:  
[09:20:46] SSH [:22] ... fail 
[09:20:46] VNC [:5900] ... fail 
[09:20:46] <<< start
@meefik
Copy link
Owner

meefik commented Sep 27, 2015

Install BusyBox and uncheck "Linux Deploy -> Settings -> Built-in shell" and run "Linux Deploy -> Settings -> Update ENV".

@TheDiamondYT1
Copy link
Author

You're gonna need to make more sense than that.

@ElStonedo
Copy link

You just go into your settings in the program and hit ENV reconfig

@gauti019
Copy link

gauti019 commented May 8, 2016

yes I did the busybox and uncheck built in shell thing but still no benefit. It also says :
[09:15:14] chroot: can't execute 'apt-get': No such file or directory
help pls meefik ,anybody. I m dying to run Linux again now I don't have a laptop so android is my only option. pls somebody help quickly.

@ghost
Copy link

ghost commented Aug 23, 2016

I just made a script on android under /system/bin called Kali with this

su -c "/data/user/0/ru.meefik.linuxdeploy/files/bin/linuxdeploy shell -u root"

@J-keaper
Copy link

@TheDiamondYT1
I have same problem ,can you tell me how do you solve this ?

@TheDiamondYT1
Copy link
Author

@NUC-Edward Hi, ive moved away from linux deploy, and i never fixed this issue. Maybe try the script the guy above made?

@deepshaswat
Copy link

@TheDiamondYT1 which deploy app are you currently using
@blmvxer the command is not working. Giving error message " chroot: can't execute '/bin/su': No such file or directory"
@meefik Please check

@meefik
Copy link
Owner

meefik commented Sep 2, 2016

Version 1.x is no longer supported. Please try version 2.0:
https://github.com/meefik/linuxdeploy/releases/tag/2.0.0

@TheDiamondYT1
Copy link
Author

I just said i dont use linux deploy anymore

@ghost
Copy link

ghost commented Sep 3, 2016

I'm still using the play store version. Now first make sure you're rooted
and once you install say Kali it'll fail on installing packages. Then you
should select configure. After that then you can run my fix

On Sep 2, 2016 07:56, "Luke" notifications@github.com wrote:

I just said i dont use linux deploy anymore


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#301 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AECjsSIWZ_cG4SsvXWK5pwJxaq-rI617ks5qmA7tgaJpZM4GEdUn
.

@MaxiM-PL
Copy link

Same issue in 2.0, SSH fails to start and I cannot for the life of me connect via VNC even though it says it started :/

@JanetnW
Copy link

JanetnW commented Oct 20, 2016

Most work around for this issue seem to be via accessing the linuxdeploy shell and installing packages. However, I keep getting a chroot error and the directory to get to the shell changed in linuxdeploy 2.0. What work around can we get for the current version of Linux deploy please? The error I get when trying to connect to VNC is: the port on which the computer is listening for a connection could not be contacted. Please help

@cubsDen
Copy link

cubsDen commented Dec 4, 2016

@meefik I am also successful in installing through playstore version but during start linuxdeploy says "starting extra/ssh ... fail" also somehow shell command won't work in emulator given 'su' rights.

@tiagodocouto
Copy link

same problem here, on Ubuntu, any version.

@leoncoolmoon
Copy link

try su linuxdeploy start -m

@joeviand
Copy link

Meefik please help.. how to solve this trouble installation. Cant connect to vnc.
::extra/ssh....fail

@ghost
Copy link

ghost commented Jun 27, 2017

Why linux for android if linux it is android? :D

@leoncoolmoon
Copy link

leoncoolmoon commented Jun 27, 2017 via email

@alex-ht
Copy link

alex-ht commented Feb 17, 2018

open debug mode
"Settings->Debug->Debug Mode"

than I got an error messag saying the kernel is too old.
so~ please upgrade it

@samchanCHS
Copy link

@alex-ht I think the kernel it refers to is the kernel of your Android system

In my case, I am using Samsung Note II running CyanogenMod 12.1 (Android 5.1)

Distribution: Ubuntu

I have to use trusty instead of bionic to make it work

@687766616e
Copy link

-->A:* D:*

@687766616e
Copy link

but...

$ curl 127.0.0.1:5080
<HTML><HEAD><TITLE>403 Forbidden</TITLE></HEAD>
<BODY><H1>403 Forbidden</H1>

</BODY></HTML>

@687766616e
Copy link

PORT     STATE SERVICE VERSION
5080/tcp open  http    BusyBox httpd
| http-methods:
|_  Supported Methods: GET HEAD POST
|_http-title: 403 Forbidden
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

ssh still can't open.... t.t

@ItzZisker
Copy link

Can I know what script should I run in terminal to run Linuxdeploy under root then use them to install and enable vnc in? Can someone give me the command? That's only way to fix this, the linuxdeploy is require something from root called (su) and it cannot launch it without root perms but if u run this under android terminal after su, you can simply run linuxdeploy and vnc with no problem, but my issue is: (what actually is a simple command to make a profile for root user then add vnc option enabled in it then start it?)

@Mikary29
Copy link

Mikary29 commented Oct 28, 2020

All you people have to do is manually change the location linux is installed to. It is in the same menu as where you pick the flavor of linux. I used /data/local/linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests