web-dev-qa-db-ja.com

破損したtexliveインストールを試みた後、Texmakerを含むTexLiveに関連するものをインストールする問題

MikTexとTexMakerをコンパイラ/エディタとして使用しています。

ある時点で、MikTexを削除してTexLiveに切り替えようとしましたが、インストールが破損したため機能しませんでした。私はこのサイトでいくつかの質問を見て、それらを使用してTexLiveの残留物を削除しました( https://tex.stackexchange.com/questions/95483/how-to-remove-everything-related-to-を参照) tex-live-for-fresh-install-on-ubuntu/95502#95502 ); texmfと〜/ .texliveを削除しました。

その後、MikTexを再インストールしました。 TexMakerを再インストールしようとすると、TexLiveパッケージも必要であり、TexLiveをインストールしようとしたときと同じエラーが発生することがわかりました。特に、texliveパッケージの処理に関連する一連のエラーと、kpsewhichに関連するエラーがあるようです。また、インストールする必要があるが構成できない依存関係に関連する多くのもの。 _Sudo apt-get install texmaker_の出力を添付します。

_Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  asymptote asymptote-doc fonts-lmodern fonts-texgyre freeglut3 libfile-homedir-Perl libfile-which-Perl libmime-charset-Perl libosmesa6 libqt5printsupport5 libsombok3 libunicode-linebreak-Perl libyaml-tiny-Perl lmodern
  preview-latex-style ps2eps tex-gyre texlive-base texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-english texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures
  texlive-plain-generic texlive-pstricks texmaker-data tipa
Suggested packages:
  libencode-hanextra-Perl libpod2-base-Perl perl-tk chktex dvidvi dvipng fragmaster lacheck latexdiff latexmk purifyeps xindy texlive-fonts-recommended-doc texlive-latex-base-doc python-pygments icc-profiles
  libspreadsheet-parseexcel-Perl texlive-latex-extra-doc texlive-latex-recommended-doc dot2tex prerex Ruby-tcltk | libtcltk-Ruby texlive-pictures-doc vprerex texlive-pstricks-doc texlive-lang-all
Recommended packages:
  latex-beamer
The following NEW packages will be installed:
  asymptote asymptote-doc fonts-lmodern fonts-texgyre freeglut3 libfile-homedir-Perl libfile-which-Perl libmime-charset-Perl libosmesa6 libqt5printsupport5 libsombok3 libunicode-linebreak-Perl libyaml-tiny-Perl lmodern
  preview-latex-style ps2eps tex-gyre texlive-base texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-english texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures
  texlive-plain-generic texlive-pstricks texmaker texmaker-data tipa
0 upgraded, 31 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/254 MB of archives.
After this operation, 545 MB of additional disk space will be used.
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package freeglut3:AMD64.
(Reading database ... 264719 files and directories currently installed.)
Preparing to unpack .../00-freeglut3_2.8.1-3_AMD64.deb ...
Unpacking freeglut3:AMD64 (2.8.1-3) ...
Selecting previously unselected package libosmesa6:AMD64.
Preparing to unpack .../01-libosmesa6_19.0.8-0ubuntu0~18.04.2_AMD64.deb ...
Unpacking libosmesa6:AMD64 (19.0.8-0ubuntu0~18.04.2) ...
Selecting previously unselected package fonts-lmodern.
Preparing to unpack .../02-fonts-lmodern_2.004.5-3_all.deb ...
Unpacking fonts-lmodern (2.004.5-3) ...
Selecting previously unselected package texlive-base.
Preparing to unpack .../03-texlive-base_2017.20180305-1_all.deb ...
Unpacking texlive-base (2017.20180305-1) ...
Selecting previously unselected package texlive-latex-base.
Preparing to unpack .../04-texlive-latex-base_2017.20180305-1_all.deb ...
Unpacking texlive-latex-base (2017.20180305-1) ...
Selecting previously unselected package texlive-latex-recommended.
Preparing to unpack .../05-texlive-latex-recommended_2017.20180305-1_all.deb ...
Unpacking texlive-latex-recommended (2017.20180305-1) ...
Selecting previously unselected package texlive-pictures.
Preparing to unpack .../06-texlive-pictures_2017.20180305-1_all.deb ...
Unpacking texlive-pictures (2017.20180305-1) ...
Selecting previously unselected package texlive-plain-generic.
Preparing to unpack .../07-texlive-plain-generic_2017.20180305-2_all.deb ...
Unpacking texlive-plain-generic (2017.20180305-2) ...
Selecting previously unselected package texlive-pstricks.
Preparing to unpack .../08-texlive-pstricks_2017.20180305-2_all.deb ...
Unpacking texlive-pstricks (2017.20180305-2) ...
Selecting previously unselected package asymptote.
Preparing to unpack .../09-asymptote_2.41-4_AMD64.deb ...
Unpacking asymptote (2.41-4) ...
Selecting previously unselected package asymptote-doc.
Preparing to unpack .../10-asymptote-doc_2.41-4_all.deb ...
Unpacking asymptote-doc (2.41-4) ...
Selecting previously unselected package fonts-texgyre.
Preparing to unpack .../11-fonts-texgyre_20160520-1_all.deb ...
Unpacking fonts-texgyre (20160520-1) ...
Selecting previously unselected package libfile-which-Perl.
Preparing to unpack .../12-libfile-which-Perl_1.21-1_all.deb ...
Unpacking libfile-which-Perl (1.21-1) ...
Selecting previously unselected package libfile-homedir-Perl.
Preparing to unpack .../13-libfile-homedir-Perl_1.002-1_all.deb ...
Unpacking libfile-homedir-Perl (1.002-1) ...
Selecting previously unselected package libmime-charset-Perl.
Preparing to unpack .../14-libmime-charset-Perl_1.012.2-1_all.deb ...
Unpacking libmime-charset-Perl (1.012.2-1) ...
Selecting previously unselected package libqt5printsupport5:AMD64.
Preparing to unpack .../15-libqt5printsupport5_5.9.5+dfsg-0ubuntu2.3_AMD64.deb ...
Unpacking libqt5printsupport5:AMD64 (5.9.5+dfsg-0ubuntu2.3) ...
Selecting previously unselected package libsombok3:AMD64.
Preparing to unpack .../16-libsombok3_2.4.0-1_AMD64.deb ...
Unpacking libsombok3:AMD64 (2.4.0-1) ...
Selecting previously unselected package libunicode-linebreak-Perl.
Preparing to unpack .../17-libunicode-linebreak-Perl_0.0.20160702-1build2_AMD64.deb ...
Unpacking libunicode-linebreak-Perl (0.0.20160702-1build2) ...
Selecting previously unselected package libyaml-tiny-Perl.
Preparing to unpack .../18-libyaml-tiny-Perl_1.70-1_all.deb ...
Unpacking libyaml-tiny-Perl (1.70-1) ...
Selecting previously unselected package lmodern.
Preparing to unpack .../19-lmodern_2.004.5-3_all.deb ...
Unpacking lmodern (2.004.5-3) ...
Selecting previously unselected package preview-latex-style.
Preparing to unpack .../20-preview-latex-style_11.91-1ubuntu1_all.deb ...
Unpacking preview-latex-style (11.91-1ubuntu1) ...
Selecting previously unselected package ps2eps.
Preparing to unpack .../21-ps2eps_1.68+binaryfree-2_AMD64.deb ...
Unpacking ps2eps (1.68+binaryfree-2) ...
Selecting previously unselected package tex-gyre.
Preparing to unpack .../22-tex-gyre_20160520-1_all.deb ...
Unpacking tex-gyre (20160520-1) ...
Selecting previously unselected package texlive-extra-utils.
Preparing to unpack .../23-texlive-extra-utils_2017.20180305-2_all.deb ...
Unpacking texlive-extra-utils (2017.20180305-2) ...
Selecting previously unselected package texlive-font-utils.
Preparing to unpack .../24-texlive-font-utils_2017.20180305-2_all.deb ...
Unpacking texlive-font-utils (2017.20180305-2) ...
Selecting previously unselected package texlive-fonts-recommended.
Preparing to unpack .../25-texlive-fonts-recommended_2017.20180305-1_all.deb ...
Unpacking texlive-fonts-recommended (2017.20180305-1) ...
Selecting previously unselected package texlive-lang-english.
Preparing to unpack .../26-texlive-lang-english_2017.20180305-1_all.deb ...
Unpacking texlive-lang-english (2017.20180305-1) ...
Selecting previously unselected package texlive-latex-extra.
Preparing to unpack .../27-texlive-latex-extra_2017.20180305-2_all.deb ...
Unpacking texlive-latex-extra (2017.20180305-2) ...
Selecting previously unselected package texmaker-data.
Preparing to unpack .../28-texmaker-data_5.0.2-1build2_all.deb ...
Unpacking texmaker-data (5.0.2-1build2) ...
Selecting previously unselected package texmaker.
Preparing to unpack .../29-texmaker_5.0.2-1build2_AMD64.deb ...
Unpacking texmaker (5.0.2-1build2) ...
Selecting previously unselected package tipa.
Preparing to unpack .../30-tipa_2%3a1.3-20_all.deb ...
Unpacking tipa (2:1.3-20) ...
Setting up freeglut3:AMD64 (2.8.1-3) ...
Setting up libfile-which-Perl (1.21-1) ...
Setting up libosmesa6:AMD64 (19.0.8-0ubuntu0~18.04.2) ...
Setting up libfile-homedir-Perl (1.002-1) ...
Setting up tex-gyre (20160520-1) ...
Setting up texmaker-data (5.0.2-1build2) ...
Setting up preview-latex-style (11.91-1ubuntu1) ...
Setting up fonts-texgyre (20160520-1) ...
Setting up libqt5printsupport5:AMD64 (5.9.5+dfsg-0ubuntu2.3) ...
Setting up libyaml-tiny-Perl (1.70-1) ...
Setting up libmime-charset-Perl (1.012.2-1) ...
Setting up asymptote-doc (2.41-4) ...
Setting up texlive-base (2017.20180305-1) ...
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Updating /usr/share/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
kpsewhich: warning: running with administrator privileges
initexmf: warning: Option --admin should be specified when running this program with administrator privileges
initexmf: warning: Option --admin should be specified when running this program with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
tl-paper: setting paper size for dvips to a4: /var/cache/miktex-texmf/dvips/config/config-paper.ps
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
tl-paper: setting paper size for dvipdfmx to a4: /var/cache/miktex-texmf/dvipdfmx/dvipdfmx-paper.cfg
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/bin/tl-paper line 112.
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
tl-paper: setting paper size for pdftex to a4: /var/cache/miktex-texmf/tex/generic/config/pdftexconfig.tex
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
kpsewhich: warning: running with administrator privileges
Can't use string ("2") as an ARRAY ref while "strict refs" in use at /usr/bin/tl-paper line 112.
dpkg: error processing package texlive-base (--configure):
 installed texlive-base package post-installation script subprocess returned error exit status 1
Setting up ps2eps (1.68+binaryfree-2) ...
dpkg: dependency problems prevent configuration of texlive-fonts-recommended:
 texlive-fonts-recommended depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.

dpkg: error processing package texlive-fonts-recommended (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-plain-generic:
 texlive-plain-generic depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.

No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                                                                                    dpkg: error processing package texlive-plain-generic (--configure):
 dependency problems - leaving unconfigured
Setting up texmaker (5.0.2-1build2) ...
dpkg: dependency problems prevent configuration of texlive-latex-base:
 texlive-latex-base depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.

dpkg: error processing package texlive-latex-base (--configure):
 dependency problems - leaving unconfigured
Setting up libsombok3:AMD64 (2.4.0-1) ...
No apport report written because MaxReports is reached already
                                                              Setting up fonts-lmodern (2.004.5-3) ...
dpkg: dependency problems prevent configuration of asymptote:
 asymptote depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.
 asymptote depends on texlive-plain-generic; however:
  Package texlive-plain-generic is not configured yet.

dpkg: error processing package asymptote (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-pstricks:
 texlive-pstricks depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.
 texlive-pstricks depends on texlive-plain-generic (>= 2017.20170628); however:
  Package texlive-plain-generic is not configured yet.

dpkg: error processing package texlive-pstricks (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-recommended:
 texlive-latex-recommended depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.
 texlive-latex-recommended depends on texlive-latex-base (>= 2017.20170628); however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing package texlive-latex-recommended (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            dpkg: dependency problems prevent configuration of texlive-extra-utils:
 texlive-extra-utils depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.
 texlive-extra-utils depends on texlive-latex-base (>= 2017.20170628); however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing package texlive-extra-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-extra:
 texlive-latex-extra depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.
 texlive-latex-extra depends on texlive-latex-recommended (>= 2017.20170628); however:
  Package texlive-latex-recommended is not configured yet.

No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            dpkg: error processing package texlive-latex-extra (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-pictures:
 texlive-pictures depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.
 texlive-pictures depends on texlive-latex-recommended (>= 2017.20170628); however:
  Package texlive-latex-recommended is not configured yet.

dpkg: error processing package texlive-pictures (--configure):
No apport report written because MaxReports is reached already
                                                               dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tipa:
 tipa depends on texlive-latex-base; however:
  Package texlive-latex-base is not configured yet.

dpkg: error processing package tipa (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-font-utils:
 texlive-font-utils depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.

dpkg: error processing package texlive-font-utils (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of texlive-lang-english:
 texlive-lang-english depends on texlive-base (>= 2017.20170628); however:
  Package texlive-base is not configured yet.

dpkg: error processing package texlive-lang-english (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Setting up libunicode-linebreak-Perl (0.0.20160702-1build2) ...
Setting up lmodern (2.004.5-3) ...
Processing triggers for tex-common (6.09) ...
Running mktexlsr. This may take some time... done.
texlive-base is not ready, delaying updmap-sys call
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...
Errors were encountered while processing:
 texlive-base
 texlive-fonts-recommended
 texlive-plain-generic
 texlive-latex-base
 asymptote
 texlive-pstricks
 texlive-latex-recommended
 texlive-extra-utils
 texlive-latex-extra
 texlive-pictures
 tipa
 texlive-font-utils
 texlive-lang-english
E: Sub-process /usr/bin/dpkg returned an error code (1)
_

以下は要求された出力です。

_which tl-paper_は以下を提供します:

_/usr/bin/tl-paper
_

_which kpsewhich_の結果:

_/usr/local/bin/kpsewhich
_

dpkg -S $(which kpsewhich)の結果:

_texlive-binaries: /usr/share/man/man1/kpsewhich.1.gz
texlive-binaries: /usr/bin/kpsewhich
_

dpkg -S $(which tl-paper)は以下を提供します:

_texlive-base: /usr/bin/tl-paper
_
1

/usr/local/bin/kpsewhichkpsewhichがあるようです。

でそれを削除することを検討してください

Sudo rm /usr/local/bin/kpsewhich

miktexキャッシュとともに:

Sudo rm -rf /var/cache/miktex-texmf

次に、texmakerインストールを再実行します。

Sudo apt-get install -f
Sudo apt-get install texmaker
1
N0rbert