Fix, I use gdb to debug the apt & find it hang because of my tty setting. You can ignore this problem now, thanks.

Program received signal SIGTTOU, Stopped (tty output).
0x00007fa6d0b286b8 in __GI_tcsetattr (fd=0, optional_actions=<optimized out>, termios_p=0x55c74ed94168) at ../sysdeps/unix/sysv/linux/tcsetattr.c:83
83      ../sysdeps/unix/sysv/linux/tcsetattr.c: No such file or directory.
------------------------------------------------------------------
发件人:cnspring2002 <cnspring2002@aliyun.com>
发送时间:2019年3月6日(星期三) 03:49
收件人:Steve McIntyre <steve.mcintyre@linaro.org>
抄 送:lava-users <lava-users@lists.lavasoftware.org>
主 题:Re: [Lava-users] apt get install hang

Ok, I remove the mirror when submit job, but things same. 

BTW, I see this, http://git.linaro.org/lava/lava-lxc-mocker.git/tree/lxc-create

it will not use release or mirror, it just a simulate, so I guess the issue not related with what you said I afraid. I not use lxc in fact, But lxc mocker...

在 2019年3月6日,01:38,Steve McIntyre <steve.mcintyre@linaro.org> 写道:

Hi!

On Tue, Mar 05, 2019 at 05:24:37PM +0800, cnspring2002 wrote:
I use lxc-mocker in docker container, everything is ok.

Just if the package did not install in advance, then next command will hang in
web:

lxc-create -t ubuntu -n test_lava -- --release xenial --mirror http://
mirror.bytemark.co.uk/debian --packages systemd,systemd-sysv --arch amd64

I've not tried to directly reproduce your problem, but this command
line looks suspect. You're telling lxc-create to make an Ubuntu image
(with Xenial) but you're pointing it at a Debian mirror. I would never
expect that to work. What are you trying to do?


Cheers,
--
Steve McIntyre                                steve.mcintyre@linaro.org
<http://www.linaro.org/> Linaro.org | Open source software for ARM SoCs