Skip to content

Commit 8046e13

Browse files
Merge pull request docker-archive-public#1553 from jasisk/fix-conffile-error
Fix apt-get error on conf file conflict
2 parents 0acadcb + b1999a7 commit 8046e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmachine/provision/ubuntu_upstart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.Pack
111111
}
112112
}
113113

114-
command := fmt.Sprintf("DEBIAN_FRONTEND=noninteractive sudo -E apt-get %s -y %s", packageAction, name)
114+
command := fmt.Sprintf("DEBIAN_FRONTEND=noninteractive sudo -E apt-get %s -y -o Dpkg::Options::=\"--force-confnew\" %s", packageAction, name)
115115

116116
log.Debugf("package: action=%s name=%s", action.String(), name)
117117

0 commit comments

Comments
 (0)