lildebi icon indicating copy to clipboard operation
lildebi copied to clipboard

cdebootstrap couldn't validate release

Open dongmu opened this issue 10 years ago • 22 comments

I tried Lil' Debi in my tablet -- Samsung GT-N8000. When compiling the master branch into my tablet, I encountered with the problem that cdebootstrap couldn't validate the Release. However, everything was all right with release-0.4 branch which used debootstrap instead of cdebootstrap. I compared the "debian-archive-keyring.gpg" of the two branches and they have the same hash values. I also installed debian manually or changed to another version of cdebootstrap, but the problem remained. In the end, I extract the keyring from my debian system installed on my laptop and replace the one in assets directory. Everything became ok with cdebootstrap. So I wonder if the keyring should be changed now. Thanks.

dongmu avatar Apr 14 '14 14:04 dongmu

Thanks for your report! The cdebootstrap code is still not complete, but its great that you have tested it and gotten it working. I committed a fix for this, plus added an extra verification step.

.hc

On 04/14/2014 10:22 AM, dongmu wrote:

I tried Lil' Debi in my tablet -- Samsung GT-N8000. When compiling the master branch into my tablet, I encountered with the problem that cdebootstrap couldn't validate the Release. However, everything was all right with release-0.4 branch which used debootstrap instead of cdebootstrap. I compared the "debian-archive-keyring.gpg" of the two branches and they have the same hash values. I also installed debian manually or changed to another version of cdebootstrap, but the problem remained. In the end, I extract the keyring from my debian system installed on my laptop and replace the one in assets directory. Everything became ok with cdebootstrap. So I wonder if the keyring should be changed now. Thanks.


Reply to this email directly or view it on GitHub: https://github.com/guardianproject/lildebi/issues/93

PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81

eighthave avatar Apr 18 '14 00:04 eighthave

I'm curious about the file version... I'm using the current lildeb from playstore. I made the corrections to scripts explained in #94. I downloaded debian-archive-keyring_2012.4_all.deb $ dpkg --extract debian-archive-keyring_2012.4_all.deb debian_key/ $ cp -a debian_key/usr/share/keyrings/debian-archive-keyring.gpg ~/lildebi/assets/ $ cd ~/lildebi/assets/ $ adb push debian-archive-keyring.gpg /storage/sdcard1/ $ adb shell shell@n7000:/ $ su root@n7000:/ # cp /storage/sdcard1/debian-archive-keyring.gpg /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg

makes lildeb still having an error on getting Release...

ycaniou avatar Apr 18 '14 07:04 ycaniou

Can you include more detail on the problem? Like the install log? You can easily send it to yourself using the menu on the Install Log screen.

.hc

On 04/18/2014 03:13 AM, ycaniou wrote:

I'm curious about the file version... I downloaded debian-archive-keyring_2012.4_all.deb $ dpkg --extract debian-archive-keyring_2012.4_all.deb debian_key/ $ cp -a debian_key/usr/share/keyrings/debian-archive-keyring.gpg ~/lildebi/assets/ $ cd ~/lildebi/assets/ $ adb push debian-archive-keyring.gpg /storage/sdcard1/ $ adb shell shell@n7000:/ $ su root@n7000:/ # cp /storage/sdcard1/debian-archive-keyring.gpg /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg

makes lildeb still having an error on getting Release...


Reply to this email directly or view it on GitHub: https://github.com/guardianproject/lildebi/issues/93#issuecomment-40791586

PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81

eighthave avatar Apr 18 '14 14:04 eighthave

Here's the interesting part of the log.

