E:子进程 /usr/bin/dpkg 返回错误代码 (1) dpkg 有问题?

E:子进程 /usr/bin/dpkg 返回错误代码 (1) dpkg 有问题?

我想安装arm-none-eabi-gcc,但遇到了上述错误。我知道这个问题很普遍,我需要阅读该消息上方的行,但在分析错误行后,我仍然不知道该怎么做才能解决这个问题。以下是错误行,也许有人可以帮助我。

Unpacking gdb-arm-none-eabi (7.6.50.20131218-0ubuntu1+1) ...
dpkg: error processing archive /var/cache/apt/archives/gdb-arm-none-eabi_7.6.50.20131218-0ubuntu1+1_i386.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/gdb.1.gz', which is also in package gdb 7.7.1-0ubuntu5~14.04.2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/gdb-arm-none-eabi_7.6.50.20131218-0ubuntu1+1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

LaunchPad 上有一个 bug这里,有人建议在评论#4也就是。

sudo apt-get -o Dpkg::Options::="--force-overwrite" install gdb-arm-none-eabi`

相关内容