子进程粘贴被信号终止(管道破裂)

我正在尝试使用以下终端命令安装libhdf5-serial-dev包:
sudo apt-get install libhdf5-serial-dev

这给我带来了以下的输出:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
   libhdf5-serial-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,126 kB of archives.
After this operation, 14.2 MB of additional disk space will be used.
(Reading database ... 186283 files and directories currently installed.)
Unpacking libhdf5-serial-dev (from .../libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb (--unpack):
 trying to overwrite '/usr/include/hdf5.h', which is also in package hdf5 1.8.12-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

在askubuntu上,有一个类似的帖子通过使用以下形式的命令进行修复:
sudo dpkg -r libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386

但是这给我带来了错误:
dpkg: warning: there's no installed package matching libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386

我希望有人能解释一下最初错误的起源,并提出修复建议。
2个回答

打开终端(CTRL+ALT+T),然后粘贴。
 sudo dpkg --force-overwrite /var/cache/apt/archives/libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb

1-缺少-i - dylanninin

尝试覆盖 '/usr/include/hdf5.h',这也是包 'hdf5' 1.8.12-2 中的文件。
包的名称是 'hdf5'。你删除它,一切都会恢复正常:
 sudo dpkg -r hdf5

继续。