尝试使用Ubuntu 17.10上的oibaf PPA升级后无法还原图形驱动程序

sudo apt upgrade无法安装完整的软件包后,我遇到了问题。 我试着清除ppa以将驱动程序恢复到无法使用。

Correcting dependencies... failed. The following packages have unmet dependencies: libgl1-mesa-dri : Depends: libdrm-amdgpu1 (>= 2.4.85+git1710271830.33dcc2~gd~a) but 2.4.83-1 is installed mesa-va-drivers : Depends: libdrm-amdgpu1 (>= 2.4.85+git1710271830.33dcc2~gd~a) but 2.4.83-1 is installed mesa-vdpau-drivers : Depends: libdrm-amdgpu1 (>= 2.4.85+git1710271830.33dcc2~gd~a) but 2.4.83-1 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies $ sudo dpkg --purge libdrm-common dpkg: warning: ignoring request to remove libdrm-common which isn't installed $ sudo ppa-purge ppa:oibaf/graphics-drivers Updating packages lists PPA to be removed: oibaf graphics-drivers Warning: Could not find package list for PPA: oibaf graphics-drivers 

我尝试了几次清洗和重新添加ppa。 我试过“-f install”,“autoremove”,“pkg –configure -a”。

我尝试在synaptic中修复,只是为了找到更多错误。 在此处输入图像描述

在这一点上我想做的就是摆脱这个ppa并恢复到旧包装。

我相信我的问题在于:

准备拆包… / libdrm-amdgpu1_2.4.85 + git1710311403.33dcc2~gd~a_amd64.deb …解压缩libdrm-amdgpu1:amd64(2.4.85 + git1710311403.33dcc2~gd~a)over(2.4.83- 1)… dpkg:error handling存档/var/cache/apt/archives/libdrm-amdgpu1_2.4.85+git1710311403.33dcc2~gd~a_amd64.deb(–unpack):试图覆盖’/ usr / share / libdrm /amdgpu.ids’,这也是包libdrm-common 2.4.85 + git1710311403.33dcc2~gd~a处理时遇到错误:/var/cache/apt/archives/libdrm-amdgpu1_2.4.85+git1710311403.33dcc2〜 gd~a_amd64.deb E:子进程/ usr / bin / dpkg返回错误代码(1)

Oibaf PPA就在这里 。

清除PPA后的屏幕截图: 在此处输入图像描述

编辑 :我已经擦了我的硬盘并重新安装了Ubuntu 17.10。 而且,我发现了一篇post解释“ 如何在Linux上安装最新的AMDGPU-PRO驱动程序 ”但是,我还没有尝试过尝试。

这对我有用,所以在运行以下命令后,它成功升级了oibaf PPA https://forums.linuxmint.com/viewtopic.php?t=253257

 dpkg-divert --package libdrm-common --divert /usr/share/libdrm/amdgpu.ids.divert --rename /usr/share/libdrm/amdgpu.ids