# cd /data/data/info.guardianproject.lildebi/app_bin
# ./create-debian-setup.sh  /data/data/info.guardianproject.lildebi/app_bin /storage/sdcard0 /storage/sdcard1/debian.img /debian 
# ./stop-debian.sh  /data/data/info.guardianproject.lildebi/app_bin /storage/sdcard0 /storage/sdcard1/debian.img /debian 
# ./unmounted-install-tweaks.sh  /data/data/info.guardianproject.lildebi/app_bin /storage/sdcard0 /storage/sdcard1/debian.img /debian 
# ./start-debian.sh  /data/data/info.guardianproject.lildebi/app_bin /storage/sdcard0 /storage/sdcard1/debian.img /debian 
# /data/data/info.guardianproject.lildebi/app_bin/chroot /debian /data/data/info.guardianproject.lildebi/app_bin/complete-debian-setup.sh  /data/data/info.guardianproject.lildebi/app_bin /storage/sdcard0 /storage/sdcard1/debian.img /debian 
# exit
+ export PATH=/data/data/info.guardianproject.lildebi/app_bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ test -e /data/data/info.guardianproject.lildebi/app_bin/lildebi-common
----------------------------------------
+ . /data/data/info.guardianproject.lildebi/app_bin/lildebi-common
+ echo ----------------------------------------
+ export TERM=linux
+ export HOME=/root
+ export HOSTNAME=debian
+ export DEBIAN_FRONTEND=noninteractive
+ [ 4 -lt 1 ]
+ app_bin=/data/data/info.guardianproject.lildebi/app_bin
+ export PATH=/data/data/info.guardianproject.lildebi/app_bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/sbin:/system/bin:/system/xbin
+ basename ./create-debian-setup.sh
create-debian-setup.sh
+ echo create-debian-setup.sh
+ [ -z ]
+ sdcard=/storage/sdcard0
+ [ -z ]
+ image_path=/storage/sdcard1/debian.img
+ [ -z ]
+ mnt=/debian
+ test -d /data/data/info.guardianproject.lildebi/app_bin
+ test -d /storage/sdcard0
+ test -z /storage/sdcard1/debian.img
+ test -z /debian
+ busybox_path=/data/data/info.guardianproject.lildebi/app_bin
+ busybox=/data/data/info.guardianproject.lildebi/app_bin/busybox
+ dirname /data/data/info.guardianproject.lildebi/app_bin
+ fsck_chroot=/data/data/info.guardianproject.lildebi/fsck-chroot
+ dirname /data/data/info.guardianproject.lildebi/app_bin
+ basename /storage/sdcard1/debian.img.sha1
+ sha1file=/data/data/info.guardianproject.lildebi/debian.img.sha1
+ umask 077
+ find_loopdev
+ find_attached_loopdev
+ /data/data/info.guardianproject.lildebi/app_bin/ls -1 /dev/block/loop0 /dev/block/loop1 /dev/block/loop2 /dev/block/loop3 /dev/block/loop4 /dev/block/loop5 /dev/block/loop6 /dev/block/loop7
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop0
+ grep -q /storage/sdcard1/debian.img
+ 
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop1
+ grep -q /storage/sdcard1/debian.img
+ 
+ + grep -q /storage/sdcard1/debian.img
/data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop2
+ 
+ + grep -q /storage/sdcard1/debian.img
/data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop3
+ 
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop4
+ grep -q /storage/sdcard1/debian.img
+ 
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop5
+ grep -q /storage/sdcard1/debian.img
+ 
+ + /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop6
grep -q /storage/sdcard1/debian.img
+ 
+ + grep -q /storage/sdcard1/debian.img
/data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop7
+ 
+ loopdev=
+ [ -z ]
+ find_free_loopdev
+ [ -e /dev/block/loop0 ]
+ i=0
+ [ 0 -le 255 ]
+ loopdev=/dev/block/loop0
+ [ ! -e /dev/block/loop0 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop0
+ 
+ i=1
+ [ 1 -le 255 ]
+ loopdev=/dev/block/loop1
+ [ ! -e /dev/block/loop1 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop1
+ 
+ i=2
+ [ 2 -le 255 ]
+ loopdev=/dev/block/loop2
+ [ ! -e /dev/block/loop2 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop2
+ 
+ i=3
+ [ 3 -le 255 ]
+ loopdev=/dev/block/loop3
+ [ ! -e /dev/block/loop3 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop3
+ 
+ i=4
+ [ 4 -le 255 ]
+ loopdev=/dev/block/loop4
+ [ ! -e /dev/block/loop4 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop4
+ 
+ i=5
+ [ 5 -le 255 ]
+ loopdev=/dev/block/loop5
+ [ ! -e /dev/block/loop5 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop5
+ 
+ i=6
+ [ 6 -le 255 ]
+ loopdev=/dev/block/loop6
+ [ ! -e /dev/block/loop6 ]
+ /data/data/info.guardianproject.lildebi/app_bin/losetup /dev/block/loop6
+ 
+ echo /dev/block/loop6
+ return
+ echo /dev/block/loop6
+ loopdev=/dev/block/loop6
+ . /data/data/info.guardianproject.lildebi/app_bin/install.conf
+ release=stable
+ mirror=http://ftp2.fr.debian.org/debian/
+ arch=armel
+ imagesize=800
+ mount -o remount,rw rootfs /
No '/bin' found, linking it to busybox utils
+ [ ! -e /bin ]
+ echo No '/bin' found, linking it to busybox utils
+ cd /
+ ln -s /data/data/info.guardianproject.lildebi/app_bin /bin
Creating chroot mountpoint at /debian
+ [ ! -e /debian ]
+ echo Creating chroot mountpoint at /debian
+ mkdir /debian
+ chmod 755 /debian
+ mount -o remount,ro rootfs /
+ grep ext2 /proc/filesystems
Create the image file:
+ [ -z ext2 ]
+ export DEBOOTSTRAP_DIR=/debian/usr/share/debootstrap
+ echo Create the image file:
+ test -e /storage/sdcard1/debian.img
+ dd if=/dev/zero of=/storage/sdcard1/debian.img seek=800 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0MB) copied, 102.528081 seconds, 10.0KB/s
+ test -d /debian
+ test -e /storage/sdcard1/debian.img
+ find_best_filesystem
+ + /data/data/info.guardianproject.lildebi/app_bin/tail -1
/data/data/info.guardianproject.lildebi/app_bin/sort
+ /data/data/info.guardianproject.lildebi/app_bin/grep ext[234] /proc/filesystems
+ mke2fs_options=-L debian_chroot -T    ext4 -F /storage/sdcard1/debian.img
+ test -x /system/bin/mke2fs
+ /system/bin/mke2fs -L debian_chroot -T ext4 -F /storage/sdcard1/debian.img
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=debian_chroot
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
51296 inodes, 205056 blocks
10252 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=213909504
7 block groups
32768 blocks per group, 32768 fragments per group
7328 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840

Writing inode tables: 0/71/72/73/74/75/76/7done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
+ losetup /dev/block/loop6 /storage/sdcard1/debian.img
+ mount -o loop,noatime,errors=remount-ro /dev/block/loop6 /debian
+ cd /debian
+ tar xjf /data/data/info.guardianproject.lildebi/app_bin/debootstrap.tar.bz2
+ cp /data/data/info.guardianproject.lildebi/app_bin/pkgdetails /debian/usr/share/debootstrap/pkgdetails
+ chmod 755 /debian/usr/share/debootstrap/pkgdetails
+ cd /debian/usr/share/debootstrap/scripts
+ test -e jessie
+ ln -s sid jessie
+ test -e oneiric
+ ln -s gutsy oneiric
+ test -e precise
+ ln -s gutsy precise
+ test -e quantal
+ ln -s gutsy quantal
+ test -e raring
+ ln -s gutsy raring
+ test -e saucy
+ ln -s gutsy saucy
creating mountpoints
+ echo creating mountpoints
+ create_mountpoint /dev
+ test -d /dev
+ test -e /debian/dev
+ [ 1 -ne 0 ]
+ [ ! -e /debian/dev ]
+ mkdir /debian/dev
+ create_mountpoint /dev/pts
+ test -d /dev/pts
+ test -e /debian/dev/pts
+ [ 1 -ne 0 ]
+ [ ! -e /debian/dev/pts ]
+ mkdir /debian/dev/pts
+ create_mountpoint /media
+ test -d /media
+ [ 1 -ne 0 ]
+ [ ! -e /debian/media ]
+ mkdir /debian/media
+ create_mountpoint /mnt
+ test -d /mnt
+ test -e /debian/mnt
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt ]
+ mkdir /debian/mnt
+ create_mountpoint /proc
+ test -d /proc
+ test -e /debian/proc
+ [ 1 -ne 0 ]
+ [ ! -e /debian/proc ]
+ mkdir /debian/proc
+ create_mountpoint /sys
+ test -d /sys
+ test -e /debian/sys
+ [ 1 -ne 0 ]
+ [ ! -e /debian/sys ]
+ mkdir /debian/sys
+ create_mountpoint /sys/kernel
+ test -d /sys/kernel
+ test -e /debian/sys/kernel
+ [ 1 -ne 0 ]
+ [ ! -e /debian/sys/kernel ]
+ mkdir /debian/sys/kernel
+ create_mountpoint /sys/kernel/debug
+ test -d /sys/kernel/debug
+ test -e /debian/sys/kernel/debug
+ [ 1 -ne 0 ]
+ [ ! -e /debian/sys/kernel/debug ]
+ mkdir /debian/sys/kernel/debug
+ create_mountpoint /tmp
+ test -d /tmp
+ [ 1 -ne 0 ]
+ [ ! -e /debian/tmp ]
+ mkdir /debian/tmp
+ create_mountpoint /acct
+ test -d /acct
+ test -e /debian/acct
+ [ 1 -ne 0 ]
+ [ ! -e /debian/acct ]
+ mkdir /debian/acct
+ create_mountpoint /app-cache
+ test -d /app-cache
+ [ 1 -ne 0 ]
+ [ ! -e /debian/app-cache ]
+ mkdir /debian/app-cache
+ create_mountpoint /cache
+ test -d /cache
+ test -e /debian/cache
+ [ 1 -ne 0 ]
+ [ ! -e /debian/cache ]
+ mkdir /debian/cache
+ create_mountpoint /data
+ test -d /data
+ test -e /debian/data
+ [ 1 -ne 0 ]
+ [ ! -e /debian/data ]
+ mkdir /debian/data
+ create_mountpoint /dbdata
+ test -d /dbdata
+ [ 1 -ne 0 ]
+ [ ! -e /debian/dbdata ]
+ mkdir /debian/dbdata
+ create_mountpoint /dev/cpuctl
+ test -d /dev/cpuctl
+ test -e /debian/dev/cpuctl
+ [ 1 -ne 0 ]
+ [ ! -e /debian/dev/cpuctl ]
+ mkdir /debian/dev/cpuctl
+ create_mountpoint /efs
+ test -d /efs
+ test -e /debian/efs
+ [ 1 -ne 0 ]
+ [ ! -e /debian/efs ]
+ mkdir /debian/efs
+ create_mountpoint /mnt/.lfs
+ test -d /mnt/.lfs
+ test -e /debian/mnt/.lfs
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/.lfs ]
+ mkdir /debian/mnt/.lfs
+ create_mountpoint /mnt/asec
+ test -d /mnt/asec
+ test -e /debian/mnt/asec
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/asec ]
+ mkdir /debian/mnt/asec
+ create_mountpoint /mnt/obb
+ test -d /mnt/obb
+ test -e /debian/mnt/obb
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/obb ]
+ mkdir /debian/mnt/obb
+ create_mountpoint /mnt/sdcard
+ test -d /mnt/sdcard
+ test -e /debian/mnt/sdcard
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/sdcard ]
+ mkdir /debian/mnt/sdcard
+ create_mountpoint /mnt/sdcard/external_sd
+ test -d /mnt/sdcard/external_sd
+ test -e /debian/mnt/sdcard/external_sd
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/sdcard/external_sd ]
+ mkdir /debian/mnt/sdcard/external_sd
+ create_mountpoint /mnt/sdcard/external_sd/.android_secure
+ test -d /mnt/sdcard/external_sd/.android_secure
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/sdcard/external_sd/.android_secure ]
+ mkdir /debian/mnt/sdcard/external_sd/.android_secure
+ create_mountpoint /mnt/secure
+ test -d /mnt/secure
+ test -e /debian/mnt/secure
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/secure ]
+ mkdir /debian/mnt/secure
+ create_mountpoint /mnt/secure/asec
+ test -d /mnt/secure/asec
+ test -e /debian/mnt/secure/asec
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/secure/asec ]
+ mkdir /debian/mnt/secure/asec
+ create_mountpoint /mnt/secure/.android_secure
+ test -d /mnt/secure/.android_secure
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/secure/.android_secure ]
+ mkdir /debian/mnt/secure/.android_secure
+ create_mountpoint /mnt/shell
+ test -d /mnt/shell
+ test -e /debian/mnt/shell
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/shell ]
+ mkdir /debian/mnt/shell
+ create_mountpoint /mnt/shell/emulated
+ test -d /mnt/shell/emulated
+ [ 1 -ne 0 ]
+ [ ! -e /debian/mnt/shell/emulated ]
+ mkdir /debian/mnt/shell/emulated
+ create_mountpoint /pds
+ test -d /pds
+ [ 1 -ne 0 ]
+ [ ! -e /debian/pds ]
+ mkdir /debian/pds
+ create_mountpoint /sqlite_stmt_journals
+ test -d /sqlite_stmt_journals
+ [ 1 -ne 0 ]
+ [ ! -e /debian/sqlite_stmt_journals ]
+ mkdir /debian/sqlite_stmt_journals
+ create_mountpoint /storage
+ test -d /storage
+ test -e /debian/storage
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage ]
+ mkdir /debian/storage
+ create_mountpoint /storage/emulated
+ test -d /storage/emulated
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/emulated ]
+ mkdir /debian/storage/emulated
+ create_mountpoint /storage/emulated/0
+ test -d /storage/emulated/0
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/emulated/0 ]
+ mkdir /debian/storage/emulated/0
+ create_mountpoint /storage/emulated/legacy
+ test -d /storage/emulated/legacy
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/emulated/legacy ]
+ mkdir /debian/storage/emulated/legacy
+ create_mountpoint /storage/extSdCard
+ test -d /storage/extSdCard
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/extSdCard ]
+ mkdir /debian/storage/extSdCard
+ create_mountpoint /storage/sdcard0
+ test -d /storage/sdcard0
+ test -e /debian/storage/sdcard0
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/sdcard0 ]
+ mkdir /debian/storage/sdcard0
+ create_mountpoint /storage/sdcard1
+ test -d /storage/sdcard1
+ test -e /debian/storage/sdcard1
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/sdcard1 ]
+ mkdir /debian/storage/sdcard1
+ create_mountpoint /storage/usbdisk
+ test -d /storage/usbdisk
+ [ 1 -ne 0 ]
+ [ ! -e /debian/storage/usbdisk ]
+ mkdir /debian/storage/usbdisk
+ create_mountpoint /system
+ test -d /system
+ test -e /debian/system
+ [ 1 -ne 0 ]
+ [ ! -e /debian/system ]
+ mkdir /debian/system
Using keyring for validating packages: /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg
+ keyring_name=debian-archive-keyring.gpg
+ keyring=/data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg
+ test -f /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg
+ echo Using keyring for validating packages: /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg
+ FIRST_KEYRING=--keyring=/data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg
+ test -d /debian/usr
+ test -d /debian/usr/local
+ mkdir /debian/usr/local
+ test -d /debian/usr/local/bin
+ mkdir /debian/usr/local/bin
+ cp /data/data/info.guardianproject.lildebi/app_bin/gpgv /debian/usr/local/bin/
+ mount -o bind /system /debian/system
+ test -d /debian/usr/local/share
+ mkdir /debian/usr/local/share
+ test -d /debian/usr/local/share/keyrings
+ mkdir /debian/usr/local/share/keyrings
+ cp /data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg /debian/usr/local/share/keyrings/
run debootstrap in two stages
+ SECOND_KEYRING=--keyring=/usr/local/share/keyrings/debian-archive-keyring.gpg
+ echo run debootstrap in two stages
+ sh_debootstrap=/data/data/info.guardianproject.lildebi/app_bin/sh /debian/usr/sbin/debootstrap
+ /data/data/info.guardianproject.lildebi/app_bin/sh /debian/usr/sbin/debootstrap --verbose --variant=minbase --keyring=/data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg --arch armel --foreign stable /debian http://ftp2.fr.debian.org/debian/
I: Retrieving Release
E: Failed getting release file http://ftp2.fr.debian.org/debian/dists/stable/Release
+ exit
----------------------------------------
stop-debian.sh
Checking for open files in Debian chroot...
unmounting everything
Deleting loopback device...
BusyBox v1.21.1 (2014-01-04 15:22:14 EST) multi-call binary.

