You are not logged in.

#1 2010-06-28 00:50:13

leonardof
Member
Registered: 2008-09-05
Posts: 66

How to set up an Ubuntu chroot inside Arch Linux [solved]

I use Arch Linux (64 bits) as my desktop, but I'd like to have an Ubuntu chroot for development purposes. I installed schroot and debootstrap, created a directory for the jail, and executed:

sudo debootstrap --arch amd64 lucid /var/chroot/ubuntu http://au.archive.ubuntu.com/ubuntu/

Then I edited /etc/schroot/schroot.conf to include only one chroot:

[ubuntu]
description=Ubuntu
type=directory
directory=/var/chroot/ubuntu
priority=1
users=myusername
root-users=myusername
aliases=lucid,default

"myusername" is a placeholder, I wrote my actual username.

I should be able to "schroot -c ubuntu", but when I run the command I receive this error message:

E: 20nssdatabases: /usr/bin/stat: cannot stat `/etc/networks': No such file or directory
E: ubuntu-4df5c899-3603-4a37-ab0f-d81fc3855c8d: Preparação do chroot falhou: etapa=setup-start

And then I'm back to the Arch Linux command line.

What should I do to make my Amd64 Ubuntu chroot work?

Thanks in advance.

Last edited by leonardof (2010-07-24 19:30:31)

Offline

#2 2010-06-28 01:01:56

leonardof
Member
Registered: 2008-09-05
Posts: 66

Re: How to set up an Ubuntu chroot inside Arch Linux [solved]

Tip: touching /etc/networks in Arch Linux doesn't fix it. After creating the files schroot looks for in the host system, I can enter the jail but I have no networking.

Offline

#3 2010-07-12 13:51:23

Dschoordsch
Member
Registered: 2010-07-12
Posts: 6

Re: How to set up an Ubuntu chroot inside Arch Linux [solved]

To fix the network error message you need to comment networks in /etc/schroot/default/nssdatabases.

Offline

#4 2010-07-12 15:29:41

leonardof
Member
Registered: 2008-09-05
Posts: 66

Re: How to set up an Ubuntu chroot inside Arch Linux [solved]

Thank you,  I'll do it as soon as I get home.

Offline

#5 2011-03-11 21:16:29

fotanus
Member
From: Brazil
Registered: 2011-03-11
Posts: 1
Website

Re: How to set up an Ubuntu chroot inside Arch Linux [solved]

Worksforme. Thank you. :-)

Offline

Board footer

Powered by FluxBB