1

I am having issues after sudo apt upgrade failed to install complete packages. I tried purging the ppa to revert the drivers to no avial.

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

I tried purging and re-adding the ppa several times. I tried "-f install", "autoremove", "pkg --configure -a".

I tried fixing in synaptic, only to find more errors. enter image description here

All I want to do at this point is get rid of this ppa & revert to the old packages.

I believe my problem lies here:

Preparing to unpack .../libdrm-amdgpu1_2.4.85+git1710311403.33dcc2~gd~a_amd64.deb ... Unpacking libdrm-amdgpu1:amd64 (2.4.85+git1710311403.33dcc2~gd~a) over (2.4.83-1) ... dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.85+git1710311403.33dcc2~gd~a_amd64.deb (--unpack): trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.85+git1710311403.33dcc2~gd~a Errors were encountered while processing: /var/cache/apt/archives/libdrm-amdgpu1_2.4.85+git1710311403.33dcc2~gd~a_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

The Oibaf PPA is here.

Screenshot after purging the PPA: enter image description here

EDIT:I have since wiped my hard drive and re-installed Ubuntu 17.10. And, I found a post explaining, "How To Install The Latest AMDGPU-PRO Drivers On Linux" but, I have not attempted to try it yet.

  • Install ppa-purge and run it against the same PPA you added. It will: 1. Remove the PPA and 2. Remove or downgrade any packages installed via that PPA. –  Nov 01 '17 at 05:19
  • Sorry, I tried that and y-ppa manager, as well. You can see by the last screenshot, I purged the PPA. The bottom of the PPA page says, "=== Revert to original drivers === To revert to standard Ubuntu drivers type the following in a prompt shell: $ sudo apt-get install ppa-purge $ sudo ppa-purge ppa:oibaf/graphics-drivers" – eyes0nfleek Nov 02 '17 at 02:26
  • It seems Obaif's is not the only PPA you added. The error message mentions "xorg-edgers". Mixing different PPAs for graphics drivers shouldn't be done and yours is a typical result of conflicting packages. Try removing/purging the other PPA before. –  Nov 02 '17 at 02:44
  • The other PPA didn't add anything or take anything from the system, I removed (purged) that one, as well. I only added that one to try to fix the errors from Obaif's. – eyes0nfleek Nov 02 '17 at 02:48
  • To try to fix? No, it actually made the problem worse. –  Nov 02 '17 at 02:51
  • No, it actually didn't. The problem was there before I added it. It doesn't matter now. I wiped the hard drive and re-installed ubuntu 17.10. – eyes0nfleek Nov 02 '17 at 02:55
  • 2

1 Answers1

1

This worked to me so after run the following command, it successfully upgraded with 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
Thomas
  • 6,223
luke
  • 11