Bug#1136381: texlive-base: tlmgr fails with "Can't locate TeXLive/TLConfig.pm in @INC"

Vincent Lefevre <[email protected]> Wed, 13 May 2026 04:39:05 +0200
Newsgroups gmane.linux.debian.devel.tetex
Message-ID <20260513023905.GC1516810__16402.1975406044$1778640088$gmane$org@qaa.vinc17.org>
On 2026-05-13 04:33:29 +0200, Vincent Lefevre wrote:
> Can't locate TeXLive/TLConfig.pm in @INC (you may need to install the TeXLive::TLConfig module) (@INC entries checked: /texmf-dist/scripts/texlive /tlpkg /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/bin/tlmgr line 97.
> BEGIN failed--compilation aborted at /usr/bin/tlmgr line 97.

Indeed, @INC contains /texmf-dist/scripts/texlive /tlpkg, which are
incorrect. The 2025 version of /usr/bin/tlmgr had:

  $Master = "/usr/share/texlive";
  $::installerdir = $Master;  # for config.guess et al., see TLUtils.pm

  # make Perl find our packages first:
  unshift (@INC, "$Master/tlpkg");
  unshift (@INC, "$Master/texmf-dist/scripts/texlive");

In the 2026, the

  $Master = "/usr/share/texlive";

line is missing.