Bug#439205: texlive-latex-base: upgrading package fails
Bernd Zeimetz <bernd@bzed.de> wrote:
> Hi,
>>> Setting up texlive-base-bin (2007-13) ...
>>> sed: -e expression #1, char 25: unterminated `s' command
>>> dpkg: error processing texlive-base-bin (--configure):
>>> subprocess post-installation script returned error exit status 1
>>>
>>
>> This is strange. I have tested the sed expression even in real life
>> installations several times.
>>
>> What is your shell, dash by chance?
>>
>>
>
> I'm at the froscon at the moment and can't test it at the machine where
> the error happened, but I'm pretty sure I'm using dash as sh.
I have no time for testing either, but one thing that looks suspicious
to me is that the expression is not quoted at all:
- sed -i -e s/^$format[[:space:]].*/$modified_line/ $new_cfg
+ sed -i -e "s/^$format[[:space:]].*/$modified_line/" $new_cfg
Second, a '/' in the comment part of $modified line will prematurely end
the expression (that's probably not the problem here).
Bernd, if you come to testing it on your system, editing
/var/lib/dpkg/info/texlive-base-bin.postinst and adding a "set -x" line
at the beginning (and maybe "set +x" after the case statement with the
sed expression) might be helpful.
Regards, Frank
--
Frank Küster
Debian Developer (teTeX/TeXLive)
Reply to: