错误安装了错误版本的 linux-tools-common,现在无法运行 apt install 命令

错误安装了错误版本的 linux-tools-common,现在无法运行 apt install 命令

我的内核版本是 5.15.0-87-generic,但错误地尝试安装 linux-tools-5.4.0-166 和 linux-tools-5.4.0-166-generic。安装失败,现在每当我尝试安装或删除任何软件包,或卸载 linux-tools 时,我都会收到:

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

但是,该命令会导致错误:

dpkg: error processing archive 
/var/cache/apt/archives/linux-tools-common_5.4.0-166.183_all.deb
 (--unpack):  trying to overwrite '/usr/bin/acpidbg', which is also in package linux-intel-iotg-5.15-tools-common 5.15.0-1043.49~20.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing: 
 /var/cache/apt/archives/linux-tools-common_5.4.0-166.183_all.deb

sudo apt remove 这些包导致系统要求我--fix-missing再次运行该命令。

请帮忙。

相关内容