张静茹作者
7年3个月前IP:江苏
862891
5楼

root@firefly:~# apt-get install gdb

Reading package lists... Done

Building dependency tree       

Reading state information... Done

You might want to run 'apt --fix-broken install' to correct these.

The following packages have unmet dependencies:

 gdb : Depends: libbabeltrace1 (>= 1.2.1) but it is not going to be installed

       Recommends: libc-dbg

       Recommends: gdbserver but it is not going to be installed

 libgl1-mesa-dev : Depends: mesa-common-dev (= 19.0.8-0ubuntu0~18.04.1) but 18.2.8-0ubuntu0~18.04.2 is to be installed

                   Depends: libglvnd-dev but it is not going to be installed

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

root@firefly:~# apt --fix-broken install

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Correcting dependencies... Done

The following additional packages will be installed:

  libglvnd-dev mesa-common-dev

The following NEW packages will be installed:

  libglvnd-dev

The following packages will be upgraded:

  mesa-common-dev

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

36 not fully installed or removed.

Need to get 0 B/606 kB of archives.

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

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

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

Preparing to unpack .../mesa-common-dev_19.0.8-0ubuntu0~18.04.1_arm64.deb ...

Unpacking mesa-common-dev:arm64 (19.0.8-0ubuntu0~18.04.1) over (18.2.8-0ubuntu0~18.04.2) ...

dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_19.0.8-0ubuntu0~18.04.1_arm64.deb (--unpack):

 trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.6-1

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Preparing to unpack .../libglvnd-dev_1.0.0-2ubuntu2.3_arm64.deb ...

Unpacking libglvnd-dev:arm64 (1.0.0-2ubuntu2.3) ...

dpkg: error processing archive /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.3_arm64.deb (--unpack):

 trying to overwrite '/usr/lib/aarch64-linux-gnu/XXXXXXXXX', which is also in package rockchip-mali-midgard14 1.6-1

Errors were encountered while processing:

 /var/cache/apt/archives/mesa-common-dev_19.0.8-0ubuntu0~18.04.1_arm64.deb

 /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.3_arm64.deb

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

root@firefly:~# 





dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_19.0.8-0ubuntu0~18.04.1_arm64.deb (--unpack):

 trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.6-1

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

You might want to run 'apt --fix-broken install' to correct these.

解决方法 

删除 /var/lib/dpkg/info 内的所有文件 重新执行apt --fix-broken install

评论
文号 / 862891

千古风流
名片专栏发私信
学术分 1
总主题 146 帖总回复 1873 楼拥有证书:进士 学者 机友 笔友
注册于 2010/12/30 03:32:26最后登录 2026/06/20 19:33:53
主体类型:个人
所属领域:无
认证方式:手机号
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的