Score:0

How to Avoid Prompts When Installing Ubuntu-Drivers for Nvidia GeForce GPU

my flag

Running Ubuntu Focal Fossa on a laptop with Nvidia GeForce GPU. Using the following script as part of some automated set up, particularly for my NVIDIA GPUs and cuDNN set up. (Right now it is happening on my laptop, but potentially it can happen inside a docker container)

# Running as root
apt-get --assume-yes --no-install-recommends install ubuntu-drivers-common wget
ubuntu-drivers install

The last command is asking me for prompt regarding my keyboard layout, like this. enter image description here

Clearly this would not work as part of a container set up. But I cannot find any option to pre-empt this prompt from the ubuntu-drivers manual either. I do use US International layout. Earlier it was also asking for a timezone prompt, which I managed to preempt by setting the timezone, but any help regarding the keyboard prompt will be appreciated.

N0rbert avatar
zw flag
Will `ubuntu-drivers autoinstall` do what you want?
Della avatar
my flag
The manual says ```autoinstall``` is slated to be deprecated and recommends ```install``` instead. I tried it nonetheless, from what I see it does the same job and asks for the same prompt.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.