Installing packages without hang

Teresa e Junior teresaejunior at gmail.com
Fri Aug 5 15:49:44 UTC 2016


Em 05/08/2016 08:48, Josef Wolf escreveu:
> On Mon, Aug 01, 2016 at 11:56:26AM +0200, Josef Wolf wrote:
>> Hello,
>>
>> I am trying to do unattended installs of packages (sripted).
>>
>> So I go like this:
>>
>>   $ DEBIAN_FRONTEND=noninteractive \
>>        /usr/bin/apt-get --yes -q \
>>        -o Dpkg::Option::="--force-confdef" \
>>        -o Dpkg::Option::="--force-confold" \
>>        install \
>>        hundreds of packages specified here
>>
>> But dpkg still hangs with:
>>
>>   Setting up bluez (5.37-0ubuntu5) ...
>>   
>>   Configuration file '/etc/bluetooth/main.conf'
>>    ==> File on system created by you or by a script.
>>    ==> File also in package provided by package maintainer.
>>      What would you like to do about it ?  Your options are:
>>       Y or I  : install the package maintainer's version
>>       N or O  : keep your currently-installed version
>>         D     : show the differences between the versions
>>         Z     : start a shell to examine the situation
>>    The default action is to keep your current version.
>>   *** main.conf (Y/I/N/O/D/Z) [default=N] ? 
>>
>> Any suggestions?
> 
> Any hints on this?
> 

I would report this as a bug! For the moment, you could try the
following to get an automatic N input:

yes N | apt-get...




More information about the ubuntu-users mailing list