Gdb install faild: Unpacking gdb-arm-none-eabi (7.6.50.20131218-0ubuntu1+1) ... dpkg: error processi

本文记录了在尝试安装gdb-arm-none-eabi过程中遇到的dpkg错误问题,特别是关于文件'/usr/share/man/man1/gdb.1.gz'的覆盖冲突,并提供了使用--force-overwrite选项来强制安装以解决问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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)



https://askubuntu.com/questions/596302/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-problem-with-dpkg?answertab=oldest


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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值