[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Progress Report1] Re: Using debootstrap



On 04/28/2018 10:57 PM, Kushal Kumaran wrote:
Richard Owlett <rowlett@cloud85.net> writes:

On 04/27/2018 12:06 PM, Felix Dietrich wrote:
[SNIP]

Do not specify „--print-debs” if you want „debootstrap” to install the
packages.

*BINGO!!!!*
Proofreading one's own work is intrinsically error prone ;/

But it doesn't solve all my problems. Captured the session with
SCRIPT(1). I haven't yet decoded the permission bits displayed by
the "ls -Rdl ..." lines. I don't see the two error messages being
consistent with what I *think* I see when using Caja.
Yepp, I have some homework to do. ;}


Script started on Fri 27 Apr 2018 02:22:42 PM CDT

ls -Rdl /media/root/rco1


ls -Rdl /usr/sbin/debootstrap


ls -Rdl /media/root/rco1


debootstrap --verbose --arch=i386 --include=apt-get --variant=minbase --no-check-gpg stable /media/root/rco1 file:////media/cdrom0/debian/


exit
root@debian-jan13:~# root@debian-jan13:~# ls -Rdl /media/root/rco1
drwxr-xr-x 3 root root 4096 Apr 27 14:08 /media/root/rco1
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# ls
-Rdl /usr/sbin/debootstrap
-rwxr-xr-x 1 root root 18981 Mar 10  2017 /usr/sbin/debootstrap
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# ls
-Rdl /media/root/rco1
drwxr-xr-x 3 root root 4096 Apr 27 14:08 /media/root/rco1
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~#
debootstrap --verbose --arch=i386 --include=apt-get
--variant=minbase --no-check-gpg stable  /media/root/rco1
file:////media/cdrom0/debian/
/usr/sbin/debootstrap: 1454: /usr/sbin/debootstrap: cannot create /media/root/rco1/test-dev-null: Permission denied
E: Cannot install into target '/media/root/rco1' mounted with noexec or nodev
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# exit
exit

Script done on Fri 27 Apr 2018 02:22:42 PM CDT

The error says the filesystem containing /media/root/rco1 is mounted
with noexec or nodev.  Is that in fact the case?

I don't know.

 Look at the /proc/mounts entry for that mountpoint.

I used Caja (MATE's file manager) to look at /proc/mounts without finding anything resembling the needed information. I'm missing some understanding.


The operation debootstrap is attempting appears to be the equivalent of

   mknod /media/root/rco1/test-dev-null c 1 3

You can try it out to verify after you fix the mount options to not
include nodev.


I started with the man page for "mknod" and followed links 2 or 3 levels discovering how little I know ;/ It's 1 AM my time to quit for "day". Much reading to do.

Thanks.



Reply to: