[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#695260: After upgrade from Lenny to Squeeze is no possible to configure lmodern.



reassign 695260 dpkg
tags 695260 - moreinfo unreproducible
retitle 695260 dpkg-maintscript-helper breaks when rm_conffile file is missing
thanks

Dear dpkg maintainers,

in our lmodern package we use dpkg-maintscript helper to remove the
old lmodern.hints file (transition away from defoma). The code is
generated by having debian/lmodern.maintscript containing:
	rm_conffile /etc/defoma/hints/lmodern.hints 2.004.1-3
	rm_conffile /etc/texmf/updmap.d/10lmodern.cfg 2.004.1-3.1
which generated in the postinst script:
	dpkg-maintscript-helper rm_conffile /etc/defoma/hints/lmodern.hints 2.004.1-3 -- "$@"
	dpkg-maintscript-helper rm_conffile /etc/texmf/updmap.d/10lmodern.cfg 2.004.1-3.1 -- "$@"

Now it seems that if out of whatever reason - in this current case it is
hard to say why, but the admin might have removed the file which is an
allowed procedure - the file is missing, the call to dpkg-maintscript-helper
fails. I quote from the bug report we got:
> Configurazione di lmodern (2.004.1-3)...
> /etc/defoma/hints/lmodern.hints: Unable to open, or empty.
> dpkg: errore nell'elaborare lmodern (--configure):
>  il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 1

It is Italian saying the usual thing, and that a return value of 1 was received
from the post-installation script.

Is this intended behaviour, but how should we as maintainers deal with
that, as the full postinst code is generated from the debhelper call.

Thanks a lot and all the best

Norbert


On Do, 06 Dez 2012, Ezio Da Rin wrote:
> Package: lmodern
> Version: 2.004.1-3
> Severity: important
> 
> 
> 
> -- System Information:
> Debian Release: 6.0.6
>   APT prefers stable
>   APT policy: (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
> Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages lmodern depends on:
> ii  defoma                        0.11.11    Debian Font Manager -- automatic f
> ii  dpkg                          1.15.8.13  Debian package management system
> ii  tex-common                    2.08.1     common infrastructure for building
> ii  xfonts-utils                  1:7.5+2    X Window System font utility progr
> 
> lmodern recommends no packages.
> 
> lmodern suggests no packages.
> 
> -- Configuration Files:
> /etc/X11/fonts/Type1/lmodern.scale [Errno 2] No such file or directory: u'/etc/X11/fonts/Type1/lmodern.scale'
> 
> -- no debconf information
> 
> After upgrading from Lenny to Squeeze lmodern it was not possible to configureter upgrade from Lenny to Squeeze.
> apt-get install -f return this error every time:
> 
> debianserver:/# apt-get -f install
> Lettura elenco dei pacchetti... Fatto
> Generazione albero delle dipendenze
> Lettura informazioni sullo stato... Fatto
> 0 aggiornati, 0 installati, 0 da rimuovere e 62 non aggiornati.
> 1 non completamente installati o rimossi.
> Dopo quest'operazione, verranno occupati 0 B di spazio su disco.
> Configurazione di lmodern (2.004.1-3)...
> /etc/defoma/hints/lmodern.hints: Unable to open, or empty.
> dpkg: errore nell'elaborare lmodern (--configure):
>  il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 1
> configured to not write apport reports
>                                       Elaborazione dei trigger per tex-common...
> Running mktexlsr. This may take some time... done.
> Running updmap-sys. This may take some time... done.
> Si sono verificati degli errori nell'elaborazione:
>  lmodern
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> debianserver:/# apt-get remove --purge lmodern
> Lettura elenco dei pacchetti... Fatto
> Generazione albero delle dipendenze
> Lettura informazioni sullo stato... Fatto
> I seguenti pacchetti saranno RIMOSSI:
>   lmodern*
> 0 aggiornati, 0 installati, 1 da rimuovere e 62 non aggiornati.
> 1 non completamente installati o rimossi.
> Dopo quest'operazione, verranno liberati 46,7 MB di spazio su disco.
> Continuare [S/n]? s
> (Lettura del database... 169580 file e directory attualmente installati.)
> Rimozione di lmodern...
> /etc/defoma/hints/lmodern.hints: Unable to open, or empty.
> dpkg: errore nell'elaborare lmodern (--purge):
>  il sottoprocesso vecchio script di pre-removal ha restituito lo stato di errore 1
> configured to not write apport reports
>                                       Elaborazione dei trigger per tex-common...
> Running mktexlsr. This may take some time... done.
> Running updmap-sys. This may take some time... done.
> Si sono verificati degli errori nell'elaborazione:
>  lmodern
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> debianserver:/#
> 
> 
> -- I have tried with:
> 
> debianserver:/etc/defoma/hints# dpkg --force-all --remove lmodern
> (Lettura del database... 169543 file e directory attualmente installati.)
> Rimozione di lmodern...
> /etc/defoma/hints/lmodern.hints: Unable to open, or empty.
> dpkg: errore nell'elaborare lmodern (--remove):
>  il sottoprocesso vecchio script di pre-removal ha restituito lo stato di errore 1
> Elaborazione dei trigger per tex-common...
> Running mktexlsr. This may take some time... done.
> Running updmap-sys. This may take some time... done.
> Si sono verificati degli errori nell'elaborazione:
>  lmodern
> 
> 
> -- In /etc/defoma/hints/ there is no file lmodern.hints
> 
> -- If I ask dpkg about lmodern it answer me:
> 
> debianserver:/# dpkg -l |grep lmodern
> rF  lmodern        2.004.1-3            scalable PostScript and OpenType fonts based on Computer Modern
> 
> 
> -- I have resolved on this way:
> 
> after downloaded the package I copied the file lmodern.hints, which is located in the archive data.tar.gz, in:
> 
> /etc/defoma/hints/
> 
> At that point apt-get allowed me to reinstall the package without problems.
> I do not know if this is the correct procedure but I solved it.

------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
LUTON (n.)
The horseshoe-shaped rug which goes around a lavatory seat.
			--- Douglas Adams, The Meaning of Liff


Reply to: