I tracked the problem to /var/lib/dpkg/info/nvidia-prime.postrm: 75
(just as the log says)

I have found a fix ( well, almost a fix ). I used "sudo leafpad" to open the 
"/var/lib/dpkg/info/nvidia-prime.postrm" file. I deleted everything between 
          " # Restore the alternatives to a non prime
            # configuration, if possible
            os_release="$(lsb_release -c | cut -d: -f2 | sed "s/\t//g")" "
                  and  
          "update-alternatives --auto "$other_arch" || true
                fi
            fi "
 I was now able to remove it using autoremove and reinstall. I don't know if 
this method is safe.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1264611

Title:
  package nvidia-prime  not installed  failed to install/upgrade:
  subprocess installed post-removal script returned error exit status
  127

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1264611/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to