Bug#907380: tex-common: setting up of tex-common fails

2018-08-28 Thread Julian Gilbey
On Tue, Aug 28, 2018 at 12:48:28PM +0200, fulvio ciriaco wrote:
> wow, lots of problems with bin in the path:
> root@fulvio:/# cd /usr/sbin
> root@fulvio:/usr/sbin# ls
> bash: bin/ls: No such file or directory
> 
> ok, nothing to do with tex-common anyhow, sorry.

Yes, putting "bin" in PATH is really bad practice, and as root it's
positively dangerous.  You should only ever have absolute directories
in PATH.

Best wishes,

   Julian



Bug#907380: tex-common: setting up of tex-common fails

2018-08-28 Thread fulvio ciriaco
Dear Norbert,
it turned out that dpkg-reconfigure has a problem with my PATH, i.e.
my path is prepended with:
PATH=.:bin:{{other dirs}}
when I modified it into PATH=.:{{other dirs}} dpkg had no more
problems.
My guess is that all this came out with the last version of bash,
upgraded just a few days ago.
In fact, if I try to run update-updmap from directory / as probably
dpkg is doing, with bin inside my path I obtain:

root@fulvio:/# echo $PATH
bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
root@fulvio:/# update-updmap 
Regenerating '/var/lib/texmf/updmap.cfg-DEBIAN'... done.
/usr/sbin/update-updmap: line 235: bin/mkdir: No such file or directory

wow, lots of problems with bin in the path:
root@fulvio:/# cd /usr/sbin
root@fulvio:/usr/sbin# ls
bash: bin/ls: No such file or directory

ok, nothing to do with tex-common anyhow, sorry.

Fulvio

On Tue, 28 Aug 2018 12:16:07 +0200,
Norbert Preining wrote:
> 
> Hi,
> 
> > root@fulvio:/home/fc# dpkg --configure tex-common
> 
> That doesn't work for me at all:
> $ dpkg --configure tex-common
> dpkg: error processing package tex-common (--configure):
>  package tex-common is already installed and configured
> Errors were encountered while processing:
>  tex-common
> $ 
> 
> But I tried dpkg-reconfigure which should do the same:
> $ dpkg-reconfigure tex-common
> Running mktexlsr. This may take some time... done.
> Running mtxrun --generate. This may take some time... done.
> Running updmap-sys. This may take some time... done.
> Running mktexlsr /var/lib/texmf ... done.
> Building format(s) --all.
>   This may take some time... done.
> $
> 
> Can you please edit
>   /var/lib/dpkg/info/tex-common.postinst
> and add a
>   set -x
> near the top, then call dpkg --configure again and send the output,
> probably capturing it with tee or similar method.
> 
> Thanks.
> 
> Norbert
> 
> --
> PREINING Norbert   http://www.preining.info
> Accelia Inc. +JAIST +TeX Live +Debian Developer
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-28 Thread Norbert Preining
Hi,

> root@fulvio:/home/fc# dpkg --configure tex-common

That doesn't work for me at all:
$ dpkg --configure tex-common
dpkg: error processing package tex-common (--configure):
 package tex-common is already installed and configured
Errors were encountered while processing:
 tex-common
$ 

But I tried dpkg-reconfigure which should do the same:
$ dpkg-reconfigure tex-common
Running mktexlsr. This may take some time... done.
Running mtxrun --generate. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
This may take some time... done.
$

Can you please edit
/var/lib/dpkg/info/tex-common.postinst
and add a
set -x
near the top, then call dpkg --configure again and send the output,
probably capturing it with tee or similar method.

Thanks.

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. +JAIST +TeX Live +Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-28 Thread fulvio ciriaco
Dear Norbert,

On Tue, 28 Aug 2018 04:05:13 +0200,
Norbert Preining wrote:
> 
> Hi,
> 
> > root@fulvio:/home/fc# update-updmap 
> > Regenerating '/var/lib/texmf/updmap.cfg-DEBIAN'... done.
> > Regenerating '/var/lib/texmf/updmap.cfg-TEXLIVEDIST'... done.
> > update-updmap has updated the following file(s):
> > /var/lib/texmf/updmap.cfg-DEBIAN
> > /var/lib/texmf/updmap.cfg-TEXLIVEDIST
> > If you want to activate the changes in the above file(s),
> > you should run updmap-sys or updmap.
> 
> That looks absolutely fine.
>
exactly, all is working fine except when it is called through dpkg --configure.

> > the log says bin/mkdir is missing, but line 235 recites:
> > mkdir -p "$destdir"
> 
> Which "log" ? update-updmap doesn't write anything else then what is
> shown above. What kind of log are you talking about.
>
sorry, I did not mean a log, but the error message, output of
update-updmap called by dpkg, like this:

root@fulvio:/home/fc# dpkg --configure tex-common
Setting up tex-common (6.09) ...
/usr/sbin/update-updmap: line 235: bin/mkdir: No such file or directory
dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned 
error exit status 127
Errors were encountered while processing:
 tex-common


Fulvio

> Norbert
> 
> --
> PREINING Norbert   http://www.preining.info
> Accelia Inc. +JAIST +TeX Live +Debian Developer
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-27 Thread Norbert Preining
Hi,

> root@fulvio:/home/fc# update-updmap 
> Regenerating '/var/lib/texmf/updmap.cfg-DEBIAN'... done.
> Regenerating '/var/lib/texmf/updmap.cfg-TEXLIVEDIST'... done.
> update-updmap has updated the following file(s):
>   /var/lib/texmf/updmap.cfg-DEBIAN
>   /var/lib/texmf/updmap.cfg-TEXLIVEDIST
> If you want to activate the changes in the above file(s),
> you should run updmap-sys or updmap.

That looks absolutely fine.

> the log says bin/mkdir is missing, but line 235 recites:
> mkdir -p "$destdir"

Which "log" ? update-updmap doesn't write anything else then what is
shown above. What kind of log are you talking about.

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. +JAIST +TeX Live +Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-27 Thread fulvio ciriaco
Dear Norbert,

On Mon, 27 Aug 2018 10:07:54 +0200,
Norbert Preining wrote:
> 
> tag 907380 + unreproducible moreinfo
> severity 907380 minor
> thanks
> 
> > /usr/sbin/update-updmap: line 235: bin/mkdir: No such file or directory
> 
> This line contains a call to
>   mkdir -p ...
> if mkdir is not available, then you have probably messed up your PATH
> setting or have a destroyed system, because
>   /bin/mkdir
> is provided by coreutils.
>
Messed or destroyed? I don't think so:

0% which mkdir
/bin/mkdir

root@fulvio:/home/fc# update-updmap 
Regenerating '/var/lib/texmf/updmap.cfg-DEBIAN'... done.
Regenerating '/var/lib/texmf/updmap.cfg-TEXLIVEDIST'... done.
update-updmap has updated the following file(s):
/var/lib/texmf/updmap.cfg-DEBIAN
/var/lib/texmf/updmap.cfg-TEXLIVEDIST
If you want to activate the changes in the above file(s),
you should run updmap-sys or updmap.

the log says bin/mkdir is missing, but line 235 recites:
mkdir -p "$destdir"

Last but not least, the problem exists on two different computers of
mine, independently installed, though there is a large overlap of
installed software. The problem is very recent but hundreds of
packages have been upgraded without problem.

regards
Fulvio

> I see that you have AppArmor enabled, maybe this interferes.
> 
> 
> 
> Norbert
> 
> --
> PREINING Norbert   http://www.preining.info
> Accelia Inc. +JAIST +TeX Live +Debian Developer
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-27 Thread Norbert Preining
tag 907380 + unreproducible moreinfo
severity 907380 minor
thanks

