tlmgr Couldn't set up the necessary programs

Compilador: TeX Live 

(lo he obtenido haciendo sudo apt install texlive-full en Debian) Mala idea: el desfase entre el paquete y el CTAN puede volver obsoleto lo que tienes instalado. How to install "vanilla" TeXLive on Debian or Ubuntu? 

IDE: TeXStudio

(no recuerdo cómo demonios obtuve la versión en castellano ¿problemas con el alemán?)

Algo salió muy mal, pues no hice nada después de la instalación, ni unas líneas de prueba con un archivo.tex, mucho menos alguna configuración.

Ahora ni siquiera puedo cambiar el tamaño de hoja (aunque parece que TeXStudio sí lo tiene a Letter):

$ sudo tlmgr paper letter

(running on Debian, switching to user mode!)
Cannot determine type of tlpdb from /root/texmf!
cannot setup TLPDB in /root/texmf at /usr/bin/tlmgr line 5713.

$ sudo echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

$ whereis texlive
texlive: /usr/share/texlive


$ ls /usr/share/texlive
debian      LICENSE.CTAN  readme-html.dir    release-texlive.txt
doc.html    LICENSE.TL    readme-txt.dir     texmf-dist
index.html  README        README.usergroups  tlpkg


$ sudo tlmgr init-usertree
(running on Debian, switching to user mode!)
Cannot determine type of tlpdb from /root/texmf!

$  ls /etc/manpath.config
/etc/manpath.config

Por ahora no voy a meterme ahí, porque espantan.

:/usr/share/texlive/texmf-dist/doc$ ls
aleph    cstex     fonts     metapost      platex     texlive      vlna
amstex   dvipdfm   generic   mex           pmxchords  tpic2pdftex  web2c
bibtex   dvipdfmx  kpathsea  omega         ptex       ttf2pk       xelatex
bibtex8  dvips     latex     otherformats  support    uplatex      xetex
bibtexu  eplain    lualatex  pdftex        tetex      upmendex
context  etex      luatex    plain         texdoc     uptex


:/usr/share/texlive/texmf-dist/doc/support$ ls
adhocfilelist               gustprog             patgen2-tutorial
arara                       hook-pre-commit-pkg  pdfbook2
ascii-chart                 installfont          pdfcrop
asymptote-by-example-zh-cn  latex2man            pdfjam
asymptote-faq-zh-cn         latex2nemeth         pdflatexpicscale
asymptote-manual-zh-cn      latexfileversion     pdfxup
bibtexperllibs              latex-git-log        pedigree-perl
bundledoc                   latexindent          pkfix
checkcites                  latex-make           pkfix-helper
classpack                   latexpand            srcredact
convbkmk                    latex-papersize      sty2dtx
crossrefware                ltxfileinfo          svn-multi
ctan_chk                    ltximg               tex4ebook
ctanupload                  lua2dox              texcount
de-macro                    lua-alt-getopt       texdef
dosepsbin                   make4ht              texdiff
dtxgen                      makedtx              texdraw
epspdf                      makeindex            texfot
epstopdf                    match_parens         texliveonfly
fig4latex                   mendex               texloganalyser
findhyph                    mf2pt1               texosquery
fontools                    mkgrkindex           typeoutfileinfo
gitfile-info                mkpic

¡arara! Danke gut!

:/usr/share/texlive/texmf-dist/doc/support$ sudo tlmgr update --self

(running on Debian, switching to user mode!)
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
tlmgr: Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.
Use of uninitialized value $r in split at /usr/bin/tlmgr line 3899.
tlmgr: Cannot find main repository, you have to tag one as main!


FIXED: How to properly install and use texlive with package manager

$ sudo apt install xzdec
$ sudo apt-get install perl-tk
$ sudo tlmgr --gui
(running on Debian, switching to user mode!)

  Sorry, no translations available for es_MX (nor es); falling back to English.
    Make sure that you have the package "texlive-msg-translations" installed.
    (If you'd like to help translate the installer's messages, please see
    http://tug.org/texlive/doc.html#install-tl-xlate for information.)

Loading local TeX Live database
  (/root/texmf/tlpkg/texlive.tlpdb)
This may take some time, please be patient ...
... done loading.
Tk::Error: Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 1324.
 Tk callback for .#menu.#menu#menu1
 Tk::__ANON__ at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk.pm line 251
 Tk::Menu::Invoke at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk/Menu.pm line 532
 <ButtonRelease>
 (command bound to event)
tlmgr: package repository http://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
Executing action update
tlmgr: no updates available
Completed.
Tk::Error: /usr/bin/tlmgr: open(/usr/share/texlive/tlpkg/texlive.tlpdb) failed: No such file or directory at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 416.
 TeXLive::TLPDB::from_file at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 416
 TeXLive::TLPDB::new at /usr/share/texlive/tlpkg/TeXLive/TLPDB.pm line 146
 main::reinit_local_tlpdb at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 2024
 main::update_all_packages at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 1970
 main::__ANON__ at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 436
 Tk callback for .frame1.frame1.frame.frame.button
 Tk::__ANON__ at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk.pm line 251
 Tk::Button::butUp at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk/Button.pm line 175
 <ButtonRelease-1>
 (command bound to event)
Tk::Error: Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 1324.
 Tk callback for .#menu.#menu#menu1
 Tk::__ANON__ at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk.pm line 251
 Tk::Menu::Invoke at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk/Menu.pm line 532
 <ButtonRelease>
 (command bound to event)
Tk::Error: Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/share/texlive/texmf-dist/scripts/texlive/tlmgrgui.pl line 1324.
 Tk callback for .#menu.#menu#menu1
 Tk::__ANON__ at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk.pm line 251
 Tk::Menu::Invoke at /usr/lib/x86_64-linux-gnu/perl5/5.24/Tk/Menu.pm line 532
 <ButtonRelease>
 (command bound to event)

texlive manager 2016


$ sudo tlmgr update --self
(running on Debian, switching to user mode!)
tlmgr: package repository http://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
tlmgr: no self-updates for tlmgr available.

$ sudo tlmgr paper letter
(running on Debian, switching to user mode!)
tlmgr: action `paper' not supported in usermode
tlmgr: An error has occurred. See above messages. Exiting.

$ sudo tl-paper letter

tl-paper: inquire and set paper settings for various programs in the TeX World.


usage:
  tl-paper list <program>     lists available papers, current paper first
  tl-paper status             lists all current settings
  tl-paper get <program>      prints the current paper for <program>
  tl-paper set <program> <newpaper>    sets new paper for <program>
  tl-paper set all <a4|letter>         sets new paper for all programs

$ sudo tl-paper set all letter
/usr/bin/tl-paper: setting paper size for context to letter.
/usr/bin/tl-paper: setting paper size for dvipdfmx to letter.
/usr/bin/tl-paper: setting paper size for dvips to letter.
/usr/bin/tl-paper: setting paper size for pdftex to letter.
/usr/bin/tl-paper: setting paper size for xdvi to letter.

Comments

Popular posts from this blog

solved ERROR You installed yt-dlp from a manual build or with a package manager

vorago stela 100 no enciende

lanix neuron a v20