子进程 paste 被信号(管道破裂)杀死

子进程 paste 被信号(管道破裂)杀死

我正在尝试使用以下终端命令安装包: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

我希望有人可以解释最初错误的根源并提出解决方法。

答案1

打开终端(CTRL++ ALTT并粘贴为

 sudo dpkg --force-overwrite /var/cache/apt/archives/libhdf5-serial-dev_1.8.4-patch1-3ubuntu2_i386.deb

答案2

尝试覆盖“/usr/include/hdf5.h”,它也在包中hdf51.8.12-2

这个包的名字是hdf5。你删除它,一切就都恢复正常了:

 sudo dpkg -r hdf5

继续。

相关内容