Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

AMD error when I am installing build essential to code C

I am facing this error on a Dell Latitude E6540:

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I fix this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

As I mentioned in the comments, my previous answer to this question will fix this issue.

amdgpu and amdgpu-dkms are the problematic packages here because they are either not fully installed or corrupted.

Use the following command to solve the issue:

sudo dpkg -P amdgpu && sudo dpkg -P amdgpu-dkms 

This removes the package, but sometimes returns the same error:

dpkg returned error code (1) 

In that case, you must manually delete it by running the following:

sudo mv /var/lib/dpkg/info/amdgpu* /tmp

This will move all the components of the package you listed to the /tmp directory. You can later remove them if you want.

Then run these commands to update the software cache:

sudo apt -f install
sudo apt update 
sudo apt upgrade 
sudo apt clean
sudo apt autoremove

Feel free to ask me any questions in the comments.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading