<div dir="ltr">For several days I have problems when using `tlmgr` to update or install packages or any other  command, note that I have texlive 2016 on windows OS. For example :   tlmgr update --self  result   <div><br></div><div><br><br><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Can't spawn "cmd.exe": No such file or directory at C:/texlive/2016/tlpkg/TeXLive/TLUtils.pm line 2220.<br>TeXLive::TLUtils::setup_programs (w32) failed at C:/texlive/2016/tlpkg/TeXLive/TLUtils.pm line 2222.<br>C:\texlive\2016\tlpkg\installer\xz\xzdec.exe --help failed (status 65280): No such file or directory<br>Output is:<br>Usage: xzdec [OPTION]... [FILE]...<br>Decompress files in the .xz format to standard output.<br>  -d, --decompress   (ignored, only decompression is supported)<br>  -k, --keep         (ignored, files are never deleted)<br>  -c, --stdout       (ignored, output is always written to standard output)<br>  -q, --quiet        specify *twice* to suppress errors<br>  -Q, --no-warn      (ignored, the exit status 2 is never used)<br>  -h, --help         display this help and exit<br>  -V, --version      display the version number and exit<br>With no FILE, or when FILE is -, read standard input.<br>Report bugs to <<a href="mailto:lasse.collin@tukaani.org">lasse.collin@tukaani.org</a>> (in English or Finnish).<br>XZ Utils home page: <<a href="http://tukaani.org/xz/">http://tukaani.org/xz/</a>><br>Can't spawn "cmd.exe": No such file or directory at C:/texlive/2016/tlpkg/TeXLive/TLUtils.pm line 2220.<br>TeXLive::TLUtils::setup_programs (w32) failed at C:/texlive/2016/tlpkg/TeXLive/TLUtils.pm line 2222.<br>C:\texlive\2016\tlpkg\installer\wget\wget.exe --version failed (status 65280): No such file or directory<br>Output is:<br>GNU Wget 1.17.1 built on mingw32.<br>+digest -gpgme +https +ipv6 -iri +large-file -metalink -nls -ntlm<br>+opie -psl +ssl/gnutls<br>Wgetrc:<br>    C:/usr/msys/local/etc/wgetrc (system)<br>Compile:<br>    gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc"<br>    -DLOCALEDIR="/usr/local/share/locale" -I. -I../lib -I../lib<br>    -I/usr/local/include -DNDEBUG<br>Link:<br>    gcc -DNDEBUG /usr/local/lib/libiconv.a /usr/local/lib/libgnutls.a<br>    -lws2_32 /usr/local/lib/libnettle.a /usr/local/lib/libhogweed.a<br>    /usr/local/lib/libgmp.a -lcrypt32 -lz ftp-opie.o mswindows.o<br>    gnutls.o ../lib/libgnu.a<br>Copyright (C) 2015 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later<br><<a href="http://www.gnu.org/licenses/gpl.html">http://www.gnu.org/licenses/gpl.html</a>>.<br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.<br>Originally written by Hrvoje Niksic <<a href="mailto:hniksic@xemacs.org">hniksic@xemacs.org</a>>.<br>Please send bug reports and questions to <<a href="mailto:bug-wget@gnu.org">bug-wget@gnu.org</a>>.<br><a href="http://tlmgr.pl">tlmgr.pl</a>: Couldn't set up the necessary programs.<br>Installation of packages is not supported.<br>Please report to <a href="mailto:texlive@tug.org">texlive@tug.org</a>.<br>Use of uninitialized value $r in split at C:\texlive\2016\texmf-dist\scripts\texlive\<a href="http://tlmgr.pl">tlmgr.pl</a> line 3939.<br><a href="http://tlmgr.pl">tlmgr.pl</a>: Cannot find main repository, you have to tag one as main!</blockquote></div></div></div>