[LaTeX]sudo tlmgr update --self --allに失敗する
texliveを2017から2018にバージョンアップしようとした。
手順は前に書いた記事に従った。
しかし、以下のコマンドを走らせたところ、エラーが起きてしまった。
1 2 3 4 5 6 7 8 9 10 11 | $ sudo tlmgr update --self --all sh: line 1: 41102 Abort trap: 6 wget --version > /dev/null 2>&1 TeX Live 2018 is frozen forever and will no longer be updated. This happens in preparation for a new release. If you're interested in helping to pretest the new release (when pretests are available), please read https://tug.org/texlive/pretest.html. Otherwise, just wait, and the new release will be ready in due time. tlmgr: package repository ftp://ftp.u-aizu.ac.jp/pub/tex/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr: Fundamental package texlive.infra not present, uh oh, goodbyeShould not happen, texlive.infra not found at /usr/local/texlive/2018/bin/x86_64-darwin/tlmgr line 7344. |
どうもtexlive.infraというファイルが壊れてしまっているらしい。
これを直すには、ここからupdate-tlmgr-latest.sh(windowsならupdate-tlmgr-latest.exeかな?)というファイルをダウンロードしてきて、以下のコマンドを走らせれば良い。
1 | $ sudo sh update-tlmgr-latest.sh |
管理者権限がないとエラーになるのでそのへん注意。
例えば以下のような感じ。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | $ sh update-tlmgr-latest.sh Verifying archive integrity... All good. Uncompressing TeX Live Manager Updater 100% ./runme.sh: updating in /usr/local/texlive/2018... ./runme.sh: tlmgr version says this is TeX Live 2018, ./runme.sh: and this updater script created: Thu Feb 7 02:56:31 CET 2019. ./runme.sh: proceeding with tlmgr update. LICENSE.CTAN: Can't unlink already-existing object LICENSE.TL: Can't unlink already-existing object README: Can't unlink already-existing object README.usergroups: Can't unlink already-existing object index.html: Can't unlink already-existing object readme-html.dir/: Can't update time for readme-html.dir readme-html.dir/readme.pt-br.html: Can't unlink already-existing object readme-html.dir/readme.ja.html: Can't unlink already-existing object readme-html.dir/readme.de.html: Can't unlink already-existing object readme-html.dir/readme.ru.html: Can't unlink already-existing object readme-html.dir/readme.pl.html: Can't unlink already-existing object readme-html.dir/readme.en.html: Can't unlink already-existing object readme-html.dir/readme.it.html: Can't unlink already-existing object readme-html.dir/readme.sr.html: Can't unlink already-existing object readme-html.dir/readme.fr.html: Can't unlink already-existing object readme-html.dir/readme.cs.html: Can't unlink already-existing object readme-html.dir/readme.es.html: Can't unlink already-existing object readme-html.dir/readme.zh-cn.html: Can't unlink already-existing object readme-txt.dir/: Can't update time for readme-txt.dir readme-txt.dir/README.SK-ascii: Can't unlink already-existing object readme-txt.dir/README.SK-cp1250: Can't unlink already-existing object readme-txt.dir/README.PL: Can't unlink already-existing object readme-txt.dir/README.RU-koi8: Can't unlink already-existing object readme-txt.dir/README.SK-il2: Can't unlink already-existing object readme-txt.dir/README.RU: Can't unlink already-existing object readme-txt.dir/README.IT: Can't unlink already-existing object readme-txt.dir/README.RU-cp1251: Can't unlink already-existing object readme-txt.dir/README.CS: Can't unlink already-existing object readme-txt.dir/README.JA: Can't unlink already-existing object readme-txt.dir/README.PT-BR: Can't unlink already-existing object readme-txt.dir/README.DE: Can't unlink already-existing object readme-txt.dir/README.SR: Can't unlink already-existing object readme-txt.dir/README.ZH-CN: Can't unlink already-existing object readme-txt.dir/README.EN: Can't unlink already-existing object readme-txt.dir/README.FR: Can't unlink already-existing object readme-txt.dir/README.ES: Can't unlink already-existing object release-texlive.txt: Can't unlink already-existing object texmf-dist/: Can't update time for texmf-dist texmf-dist/web2c/: Can't update time for texmf-dist/web2c texmf-dist/scripts/: Can't update time for texmf-dist/scripts texmf-dist/doc/: Can't update time for texmf-dist/doc texmf-dist/doc/man/: Can't update time for texmf-dist/doc/man texmf-dist/doc/man/man1/: Can't update time for texmf-dist/doc/man/man1 texmf-dist/doc/man/man1/tlmgr.man1.pdf: Can't unlink already-existing object texmf-dist/doc/man/man1/tlmgr.1: Can't unlink already-existing object texmf-dist/scripts/texlive/: Can't update time for texmf-dist/scripts/texlive texmf-dist/scripts/texlive/tlmgrgui.pl: Can't unlink already-existing object texmf-dist/scripts/texlive/tlmgr.pl: Can't unlink already-existing object texmf-dist/scripts/texlive/uninstall-win32.pl: Can't unlink already-existing object texmf-dist/scripts/texlive/NEWS: Can't unlink already-existing object texmf-dist/web2c/updmap-hdr.cfg: Can't unlink already-existing object texmf-dist/web2c/fmtutil-hdr.cnf: Can't unlink already-existing object tlpkg/: Can't update time for tlpkg tlpkg/tlpobj/: Can't update time for tlpkg/tlpobj tlpkg/gpg/: Can't update time for tlpkg/gpg tlpkg/README: Can't unlink already-existing object tlpkg/installer/: Can't update time for tlpkg/installer tlpkg/TeXLive/: Can't update time for tlpkg/TeXLive tlpkg/TeXLive/TLDownload.pm: Can't unlink already-existing object tlpkg/TeXLive/TLUtils.pm: Can't unlink already-existing object tlpkg/TeXLive/TLPDB.pm: Can't unlink already-existing object tlpkg/TeXLive/TLConfig.pm: Can't unlink already-existing object tlpkg/TeXLive/TLPOBJ.pm: Can't unlink already-existing object tlpkg/TeXLive/TLPSRC.pm: Can't unlink already-existing object tlpkg/TeXLive/TLCrypto.pm: Can't unlink already-existing object tlpkg/TeXLive/TeXCatalogue.pm: Can't unlink already-existing object tlpkg/TeXLive/TLTREE.pm: Can't unlink already-existing object tlpkg/TeXLive/TLConfFile.pm: Can't unlink already-existing object tlpkg/TeXLive/trans.pl: Can't unlink already-existing object tlpkg/TeXLive/TLWinGoo.pm: Can't unlink already-existing object tlpkg/TeXLive/TLPaper.pm: Can't unlink already-existing object tlpkg/installer/config.guess: Can't unlink already-existing object tlpkg/installer/COPYING.MinGW-runtime.txt: Can't unlink already-existing object tlpkg/gpg/secring.gpg: Can't unlink already-existing object tlpkg/gpg/pubring.gpg: Can't unlink already-existing object tlpkg/gpg/random_seed: Can't unlink already-existing object tlpkg/gpg/trustdb.gpg: Can't unlink already-existing object tlpkg/tlpobj/texlive.infra.armhf-linux.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.armhf-linux.tlpobj' tlpkg/tlpobj/texlive.infra.x86_64-solaris.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.x86_64-solaris.tlpobj' tlpkg/tlpobj/texlive.infra.amd64-netbsd.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.amd64-netbsd.tlpobj' tlpkg/tlpobj/texlive.infra.win32.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.win32.tlpobj' tlpkg/tlpobj/texlive.infra.i386-linux.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.i386-linux.tlpobj' tlpkg/tlpobj/texlive.infra.doc.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.doc.tlpobj' tlpkg/tlpobj/texlive.infra.i386-cygwin.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.i386-cygwin.tlpobj' tlpkg/tlpobj/texlive.infra.x86_64-linux.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.x86_64-linux.tlpobj' tlpkg/tlpobj/texlive.infra.x86_64-darwinlegacy.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.x86_64-darwinlegacy.tlpobj' tlpkg/tlpobj/texlive.infra.i386-netbsd.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.i386-netbsd.tlpobj' tlpkg/tlpobj/texlive.infra.aarch64-linux.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.aarch64-linux.tlpobj' tlpkg/tlpobj/texlive.infra.sparc-solaris.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.sparc-solaris.tlpobj' tlpkg/tlpobj/texlive.infra.i386-freebsd.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.i386-freebsd.tlpobj' tlpkg/tlpobj/texlive.infra.amd64-freebsd.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.amd64-freebsd.tlpobj' tlpkg/tlpobj/texlive.infra.i386-solaris.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.i386-solaris.tlpobj' tlpkg/tlpobj/texlive.infra.x86_64-linuxmusl.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.x86_64-linuxmusl.tlpobj' tlpkg/tlpobj/texlive.infra.tlpobj: Can't unlink already-existing object tlpkg/tlpobj/texlive.infra.x86_64-cygwin.tlpobj: Can't create 'tlpkg/tlpobj/texlive.infra.x86_64-cygwin.tlpobj' tlpkg/tlpobj/texlive.infra.x86_64-darwin.tlpobj: Can't unlink already-existing object tar: Error exit delayed from previous errors. |
無事に.shを走らせ終わったら、もう一度「sudo tlmgr update --self --all」を走らせてみる。
今度はエラーが出なかったので、めでたしめでたし。
この記事へのコメントはこちら