Usage: losetup [-r] [-o OFS] LOOPDEV FILE - associate loop devices
    losetup -d LOOPDEV - disassociate
    losetup [-f] - show

    -o OFS  Start OFS bytes into FILE
    -r  Read-only
    -f  Show first free loop device


Debian chroot stopped and unmounted.
Calculating new SHA1 checksum of /storage/sdcard1/debian.img...
Done!
+ export PATH=/data/data/info.guardianproject.lildebi/app_bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ test -e /data/data/info.guardianproject.lildebi/app_bin/lildebi-common
+ . /data/data/info.guardianproject.lildebi/app_bin/lildebi-common

ycaniou avatar Apr 18 '14 15:04 ycaniou

I believe that debootstrap just uses wget to download the file, so like:

wget http://ftp2.fr.debian.org/debian/dists/stable/Release

Are you connected to the internet?

eighthave avatar Apr 18 '14 16:04 eighthave

I am, got my mails working at the same moment. I also tried different servers (3 at least).

ycaniou avatar Apr 18 '14 16:04 ycaniou

I have just tried the process again according to your instructions. Everything was ok. I suggest that you delete all the stuffs and install a fresh Lil'Debi again from Google Play. Then try the instructions including changing a new "debian-archive-keyring.gpg".

Welcome your feedbacks.

