Installing packages without hang

C de-Avillez hggdh2 at ubuntu.com
Fri Aug 5 15:42:19 UTC 2016


On Fri, 5 Aug 2016 13:48:25 +0200
Josef Wolf <jw at raven.inka.de> wrote:

> 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?
> 

The file /etc/bluetooth.main.conf had a change outside the package
defaults. You have to decide what to do, since the installer tries not
to clobber local changes to configuration files.

I usually go look at the diff or, if it is a complex change, I select N
(to keep my version of the configuration), and then I go look at it
again (and make any changes I deem necessary), after the update ends.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160805/25e22ea9/attachment.sig>


More information about the ubuntu-users mailing list