Alessio Treglia <ales...@debian.org> writes: > On Wed, May 4, 2011 at 7:18 PM, Christoph Egger <christ...@debian.org> wrote: >> dpkg output below should probably be enough to get at the exact >> failing location. >> [...] >> Preparing to replace libmtp8 1.0.6-3 (using >> .../libmtp8_1.0.6-4_kfreebsd-amd64.deb) ... >> /var/lib/dpkg/tmp.ci/preinst: 46: Syntax error: "then" unexpected >> dpkg: error processing >> /var/cache/apt/archives/libmtp8_1.0.6-4_kfreebsd-amd64.deb (--unpack): >> subprocess new pre-installation script returned error exit status 2 >> configured to not write apport reports > > This is really odd, no way to reproduce on testing/amd64 (the locale > is set to Italian, it's easy to notice how the upgrade has gone fine > though): > > (Lettura del database... 182891 file e directory attualmente installati.) > Preparativi per sostituire mtp-tools v.1.0.6-2 (utilizzando > .../mtp-tools_1.0.6-4_amd64.deb)... > Estrazione del sostituto di mtp-tools... > Preparativi per sostituire libmtp8 v.1.0.6-2 (utilizzando > .../libmtp8_1.0.6-4_amd64.deb)... > Estrazione del sostituto di libmtp8... > Selezionato il pacchetto libmtp-runtime. > Estrazione di libmtp-runtime (da .../libmtp-runtime_1.0.6-4_amd64.deb)... > Elaborazione dei trigger per man-db... > Elaborazione dei trigger per hal... > Regenerating hal fdi cache ... > Configurazione di libmtp8 (1.0.6-4)... > Configurazione di mtp-tools (1.0.6-4)... > Configurazione di libmtp-runtime (1.0.6-4)... > > So, it needs further investigation.
Looking at the line 46 in preinst (the failing location): 43 if dpkg --compare-versions "$2" le 0.3.7-3 ; then 44 # PART A.2: Prepare to move conffile 45 # PART A.3: Basically rm_conffile without marking the file obsolete (I think) 46 then 47 fi 48 fi This looks quite broken to me (full preinst attached). Regards Christoph
preinst
Description: Binary data
-- 9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731 Debian Developer | Lisp Hacker | CaCert Assurer A. Because it breaks the logical sequence of discussion Q. Why is top posting bad?