Non-interactive mode fails at EULA

Bug #1439910 reported by Joseph Matheney
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
msttcorefonts (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I run this shell script:

#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo add-apt-repository -y ppa:ubuntu-wine/ppa
sudo apt-get -y update
sudo apt-get -y install wine1.7

My install still pops up asking me to accept the EULA... I realize an EULA is important, but i dont think its important enough to not work with 'export DEBIAN_FRONTEND=noninteractive' I know there is a EULA associated with the fonts, and accept the terms when I set noninteractive mode

description: updated
Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote :

You can configure debconf to accept the eula before you run "apt-get install":

echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections

I determined the right variable to set by looking in this file after ttf-mscorefonts-installer was installed:
/var/lib/dpkg/info/ttf-mscorefonts-installer.postinst

Revision history for this message
Edwin Grubbs (edwin-grubbs) wrote :

Here is the same command without the wrapping that made it look like I typed in two commands instead of one.

echo ttf-mscorefonts-installer \
   msttcorefonts/accepted-mscorefonts-eula \
   select true \
   | sudo debconf-set-selections

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.