从 Ubuntu 16.04 升级到 18.04 后,出现以下依赖问题:
Preparing to unpack .../linux-tools-4.15.0-34_4.15.0-34.37_amd64.deb ...
Unpacking linux-tools-4.15.0-34 (4.15.0-34.37) ...
dpkg: error processing archive /var/cache/apt/archives/linux-tools-4.15.0-34_4.15.0-34.37_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libcpupower.so.4.15.0-34', which is also in package linux-hwe-tools-4.15.0-34 4.15.0-34.37~16.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-tools-4.15.0-34_4.15.0-34.37_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
任何想法如何解决这一问题?
答案1
该包linux-hwe-tools-4.15.0-34
是 16.04 版本遗留下来的,应当被删除(sudo apt remove linux-hwe-tools-4.15.0-34
)。