ravthan / all-eyes

Automatically exported from code.google.com/p/all-eyes
0 stars 0 forks source link

setup_chroot.sh not working #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run script ./setup_chroot.sh

Receiving below errors.  Suspect should be apt-get, not adp-get.

ubuntu@ubuntu:~/workspace/AE_Oct19_2012/src/ae/install$ ./setup_chroot.sh 

*** CREATE CHROOT JAIL AT DIR /ae/jail ***
*** Install the required package ...
[sudo] password for ubuntu: 
sudo: adp-get: command not found
sudo: adp-get: command not found
*** Create the directory to be the jail ...
*** Edit chroot config file ...
./setup_chroot.sh: line 42: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 43: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 44: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 45: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 46: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 47: /etc/schroot/schroot.conf: No such file or directory
./setup_chroot.sh: line 48: /etc/schroot/schroot.conf: No such file or directory
*** Install the OS into the jail ...
sudo: debootstrap: command not found
*** Cross mount the /proc directory ...
mount: mount point /ae/jail/proc does not exist
*** Create a user for chroot ...
chown: invalid user: `ae:ae'
*** Let's go inside the chroot ...
chroot: failed to run command `/bin/bash': No such file or directory
*** Install necessary packages under the chroot ...
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
*** Done!
ubuntu@ubuntu:~/workspace/AE_Oct19_2012/src/ae/install$ 

Original issue reported on code.google.com by heyyoul...@gmail.com on 19 Oct 2012 at 7:28

GoogleCodeExporter commented 8 years ago
Several problems found

1. Need to change permission before appending text to /etc/schroot/schroot.conf 
and then change the permission back. FIXED
2. the user ravi should be ae. Create a var named "user" and replace places 
where need user name to be "$user". FIXED

Original comment by toddd...@gmail.com on 19 Oct 2012 at 8:19

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by toddd...@gmail.com on 19 Oct 2012 at 8:22

GoogleCodeExporter commented 8 years ago
Verified

Original comment by toddd...@gmail.com on 19 Oct 2012 at 8:27