Bug#378283: [Buildd-tools-devel] Bug#378283: Fails with "dpkg
--set-selections failed"
Roger Leigh
rleigh at whinlatter.ukfsn.org
Sat Jul 15 14:27:03 UTC 2006
Martin Michlmayr <tbm at cyrius.com> writes:
> * Roger Leigh <rleigh at whinlatter.ukfsn.org> [2006-07-15 13:47]:
>> Could I have a copy of the full build log?
>
> Attached.
>
>> > When I go into the chroot I get this:
>> > sh-3.1# /bin/su -p root -c 'ls -la' ; echo $? 127
>>
>> What command did you run to go into the chroot? i.e., what is the
>> context of this output?
>
> This is when I enter the chroot manually, but the commands sbuild runs
> has the same problem.
>
> 247:tbm at prehension: ~/build] sudo chroot chroot-unstable1 bin/sh
> sh-3.1# /bin/su -p root -c 'ls -la' ; echo $?
> 127
> sh-3.1#
This works for me:
rleigh at hardknott:~$ schroot -c sid -u root
I: [sid chroot] (rleigh¢ªroot) Running login shell: ¡Æ/bin/bash¡Ç
hardknott:/home/rleigh# /bin/su -p root -c 'ls -la' ; echo $?
total 373336
-rwxr--r-T 1 rleigh rleigh 97763 Jul 15 14:12 #.newsrc-dribble#
drwxr-xr-x 157 rleigh sbuild 12288 Jul 15 14:10 .
drwxrwsr-x 9 root staff 4096 Jul 5 07:55 ..
[...]
-rw-r--r-- 1 rleigh rleigh 1662946 Jul 13 2004 yaboot_1.3.13.orig.tar.gz
drwxr-xr-x 4 rleigh rleigh 4096 Mar 24 2005 {archives}
0
hardknott:/home/rleigh#
Running the same command as in the log:
rleigh at hardknott:~$ /usr/bin/sudo /usr/sbin/chroot /srv/chroot/sid /bin/su -p root -c '/bin/ls /'
bin build etc initrd lost+found mnt proc sbin sys usr
boot dev home lib media opt root srv tmp var
What does "sudo chroot chroot-unstable1 /bin/pwd" show? I get '/':
$ sudo chroot chroot-unstable /bin/pwd
/
It looks like su is not functioning correctly. I don't see why.
In the chroot:
Does /bin/su exist?
Does root exist in /etc/passwd?
Is anything logged to syslog/auth.log?
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060715/999eab56/attachment.pgp
More information about the Buildd-tools-devel
mailing list