Script postrm tetex-bin estranho [era:Re: apt-get - upgrade abortou!!!]
Em dom, 29 jul 2001 03:32:07Gustavo Noronha Silva escrito:
> Em Sun, 29 Jul 2001 12:06:29 -0300
> hzi <hzi@uol.com.br> escreveu:
>
> > Unpacking replacement tetex-bin ...
> > open /var/lib/xaw-wrappers/update-wrappers-history: Arquivo ou diretório
> > não encontrado
> > dpkg: warning - old post-removal script returned error exit status 2
> > dpkg - trying script from the new package instead ...
> > open /var/lib/xaw-wrappers/update-wrappers-history: Arquivo ou diretório
> > não encontrado
> > dpkg: error processing
> > /var/cache/apt/archives/tetex-bin_1.0.6-7_i386.deb (--unpack):
> > subprocess new post-removal script returned error exit status 2
> > open /var/lib/xaw-wrappers/update-wrappers-history: Arquivo ou diretório
> > não encontrado
> > dpkg: error while cleaning up:
> > subprocess post-removal script returned error exit status 2
> que bosta hein? vai ter de editar o /var/lib/dpkg/info/tetex-bin.postrm (?)
> e consertar...
>
> > #### parou tudo!!
> >
> > E: Sub-process /usr/bin/dpkg exited unexpectedly
> faça um:
>
> dpkg --configure -a
Funcionou. Na verdade, depois do ataque de histeria, fui logo lá no teu
manual.
Quer dizer, funcionou o upgrade, a tetex-bin a #outra# coisa.
>
> edite o postrm e tente comentar a parte que parece dar o erro...
>
Aqui está o script. Não há nada que me parecesse relacionado à mensagem
de erro acima.
######## começa post-removal script
#!/bin/sh
set -e
install-info --quiet --remove /usr/share/info/web2c.info
install-info --quiet --remove /usr/share/info/dvips.info
install-info --quiet --remove /usr/share/info/latex.info
install-info --quiet --remove /usr/share/kpathsea.info
#unregister xdvi for mime
if [ -x /usr/bin/update-mime ]; then
update-mime
fi
if [ -x /usr/bin/update-xaw-wrappers ]; then
update-xaw-wrappers
fi
rm -f /usr/lib/texmf/web2c /usr/share/texmf/web2c || true
######## termina aqui
Só que...descobri um troço interessante:
Um diretório eu tenho:
siddhi:/usr/share/texmf/web2c# ls -a
. cp8bit.tcx il2-cs.tcx mf.base mktexnam
plain.fmt
. elatex.efmt il2-pl.tcx mf.log mktexnam.opt
tex.fmt
amiga-pl.tcx elatex.log il2-t1.tcx mf.pool mktexupd
tex.log
cp1250cs.tcx etex.efmt kam-cs.tcx mfw.base mp.pool
tex.pool
cp1250pl.tcx etex.log kam-t1.tcx mktex.cnf omega.pool
texmf.cnf
cp1250t1.tcx etex.pool latex.fmt mktex.opt pdfetex.pool
cp852-cs.tcx fmtutil.cnf latex.log mktexdir pdftex.pool
cp852-pl.tcx il1-t1.tcx maz-pl.tcx mktexdir.opt plain.base
O outro eu não tenho!
siddhi:/usr/share/texmf/web2c# cd /usr/lib/texmf/web2c
bash: cd: /usr/lib/texmf/web2c: Arquivo ou diretório não encontrado
Outro arquivo que eu não tenho onde o script espera encontrar é o
update-mime...!
que está em /usr/sbin/update-mime
Vou tentar modificar o script, testar e depois digo se funcionou:
######## modificado
#!/bin/sh
set -e
install-info --quiet --remove /usr/share/info/web2c.info
install-info --quiet --remove /usr/share/info/dvips.info
install-info --quiet --remove /usr/share/info/latex.info
install-info --quiet --remove /usr/share/kpathsea.info
#unregister xdvi for mime
# mudança sutil!
if [ -x /usr/sbin/update-mime ]; then
update-mime
fi
if [ -x /usr/bin/update-xaw-wrappers ]; then
update-xaw-wrappers
fi
rm -f /usr/lib/texmf/web2c /usr/share/texmf/web2c || true
####
Ou seria esse melhor?
## "esse"
# linha abaixo testa a existência e se é executável
if [ -f /usr/bin/update-mime ] && [ -x /usr/bin/update-mime ]
then
update-mime
fi
if [ -x /usr/sbin/update-mime ]; then
update-mime
fi
if [ -x /usr/bin/update-xaw-wrappers ]; then
update-xaw-wrappers
fi
rm -f /usr/lib/texmf/web2c /usr/share/texmf/web2c || true
Vou tentar...dou notícias...
[ ]s
Henry
Reply to: