Package: tex-common Version: 6.06 Severity: normal Tags: patch Dear Maintainer,
I had noticed that since some time my latex installation did not recognise the Italian language as installed, even if the pertinent package was indeed installed. Today, upon the huge texlive update that hit sid, I noticed that in the configuration phase update-language, when called, would say that it would do nothing since texlive base was not installed or configured. However texlive-base was installed and properly configured, so what? Looking into update-language, I found that it checks for the status of texlive-base like this: dpkg-query -W -f=\'\${Status}\' texlive-base 2>/dev/null which, on my system, reports: 'unknown ok not-installed''install ok installed' and hence causes the following check to fail. This is apparently due to the fact that I have been updating my installation for a long, long time, so if I query my system with apt-show-versions -a texlive-base it says: texlive-base:all 2017.20170619-1 install ok installed No stable version texlive-base:all 2017.20170619-1 sid ftp.debian.org texlive-base:all 2017.20170619-1 buildd-unstable incoming.debian.org No experimental version texlive-base:all/sid 2017.20170619-1 uptodate texlive-base:amd64 unknown ok not-installed No stable version No unstable version No experimental version texlive-base:amd64 not installed (even not available) So apparently my system remembers the (ancient?) existence of a texlive-base:amd64 package, now unavailable, and when queried by dpkg-query about texlive-base it gives two answers: one for this ancient version, which is now unavailable and is hence 'unknown ok not-installed', and one for the current version which is 'install ok installed'. The easy and painless fix for this is to replace dpkg-query -W -f=\'\${Status}\' texlive-base 2>/dev/null in line 104 of /usr/sbin/update-language with the architecture specific dpkg-query -W -f=\'\${Status}\' texlive-base:all 2>/dev/null which refers unambiguously to the present version in sid and stretch and hence does not incur in the problem. I hope this may be useful for others, best regards Giacomo Mulas -- System Information: Debian Release: 9.0 APT prefers buildd-unstable APT policy: (500, 'buildd-unstable'), (401, 'unstable'), (10, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.25-jak (SMP w/4 CPU cores) Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8) (ignored: LC_ALL set to it_IT.utf8), LANGUAGE=it_IT.utf8 (charmap=UTF-8) (ignored: LC_ALL set to it_IT.utf8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages tex-common depends on: ii dpkg 1.18.24 ii ucf 3.0036 tex-common recommends no packages. Versions of packages tex-common suggests: ii debhelper 10.2.5 Versions of packages texlive-base depends on: ii debconf [debconf-2.0] 1.5.61 ii libpaper-utils 1.1.24+nmu5 ii texlive-binaries 2017.20170613.44572-2 ii ucf 3.0036 ii xdg-utils 1.1.1-1 Versions of packages texlive-base recommends: ii lmodern 2.004.5-3 Versions of packages texlive-base suggests: ii acroread [pdf-viewer] 9.5.5-dmo2 ii atril [postscript-viewer] 1.16.1-2 ii evince [postscript-viewer] 3.22.1-3 ii ghostscript [postscript-viewer] 9.21~dfsg-1 ii gv [postscript-viewer] 1:3.7.4-1+b1 ii okular [postscript-viewer] 4:16.08.2-1+b1 ii perl-tk 1:804.033-1+b3 ii zathura-pdf-poppler [pdf-viewer] 0.2.7-1 Versions of packages texlive-binaries depends on: ii dpkg 1.18.24 ii install-info 6.3.0.dfsg.1-1+b2 ii libc6 2.24-12 ii libcairo2 1.14.8-1 ii libfontconfig1 2.11.0-6.7+b1 ii libfreetype6 2.6.3-3.2 ii libgcc1 1:6.3.0-18 ii libgmp10 2:6.1.2+dfsg-1 ii libgraphite2-3 1.3.10-2 ii libgs9 9.21~dfsg-1 ii libharfbuzz-icu0 1.4.2-1 ii libharfbuzz0b 1.4.2-1 ii libice6 2:1.0.9-2 ii libicu57 57.1-6 ii libkpathsea6 2017.20170613.44572-2 ii libmpfr4 3.1.5-1 ii libpaper1 1.1.24+nmu5 ii libpixman-1-0 0.34.0-1 ii libpng16-16 1.6.29-3 ii libpoppler64 0.48.0-2 ii libpotrace0 1.14-2 ii libptexenc1 2017.20170613.44572-2 ii libsm6 2:1.2.2-1+b3 ii libstdc++6 6.3.0-18 ii libsynctex1 2017.20170613.44572-2 ii libtexlua52 2017.20170613.44572-2 ii libtexluajit2 2017.20170613.44572-2 ii libx11-6 2:1.6.4-3 ii libxaw7 2:1.0.13-1+b2 ii libxext6 2:1.3.3-1+b2 ii libxi6 2:1.7.9-1 ii libxmu6 2:1.1.2-2 ii libxpm4 1:3.5.12-1 ii libxt6 1:1.1.5-1 ii libzzip-0-13 0.13.62-3.1 ii perl 5.24.1-3 ii t1utils 1.39-2 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages texlive-binaries recommends: ii python 2.7.13-2 ii ruby 1:2.3.3 ii texlive-base 2017.20170619-1 ii tk [wish] 8.6.0+9 -- debconf information: tex-common/check_texmf_missing: texlive-base/binary_chooser: pdftex, dvips, dvipdfmx, xdvi tex-common/check_texmf_wrong: texlive-base/texconfig_ignorant: -- debsums errors found: debsums: changed file /usr/sbin/update-language (from tex-common package)