Bug 139012 - Upgrade fails if /usr/bin/firefox is a directory
Summary: Upgrade fails if /usr/bin/firefox is a directory
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 3
Hardware: athlon
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-12 15:09 UTC by Steve Hill
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-11-12 15:42:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Hill 2004-11-12 15:09:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020
Firefox/0.10.1

Description of problem:
My (Fedora Core 2) machines all have FireFox installed in a
_directory_ called /usr/bin/firefox.  Upgrading them to Fedora Core 3
fails mid-upgrade when it tries to replace the existing
/usr/bin/firefox directory with the contents of the
firefox-0.10.1-1.0PR1.20 RPM.  It gives no opportunity to skip
installation of the RPM and continue.

Version-Release number of selected component (if applicable):
Fedora Core 3

How reproducible:
Always

Steps to Reproduce:
1. Install FireFox in a directory called /usr/bin/firefox
2. Upgrade to Fedora Core 3
3.
    

Actual Results:  Installation failed half way through the upgrade and
required me to reboot the system with no indication as to the cause. 
I had to remove /usr/bin/firefox manually and re-run the upgrade.

Expected Results:  1. Detect the problem before installation starts
or 2. Warn about the failed RPM installation but allow the upgrade to
be continued anyway.
or 3. (re)move the /usr/bin/firefox directory during the installation
of the RPM.

It seems that it should be more important to complete the upgrade,
even if firefox hasn't been installed successfully rather than force
the upgrade to be terminated half way through the process.

Additional info:

Comment 1 Jeremy Katz 2004-11-12 15:42:10 UTC
Don't do that then.

rpm doesn't support going from something being a directory to a
regular file or a symlink due to a number of race conditions that
result trying to do this.  anaconda assumes that your system is
relatively "correct" before doing an ugprade and having
/usr/bin/firefox as a directory just doesn't fall into that category.

Comment 2 Steve Hill 2004-11-12 15:50:41 UTC
Should Anaconda not give you the option to skip the RPM causing the
problem and continue the upgrade anyway?  A system is going to be a
lot more broken after the upgrade aborts half way through then if the
firefox RPM just never installed properly.


Note You need to log in before you can comment on or make changes to this bug.