dongmu avatar Apr 18 '14 16:04 dongmu

Desinstalled, installed, checked with droidwall, put the signature file. When installing the first time, got the "install" button stuck to "getting SU" but the installation began. Regardless the number of times, as expected, the installation "stops" when getting Release.

ycaniou avatar Apr 19 '14 13:04 ycaniou

It's very weird. I am sorry I can't figure out the problem. But I have one more suggestion. You could try the exact command "debootstrap" in your Linux system such as Debian or Ubuntu installed on a PC. Of course, be with the gpg key that you extract from the deb package. If that succeeds or fails, you could get more details. This is my way to find out the bug that the old gpg key wasn't compatible with cdebootstrap.

Good luck and welcome your feedbacks.

dongmu avatar Apr 19 '14 15:04 dongmu

Is using Lil'deb something particular to access internet? I had a problem, linux shell wasn't in the white list of DroidWall. With this changed, I can make a wget in a adb shell without being root. Doing the wget in create-debian-setup.sh to test the connection as would Lil'deb, I have the name resolution done, but the connection is refused...

ycaniou avatar Apr 21 '14 07:04 ycaniou

Got the installation done. Still an error appears during installation, which doesn't seem to be of any consequence since "Debian is installed and ssh started!" rm: can't remove '/debian/usr/local/share/keyrings//data/data/info.guardianproject.lildebi/app_bin/debian-archive.keyring.gpg': No such file or directory

