GNU 调试器 - 包操作失败

GNU 调试器 - 包操作失败

当我尝试使用更新管理器更新 GNU 调试器时,出现以下错误:

“包操作失败。软件包的安装或删除失败。”

输出消息为:

(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 384037 files and directories currently installed.)
Preparing to replace gdb 7.4-2012.04-0ubuntu2 (using.../gdb_7.4-2012.04-0ubuntu2.1_i386.deb) ...
Unpacking replacement gdb ...dpkg: error processing /var/cache/apt/archives/gdb_7.4-2012.04-0ubuntu2.1_i386.deb (--unpack):
trying to overwrite '/usr/share/gdb/python/gdb/printing.py', which is also in package gdb-msp430 7.2~mspgcc-7.2-20110612-1ubuntu1
No apport report written because MaxReports is reached already
Processing triggers for man-db ...
Errors were encountered while processing: /var/cache/apt/archives/gdb_7.4-2012.04-0ubuntu2.1_i386.deb

如何解决这个问题?

答案1

看来您必须删除 gdb-msp430,因为它不能与常规 gdb 同时安装。您还应该针对该软件包提交错误报告,因为它要么应该声明它与 gdb 冲突,因此 gdb 将被删除而不是给出此错误,要么应该修复它以使它不发生冲突。

相关内容