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 Desktop
Packages, which is subscribed to nvidia-prime in 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

Status in “nvidia-prime” package in Ubuntu:
  Confirmed

Bug description:
  Hi, I want to do 
  apt-get purge nvidia-prime and failed in ubuntu12.04 ,so I have to reinstall 
it 
  now this problem ocurred...

  ProblemType: Package
  DistroRelease: Ubuntu 12.04
  Package: nvidia-prime (not installed)
  ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
  Uname: Linux 3.8.0-35-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: i386
  Date: Fri Dec 27 11:39:48 2013
  DuplicateSignature: package:nvidia-prime:(not installed):subprocess installed 
post-removal script returned error exit status 127
  ErrorMessage: subprocess installed post-removal script returned error exit 
status 127
  InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release i386 
(20130820.1)
  MarkForUpload: True
  SourcePackage: nvidia-prime
  Title: package nvidia-prime (not installed) failed to install/upgrade: 
subprocess installed post-removal script returned error exit status 127
  UpgradeStatus: No upgrade log present (probably fresh install)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to