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_XXXXXXXXb ...
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_XXXXXXXXb (--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_XXXXXXXXb ...
Unpacking libglvnd-dev:arm64 (1.0.0-2ubuntu2.3) ...
dpkg: error processing archive /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.3_XXXXXXXXb (--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_XXXXXXXXb
/var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.3_XXXXXXXXb
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_XXXXXXXXb (--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
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |