wifibroadcast-image-builder icon indicating copy to clipboard operation
wifibroadcast-image-builder copied to clipboard

apt-get asking questions during image build

Open rodizio1 opened this issue 6 years ago • 14 comments

I think this can be fixed with the --assume-no parameter (IIRC this has to be put in front of the package name).

rodizio1 avatar Nov 14 '18 11:11 rodizio1

Thanks @rodizio1 . I will test this parameter. But I don't remember the name of the package that was asking a question with apt-get.

Yes21 avatar Nov 27 '18 19:11 Yes21

I've tried with : DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no tshark in stages/03-Packages/00-run-chroot.sh But it doesn't change anything. I believe the yes/no question is caused by a dependency. I don't know which, but will continue to investigate ...

Yes21 avatar Nov 28 '18 18:11 Yes21

I'm sorry, I can't reproduce the yes/no question on the live image. I've removed tshark and all its dependencies, then reinstalled it. But I didn't get the yes/no question. I can't find where it's coming from ...

Yes21 avatar Nov 28 '18 20:11 Yes21

I've fixed it !!

DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no wireshark-common

I'm preparing a PR for it, and 2 more issues ...

Yes21 avatar Nov 29 '18 14:11 Yes21

Can this issue be closed now?

RespawnDespair avatar Nov 29 '18 15:11 RespawnDespair

DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no wireshark-common

No, it doesn't work. I did believe it, but the packages wasn't installed because of an other problem ...

Yes21 avatar Dec 03 '18 17:12 Yes21

Not so sure this is such a high priority issue. It’s annoying that you have to answer a question but not that terrible in my opinion.

On another note, do we need/want wireshark at all?

pilotnbr1 avatar Dec 03 '18 17:12 pilotnbr1

Not so sure this is such a high priority issue. It’s annoying that you have to answer a question but not that terrible in my opinion.

I agree, that's not terrible. The main drawback is that one can't let the process goes to the end without answering to the question ...

On another note, do we need/want wireshark at all?

Wireshark-common is needed by tshark. I think OSD wasn't working without tshark, but not sure. We should try again to be sure ...

Yes21 avatar Dec 03 '18 18:12 Yes21

I don't think the OSD needs wireshark, but that's easy to test. As i recall wireshark is used mainly for debugging purposes, but it might also be used in setting up the wifi cards. I'll look into this in the near future. For now, try removing the package and compiling the OSD on a live image.

RespawnDespair avatar Dec 04 '18 08:12 RespawnDespair

I’ll test that.

If it’s not required another option might be to clone it onto the image but not install. That way if an advanced user wants to use it all they have to do is install it sans downloading and the ass pain of connecting the pi to internet.

pilotnbr1 avatar Dec 04 '18 09:12 pilotnbr1

1- wireshark-common and tshark are not installed in 1.6RC6.

2- I did remove them both on air and groundPi, and I could see no difference (video, OSD, telemetry working).

So we could perhaps remove them for the script (just commenting tshark install, to remember)

Yes21 avatar Dec 04 '18 16:12 Yes21

@pilotnbr1 Did you test removing wireshark-common and tshark with your 722n and 036nha ? If it works for you, I think we could remove them from the script.

Yes21 avatar Dec 05 '18 17:12 Yes21

I have not tried yet. Ill start a build and give it a test.

pilotnbr1 avatar Dec 05 '18 18:12 pilotnbr1

I finally tested this (wife is back after her trip so I am busy again) and no problems removing wireshark and tshark.

pilotnbr1 avatar Dec 07 '18 00:12 pilotnbr1