尝试覆盖同样位于 codeblocks-headers 包中的 externaldepsdlg.h

尝试覆盖同样位于 codeblocks-headers 包中的 externaldepsdlg.h

好吧,我有点困惑。从网站上安装 Code::Blocks 后,顶部栏弹出一个小错误。它说“错误:BrokenCount > 0”,并且我的一个包有未满足的依赖项。我立刻知道这是 Code::Blocks,因为我记得在安装它时看到一个错误,它无法安装 codeblocks-contrib 包和其他一些包。我尝试了 apt-get install -f 和所有建议,甚至进入软件中心并单击修复,但这会启动我在终端中发现的类似错误。这是我的 sudo apt-get install -f 的输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  codeblocks-contrib codeblocks-dev gamin libcodeblocks0 libgamin0
  libwxsmithlib-dev
Recommended packages:
  valgrind
The following packages will be REMOVED:
  codeblocks-headers
The following NEW packages will be installed:
  gamin libgamin0 libwxsmithlib-dev
The following packages will be upgraded:
  codeblocks-contrib codeblocks-dev libcodeblocks0
3 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
9 not fully installed or removed.
Need to get 0 B/5,309 kB of archives.
After this operation, 1,163 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 249992 files and directories currently installed.)
Preparing to unpack .../codeblocks-dev_13.12-3_amd64.deb ...
Unpacking codeblocks-dev (13.12-3) over (13.12-1) ...
dpkg: error processing archive /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb (--unpack):
 trying to overwrite '/usr/include/codeblocks/externaldepsdlg.h', which is also in package codeblocks-headers 13.12-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/codeblocks-dev_13.12-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

dpkg 错误消息很明确,codeblocks-dev 和 codeblocks-headers 都试图提供同一个文件/usr/include/codeblocks/externaldepsdlg.h。请联系每个维护者,以便他们可以确保将冲突添加到他们的包中。

相关内容