尝试通过终端安装 texstudio 时,它说一个文件已经存在,无法覆盖该文件。我尝试删除该 texstudio 文件夹,usr/share/texstudio
但毫无效果。
Preparing to unpack .../texstudio_2.12.14-0~201811301519~ubuntu18.04.1_amd64.deb ...
Unpacking texstudio (2.12.14-0~201811301519~ubuntu18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/texstudio_2.12.14-0~201811301519~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.14-0~201811301519~ubuntu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
方法 1:重新配置软件包数据库 您可以尝试的第一个方法是重新配置软件包数据库。可能是在安装软件包时数据库损坏了。重新配置通常可以解决问题。
sudo dpkg --configure -a
方法 2:使用强制安装如果包安装之前被中断,您可以尝试强制安装。
sudo apt-get install -f
更多方法:链接至 itfoss.com