3

I am trying to remove fglrx-driver as part of an upgrade from wheezy to jessie. Running apt-get dist-upgrade failed with the following message:

fglrx-driver ...
dpkg: error processing fglrx-driver (--remove):
 subprocess installed post-removal script returned error exit status 20
Errors were encountered while processing:
 fglrx-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried running sudo apt-get remove fglrx* but got the same message. How do I get around this? Do I need to somehow "unload" the driver? If so, how?

Braiam
  • 35,380
  • 25
  • 108
  • 167
quant
  • 4,061
  • 10
  • 34
  • 50

3 Answers3

3

Deleted /etc/X11/xorg.conf, restarted in recovery mode and then it worked.

quant
  • 4,061
  • 10
  • 34
  • 50
1

The usual way of handling this is to check what is going wrong with the post-removal script and edit as necessary. Note that you can run the post-removal script independently. This is a shell script, lives in /var/lib/dpkg/info, and has the suffic .postrm. I think apt/dpkg sometimes eat the error messages, so you don't get to see them.

Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
1

you have to delete xorg and the files from fglrx on xorg.d

putilla
  • 11
  • 1