多くの回答を見た後、すでに次のコマンドを試しましたが、どれも機能していないようです:
Sudo apt-get install -f
Sudo apt --fix-broken install
Sudo dpkg -a --config
Sudo apt-get autoclean
Sudo apt-get autoremove
何かをインストールしようとすると表示されるエラーを数行貼り付けています。
texlive-luatex : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-math-extra : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-metapost : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-music : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-omega : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-pictures : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-pstricks : Depends: texlive-binaries (>= 2015.20160222.37495-1)
Recommends: texlive-font-utils but it is not going to be installed
Recommends: texlive-extra-utils but it is not going to be installed
texlive-science : Depends: texlive-binaries (>= 2015.20160222.37495-1)
texlive-xetex : Depends: texlive-binaries (>= 2015.20160222.37495-1)
tipa : Depends: texlive-base-bin
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
失敗したコマンドに対して表示されるエラーは次のとおりです:Sudo apt-get -f install
:
Preparing to unpack .../texlive-fonts-extra-doc_2018.20180505-1~16.04.york0_all.deb ...
Unpacking texlive-fonts-extra-doc (2018.20180505-1~16.04.york0) over (2015.20160320-1) ...
dpkg: error processing archive /var/cache/apt/archives/texlive-fonts-extra-doc_2018.20180505-1~16.04.york0_all.deb (--unpack):
trying to overwrite '/usr/share/doc/texlive-doc/latex/mweights/README', which is also in package texlive-latex-extra-doc 2015.20160320-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/texlive-fonts-extra-doc_2018.20180505-1~16.04.york0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
チェックしましたが、他のコマンドにも同じエラーがあります。
dpkg -l | grep york
の出力:
iU context 2018.04.04.20180416-1~16.04.york0 all powerful TeX format
ii libpython3.6-minimal:AMD64 3.6.3-1ubuntu1~16.04.york1 AMD64 Minimal subset of the Python language (version 3.6)
ii libpython3.6-stdlib:AMD64 3.6.3-1ubuntu1~16.04.york1 AMD64 Interactive high-level object-oriented language (standard library, version 3.6)
iU prosper 2018.20180505-1~16.04.york0 all TeX Live: transitional dummy package
ii python3-gdbm:AMD64 3.6.3-0ubuntu1~16.04.york0 AMD64 GNU dbm database support for Python 3.x
iU python3-tk:AMD64 3.6.5-3~16.04.york4 AMD64 Tkinter - Writing Tk applications with Python 3.x
ii python3.6 3.6.3-1ubuntu1~16.04.york1 AMD64 Interactive high-level object-oriented language (version 3.6)
ii python3.6-minimal 3.6.3-1ubuntu1~16.04.york1 AMD64 Minimal subset of the Python language (version 3.6)
iU texlive 2018.20180505-1~16.04.york0 all TeX Live: A decent selection of the TeX Live packages
iU texlive-fonts-recommended-doc 2018.20180505-1~16.04.york0 all TeX Live: Documentation files for texlive-fonts-recommended
iU texlive-full 2018.20180505-1~16.04.york0 all TeX Live: metapackage pulling in all components of TeX Live
iU texlive-htmlxml 2018.20180505-1~16.04.york0 all TeX Live: transitional dummy package
apt-cache policy texlive-fonts-extra-doc
の出力:
texlive-fonts-extra-doc:
Installed: 2015.20160320-1
Candidate: 2018.20180505-1~16.04.york0
Version table:
2018.20180505-1~16.04.york0 500
500 http://ppa.launchpad.net/jonathonf/texlive/ubuntu xenial/main AMD64 Packages
500 http://ppa.launchpad.net/jonathonf/texlive/ubuntu xenial/main i386 Packages
*** 2015.20160320-1 500
500 http://in.archive.ubuntu.com/ubuntu xenial/main AMD64 Packages
500 http://in.archive.ubuntu.com/ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
TeXLiveの正確なバージョンは必要ないので、 jonathonf texlive PPA を削除し、公式リポジトリからパッケージをインストールすることをお勧めします。
Sudo apt-get install ppa-purge
Sudo ppa-purge ppa:jonathonf/texlive
Sudo apt-get install -f
Sudo apt-get dist-upgrade