bootstrapp issues with debian

311 views
Skip to first unread message

toufique

unread,
Jun 29, 2017, 2:34:33 AM6/29/17
to singularity
Hello everyone, 

I am new to singularity, trying to bootstrap debian jessie (or I suppose the latest version) . I get the following error when I attempt to bootstrap:

ERROR: debootstrap is not in PATH... Perhaps 'apt-get install' it?

I have the following config file:

DistType: debian
BootStrap: debootstrap
OSVersion: Jessie

%runscript
    echo "This is what happens when you run the container..."

%post
    apt-get install epel-release
    apt-get install libtool debootstrap xz
    echo "Hello from inside the container"
    apt-get update
    apt-get -y --force-yes install vim

I am sure I am doing something wrong here, not sure what exactly I am doing wrong.  Does any have a working debian config file that I can a take a look at?  

thanks in advance! 

David Godlove

unread,
Jun 29, 2017, 9:25:20 AM6/29/17
to singu...@lbl.gov
Hi there,

Singularity is telling you that you need to install the debootstrap package on your build system.  If your build system is Debian/Ubuntu, you just need to type:

$ sudo apt-get install Debian

If your build system is RHEL/CentOS, you need to type something like this:

$ sudo yum install epel-release
$ sudo yum install debootstrap.noarch

Or if you want you can just use docker as a bootstrap agent and get debian:latest.  Then you don’t need debootstrap on your system.

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.

Shashi Ranjan

unread,
Jun 29, 2017, 9:33:01 AM6/29/17
to singu...@lbl.gov
Try this once 

BootStrap: debootstrap

OSVersion: trusty

MirrorURL: http://us.archive.ubuntu.com/ubuntu/

%runscript

    echo "This is what happens when you run the container..."

%post

    echo "Hello from inside the container"


With Regards,
Shashi Ranjan,
Mobile # 9008189000
in.linkedin.com/in/shashiranjanIndia


To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

toufique

unread,
Jun 29, 2017, 4:51:27 PM6/29/17
to singularity
Thanks David and Shashi!

David Godlove

unread,
Jun 29, 2017, 5:14:22 PM6/29/17
to singu...@lbl.gov
Sure thing.  And I just noticed that my auto-correct was very aggressive there.  What I meant to type for an Ubnunt/Debian machine was:

$ sudo apt-get install debootstrap 

toufique

unread,
Jun 29, 2017, 5:33:47 PM6/29/17
to singularity
that yum install debootstrap did the trick :-) , thanks David!
Reply all
Reply to author
Forward
0 new messages