blob: 5faaefe279ec718bc9d21ca78c1197bab8077553 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
[[!meta title "how to deal with dpkg::options"]]
Hello
I try to create a distUpgrade property in order to migrate one of my computer from jessie -> stretch
I started wit this
distUpgrade :: String -> Property DebianLike
distUpgrade p = combineProperties ("apt " ++ p) $ props
& Apt.pendingConfigured
& Apt.runApt ["-y", "--force-yes", "-o", "Dpkg::Options::=\"--force-confnew\"", p]
`assume` MadeChange
But when I try to use this
...
& distUpgrade dist-upgrade
I get this error message
Préconfiguration des paquets...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
dpkg: erreur: requiert une option d'action
Utilisez « dpkg --help » pour obtenir de l'aide à propos de l'installation et la désinstallation des paquets [*] ;
Utilisez « apt » ou « aptitude » pour gérer les paquets de m1578 mis à jour, 376 nouvellement installés, 72 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/1 458 Mo dans les archives.
I checked that if I run this command on the command line it works
apt-get -y --force-yes -o Dpkg::Options::="--force-confnew" dist-upgrade
even If I write this it works
apt-get -y --force-yes -o Dpkg::Options::=\"--force-confnew\" dist-upgrade
So it seems to me that there is a problem with the runApt method or I missed something
thanks
|