ycaniou avatar Apr 22 '14 06:04 ycaniou

I can't find any reference to debian-archive.keyring.gpg in the lil debi source code, only debian-archive-keyring.gpg. Did you edit the scripts by hand?

eighthave avatar Apr 22 '14 18:04 eighthave

and about the droidwall stuff, is there anything Lil' Debi can do in order to tell Droidwall that it needs net access? Lil' Debi's install script runs as root. It is possible to split up the process more so that the downloading happens as the Lil' Debi app user, that's just a matter of someone doing the work.

eighthave avatar Apr 22 '14 18:04 eighthave

No, I didn't edit anything. This was a typo. I didn't copy/paste directly the log. I used the appli as is, and with the key file changed. Here's the interesting part, copy/paste this time: [...] Get:1 http://ftp.jaist.ac.jp/debian/ testing/main locales all 2.18-4 [3916 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 3916 kB in 2s (1678 kB/s) Selecting previously unselected package locales. (Reading database ... 6709 files and directories currently installed.) Preparing to unpack .../locales_2.18-4_all.deb ... Unpacking locales (2.18-4) ... Setting up locales (2.18-4) ... Generating locales (this might take a while)... Generation complete.

  • chroot /debian apt-get clean
  • grep -q -s ext3 /proc/filesystems
  • mount -t proc proc /debian/proc
  • sed s,block/,,
  • echo /dev/block/loop6
  • chroot /debian tune2fs -j /dev/loop6 The filesystem already has a journal.
  • umount /debian/proc tune2fs 1.42.9 (4-Feb-2014)
  • rm /debian/usr/local/bin/gpgv
  • rm /debian/usr/local/share/keyrings//data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg rm: can't remove '/debian/usr/local/share/keyrings//data/data/info.guardianproject.lildebi/app_bin/debian-archive-keyring.gpg': No such file or directory

    stop-debian.sh [...]

