我在安装 TeXstudio 时遇到问题。安装是在全新安装的 Ubuntu 18.04.2 LTS 上使用 PPA 进行的。提供了错误和 apt-cache 策略。
任何帮助或指导都将不胜感激。
谢谢!
Unpacking texstudio (2.12.16-0~201905181623~ubuntu18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/texstudio_2.12.16-0~201905181623~ubuntu18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/texstudio/tabletemplate_fullyframed_firstBold.js', which is also in package texstudio-doc 2.12.6+debian-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/texstudio_2.12.16-0~201905181623~ubuntu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
computer:~$ apt-cache policy texstudio texstudio-doc
texstudio:
Installed: (none)
Candidate: 2.12.16-0~201905181623~ubuntu18.04.1
Version table:
2.12.16-0~201905181623~ubuntu18.04.1 500
500 http://ppa.launchpad.net/sunderme/texstudio/ubuntu bionic/main amd64 Packages
2.12.6+debian-2 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
texstudio-doc:
Installed: 2.12.6+debian-2
Candidate: 2.12.6+debian-2
Version table:
*** 2.12.6+debian-2 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
删除 PPA 后,可以安装。虽然不使用 PPA 是一个临时解决方案,但希望解决问题并在 PPA 下安装更新的版本。
答案1
你需要跑
sudo apt remove texstudio-doc
这解决了该问题。