linux错误代码1,linux – apt-get error:子进程/usr/bin/dpkg返回错误代码(1)

我在apt-get install中有错误

这是一个错误:

The following packages have unmet dependencies:

gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed

libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试了几个命令

喜欢:apt-get -f install

apt-get clean

我尝试更改我的源列表,并重新制作apt-get update

$sudo apt-get install g++

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:

gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed

libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

在apt-get -f install中

$sudo apt-get -f install

Reading package lists... Done

Building dependency tree

Reading state information... Done

Correcting dependencies... Done

The following extra packages will be installed:

libc6-dev-i386

The following NEW packages will be installed:

libc6-dev-i386

0 upgraded, 1 newly installed, 0 to remove and 434 not upgraded.

3 not fully installed or removed.

Need to get 0 B/1.148 kB of archives.

After this operation, 6.333 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

(Reading database ... 194963 files and directories currently installed.)

Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb ...

Unpacking libc6-dev-i386 (2.19-0ubuntu6.6) ...

dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb (--unpack):

trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64 2.19-0ubuntu6.6

Errors were encountered while processing:

/var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法:

解决方案是:

rm /var/lib/dpkg/info/$nomdupaquet* -f

谢谢 :)

标签:linux,ubuntu,apt-get

来源: https://codeday.me/bug/20191001/1839205.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值