使用 PPA 在 Ubuntu 18.04.2 LTS 上安裝 TeXstudio 問題

使用 PPA 在 Ubuntu 18.04.2 LTS 上安裝 TeXstudio 問題

我在安裝 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

這解決了問題。

相關內容