ycaniou avatar Apr 23 '14 02:04 ycaniou

That's the point. Giving Lil'debi the possibility to go through the firewall is not enough. One must give all root application this possibility. Making Lil'debi perform this would be much better indeed. -- Where thoses changes would be?

ycaniou avatar Apr 23 '14 02:04 ycaniou

One other issue, after the installation is done. I'm not sure if I have to open a new issue. It's impossible to start Debian. "root mount for eveything Debian mount: mounting /dev/block/loop6 on /debian failed: Device or resource busy Mouting '/debian' failed, returned 255"

ycaniou avatar Apr 23 '14 02:04 ycaniou

I was also getting the same issue. I replaced the 'debian-archive-keyring.gpg' file with freshly downloaded from 'https://github.com/guardianproject/lildebi/' and then it worked.

SDkie avatar May 12 '14 16:05 SDkie

@eighthave: The gpg key in 'https://github.com/guardianproject/lildebi/blob/master/assets/debian-archive-keyring.gpg' is difference than one in the master. Why is it so ?

SDkie avatar May 12 '14 17:05 SDkie

@ycaniou It would be an awesome contribution to get the download working as the Lil' Debi user! In order to get the download running as the Lil' Debi user, you will have to figure out a few things:

  • how to make cdebootstrap run in download-only mode
  • set things up so that cdebootstrap can download as an unprivileged user (basically make sure the file permissions are right)
  • add the ability to run scripts as non-root to the Java code

@SDKie I'm not sure which files you mean are different?

eighthave avatar May 16 '14 00:05 eighthave

@eighthave : I was talking about 'debian-archive-keyring.gpg' file, which was different in my forked lildebi branch and your lildebi master. But latter I check that you have updated it in the commit[1], and my branch was behind that commit.

[1] https://github.com/eighthave/lildebi/commit/52626085d8cd2ae117de07e5123dee9416d2e597

SDkie avatar May 18 '14 19:05 SDkie

cdebootstrap has a --download-only option, so we just need to figure out the file permissions, and how to run it in a first pass not as root. I think the easiest route will probably be to su to the lildebi user ID within create-debian-setup.sh. That probably means having Java code write out the user ID to the install.conf.

eighthave avatar May 19 '14 16:05 eighthave

@ycaniou your loop mount issue seems to be the same as #86 and #87

eighthave avatar May 19 '14 16:05 eighthave