> /usr/sbin/update-updmap: line 235: bin/mkdir: No such file or directory

This line contains a call to
mkdir -p ...
if mkdir is not available, then you have probably messed up your PATH
setting or have a destroyed system, because
/bin/mkdir
is provided by coreutils.

I see that you have AppArmor enabled, maybe this interferes.



Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. +JAIST +TeX Live +Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Bug#907380: tex-common: setting up of tex-common fails

2018-08-27 Thread fulvio ciriaco
Package: tex-common
Version: 6.09
Severity: important

Dear maintainer,
the configuration phase of tex-common fails with the following log:
--
Setting up tex-common (6.09) ...
/usr/sbin/update-updmap: line 235: bin/mkdir: No such file or directory
dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned 
error exit status 127
Errors were encountered while processing:
 tex-common

thank you
fulvio ciriaco

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tex-common depends on:
ii  dpkg  1.19.0.5+b1
ii  ucf   3.0038

tex-common recommends no packages.

Versions of packages tex-common suggests:
ii  debhelper  11.3.5

Versions of packages texlive-base depends on:
ii  debconf [debconf-2.0]  1.5.69
ii  libpaper-utils 1.1.24+nmu5
ii  texlive-binaries   2018.20180710.48169-1
ii  ucf3.0038
ii  xdg-utils  1.1.3-1

Versions of packages texlive-base recommends:
ii  lmodern  2.004.5-4

Versions of packages texlive-base suggests:
ii  evince [postscript-viewer]3.28.2-1
ii  ghostscript [postscript-viewer]   9.22~dfsg-2.1
ii  mupdf [pdf-viewer]1.13.0+ds1-2
ii  okular [postscript-viewer]4:17.12.2-2
pn  perl-tk   
ii  zathura-pdf-poppler [pdf-viewer]  0.2.9-1
ii  zathura-ps [postscript-viewer]0.2.6-1

Versions of packages texlive-binaries depends on:
ii  dpkg  1.19.0.5+b1
ii  install-info  6.5.0.dfsg.1-4
ii  libc6 2.27-5
ii  libcairo2 1.15.12-1
ii  libfontconfig12.13.0-5
ii  libfreetype6  2.8.1-2
ii  libgcc1   1:8.2.0-4
ii  libgmp10  2:6.1.2+dfsg-3
ii  libgraphite2-31.3.11-2
ii  libgs99.22~dfsg-2.1
ii  libharfbuzz-icu0  1.8.8-2
ii  libharfbuzz0b 1.8.8-2
ii  libice6   2:1.0.9-2
ii  libicu60  60.2-6
ii  libkpathsea6  2018.20180710.48169-1
ii  libmpfr6  4.0.1-1
ii  libpaper1 1.1.24+nmu5
ii  libpixman-1-0 0.34.0-2
ii  libpng16-16   1.6.34-2
ii  libpotrace0   1.15-1
ii  libptexenc1   2018.20180710.48169-1
ii  libsm62:1.2.2-1+b3
ii  libstdc++68.2.0-4
ii  libsynctex2   2018.20180710.48169-1
ii  libtexlua52   2018.20180710.48169-1
ii  libtexlua53   2018.20180710.48169-1
ii  libtexluajit2 2018.20180710.48169-1
ii  libx11-6  2:1.6.5-1
ii  libxaw7   2:1.0.13-1+b2
ii  libxext6  2:1.3.3-1+b2
ii  libxi62:1.7.9-1
ii  libxmu6   2:1.1.2-2
ii  libxpm4   1:3.5.12-1
ii  libxt61:1.1.5-1
ii  libzzip-0-13  0.13.62-3.1
ii  perl  5.26.2-7
ii  t1utils   1.41-2
ii  zlib1g1:1.2.11.dfsg-1

Versions of packages texlive-binaries recommends:
ii  texlive-base  2018.20180725-1

-- debconf-show failed