安装 pandoc 1.17.2-1 时出错

安装 pandoc 1.17.2-1 时出错

我正在使用Ubuntu 14.04。之前我pandoc 1.12.2.1-1build2从安装software center。今天我pandoc-1.17.2-1-amd64.deb从下载GitHub并尝试安装它。但我收到此错误:

Unpacking pandoc (1.17.2-1) ...
dpkg: error processing archive ~/Downloads/pandoc-1.17.2-1-amd64.deb (--install):
 trying to overwrite '/usr/bin/pandoc-citeproc', which is also in package pandoc-citeproc 0.2-3build1
dpkg-deb (subprocess): decompressing archive member: internal gzip write error: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg-deb (subprocess): cannot copy archive member from '~/Downloads/pandoc-1.17.2-1-amd64.deb' to decompressor pipe: failed to write (Broken pipe)

我也删除了以前的版本pandoc并尝试安装新版本,但没有帮助。我该如何解决这个问题?

答案1

据我所知,软件包pandoc-citeprocpandoc提供相同的软件(概念上),但它们是由不相关的人打包和分发的,因此它们彼此不了解。这就是为什么它们有冲突的内容,但缺少在这种情况下通常应该有的Conflicts或标志。Replaces

要解决该问题,您需要pandoc-citeproc在安装该pandoc包之前删除该包。

相关内容