[Bug 464120] [NEW] During Kubuntu 9.10 upgrade, xulrunner --remove failed with "no alternatives for xulrunner"

skierpage info at skierpage.com
Fri Oct 30 03:39:09 UTC 2009


Public bug reported:

Binary package hint: xulrunner

I'm running `update-notifier-kde -u` to upgrade from Kubuntu 9.04 amd64
to 9.10.

It seems to be working really well, but towards the end in the Cleaning up phase, I think during the removal of packages, I got an Error alert window
  "Could not install 'xulrunner-1.9'
  The upgrade will continue but the 'xullrunner-1.9' package may not be in a working state. Please consider submitting a bug report about it.
    subprocess installed pre-removal script returned error exit status 2

I clicked the [Report bug] button and here we are.

I had shut down Firefox and Thunderbird during the long download step;
besides I'm running a thunderbird-3.0 from a PPA and a Firefox 3.7
nightly, I think both use a later internal xulrunner.

The [Show Terminal] button in Distribution Upgrade window displayed

...
Removing xulrunner-1.9-dev ...
Removing xulrunner-1.9
update-alternatives: error: no alternatives for xulrunner.
update-alternatives: error: no alternatives for xulrunner. [a seond time]
dpkg: error processing xulrunner-1.9 (--remove):
 subprocess installed pre-removal script returned error exit status 2

I think the script that's running is
   /var/lib/dpkg/info/xulrunner-1.9.prerm remove
which when I run it by hand prints this error "update-alternatives: error: no alternatives for xulrunner." and returns status 2.
This script checks 
        if [ "$(update-alternatives --list xulrunner | wc -l)" = "0" ]; then     
and this does indeed return 0, so then it runs       
                 /usr/sbin/update-alternatives --remove-all xulrunner 
which reports the error "no alternatives for xulrunner".  Maybe the test in  /var/lib/dpkg/info/xulrunner-1.9.prerm is backwards?  If there are no alternatives, then presumably there are none to remove?

  % dpkg -s xulrunner-1.9
reports
  Status: deinstall ok installed
and In KPackageKit, nothing shows as [Required by] when I choose xulrunner-1.9.

I'm not a packaging wizard ;-)

** Affects: xulrunner (Ubuntu)
     Importance: Undecided
         Status: New

-- 
During Kubuntu 9.10 upgrade, xulrunner --remove failed with "no alternatives for xulrunner"
https://bugs.launchpad.net/bugs/464120
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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




More information about the universe-bugs mailing list