修复ubuntu依赖问题

1. 因为nvida驱动安装失败导致包间依赖错误,如下图

 

dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-89.99_all.deb (--unpack):
trying to overwrite '/usr/bin/acpidbg', which is also in package linux-nvidia-5.19-tools-common 5.19.0-1010.10

 

2. 根据指导,执行apt --fix-broken install进行修复,因为包依赖冲突导致失败

 

dpkg: error processing archive /var/cache/apt/archives/linux-tools-common_5.15.0-89.99_all.deb (--unpack):
trying to overwrite '/usr/bin/acpidbg', which is also in package linux-nvidia-5.19-tools-common 5.19.0-1010.10

3. 执行dpkg -i --force-overwrite强制覆盖安装

dpkg -i --force-overwrite /var/cache/apt/archives/linux-tools-common_5.15.0-89.99_all.deb

 

 

posted @ 2023-12-04 17:57  -chenyujie-  阅读(499)  评论(0编辑  收藏  举报