Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter needed during installation process without asking for it?! #117

Closed
MxNl opened this issue Aug 13, 2022 · 5 comments
Closed

Enter needed during installation process without asking for it?! #117

MxNl opened this issue Aug 13, 2022 · 5 comments
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@MxNl
Copy link

MxNl commented Aug 13, 2022

Hello,

just installed and used rig for the first time. So please forgive me if I got something wrong :-).

During the installation process I had to press enter once, without any hint or question that was asking for it.
I just noticed, because no progress was happening for a few minutes. Maybe I didn't get it right or it was coincidence that after pressing enter the process started printing messages again.

Here is the last output before I pressed enter

[INFO] >   linux-image-4.15.0-65-generic linux-modules-4.15.0-65-generic
[INFO] >   linux-modules-extra-4.15.0-65-generic
[INFO] > Use 'sudo apt autoremove' to remove them.
[INFO] > The following additional packages will be installed:
[INFO] >   libopenblas-dev
[INFO] > The following NEW packages will be installed:
[INFO] >   libopenblas-dev r-4.2.1
[INFO] > 0 upgraded, 2 newly installed, 0 to remove and 343 not upgraded.
[INFO] > Need to get 3.860 kB/63,5 MB of archives.
[INFO] > After this operation, 150 MB of additional disk space will be used.

I am on Linux XXX 4.15.0-163-generic #171-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Thanks a lot!

@gaborcsardi
Copy link
Member

It was most probably a coincidence, but you can run the same command again to make sure. If apt-get wants an ENTER, then it prints something like

Do you want to continue? [Y/n]

@gaborcsardi
Copy link
Member

Actually, I have just seen this on Ubuntu in a root shell.

@gaborcsardi gaborcsardi reopened this Aug 23, 2022
@rstub
Copy link

rstub commented Sep 7, 2022

While setting up a new machine I saw this as well. It looks like the "Do you want to continue? [Y/n]" is echoed only after one presses return:

[...]
[INFO] > Need to get 25.8 MB/89.0 MB of archives.
[INFO] > After this operation, 242 MB of additional disk space will be used.
  
[INFO] > Do you want to continue? [Y/n] Get:1 http://apt.pop-os.org/ubuntu jammy/main amd64 bzip2-doc all 1.0.8-5build1 [500 kB]
[INFO] > Get:2 http://apt.pop-os.org/ubuntu jammy/main amd64 libgfortran5 amd64 12-20220319-1ubuntu1 [883 kB]
[...]

The empty line above is where I hit return.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Sep 7, 2022
@gaborcsardi gaborcsardi added this to the v0.5.2 milestone Sep 9, 2022
@gaborcsardi
Copy link
Member

Seemingly this only appears from a root shell, when there is no sudo. apt thinks that it is running interactively. There is probably a way to make it silent and do the default thing.

gaborcsardi added a commit that referenced this issue Sep 9, 2022
apt needs -y and it also needs DEBIAN_FRONTEND=noninteractive
to avoid questions, from a root shell.

Closes #117.
gaborcsardi added a commit that referenced this issue Sep 9, 2022
@gaborcsardi
Copy link
Member

Closed in 58e5230

gaborcsardi added a commit that referenced this issue Sep 9, 2022
apt needs -y and it also needs DEBIAN_FRONTEND=noninteractive
to avoid questions, from a root shell.

Closes #117.
gaborcsardi added a commit that referenced this issue Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants