我尝试从 texlive 2015 更新到 2017。
我运行了以下命令:
sudo add-apt-repository ppa:jonathonf/texlive-2017
sudo apt-get update
sudo apt-get install texlive-full
运行最后一行后,我得到很多具有未满足依赖关系的包名称和以下错误:
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
但运行
sudo apt-get -f install
结果出现另一个错误
Preconfiguring packages ...
(Reading database ... 880678 files and directories currently installed.)
Preparing to unpack .../texlive-fonts-extra-doc_2017.20170619-1~16.04.york0_all.deb ...
Unpacking texlive-fonts-extra-doc (2017.20170619-1~16.04.york0) over (2015.20160320-1) ...
dpkg: error processing archive /var/cache/apt/archives/texlive-fonts-extra-doc_2017.20170619-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_2017.20170619-1~16.04.york0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
看来我陷入了循环问题。
我尝试了在 Ubuntu 16.04 LTS 上安装 texlive 2017但没有成功。
有人可以帮帮我吗?
答案1
通常不推荐这样做,但你可以使用以下方法强制覆盖文件
sudo dpkg -i --force-all /var/cache/apt/archives/texlive-fonts-extra-doc_2017.20170619-1~16.04.york0_all.deb
进而
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get dist-upgrade