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

Re: [Progress Report1] Re: Using debootstrap



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?  Look at the
/proc/mounts entry for that mountpoint.

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.

-- 
regards,
kushal


Reply to: