Opened 10 years ago

Last modified 10 years ago

#955 closed defect (Fixed)

Upgrading Tor on OS X fails, seen as older than installed

Reported by: torbert Owned by:
Priority: Low Milestone:
Component: Applications/Tor bundles/installation Version: 0.2.1.13-alpha
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Running OS X 10.4.11 on an Intel based Macbook.

Have been having a small issue over several of the last alpha releases of Tor. When I go to try install a new version

of Tor the installer sees the version of the Tor bundle I am trying to install as being older than the version I have
installed.

For example: I have 0.2.1.11 installed and trying to install 0.2.1.13. This throws up a warning in the installer saying

0.2.1.13 is older than the version I'm installing, when I ignore the warning and continue with the install it leaves
me with the original version despite saying the install was successful.

The only way I've found around this is to manually delete Vidialia / Privoxy and Tor as well as all associated files.

Using the included uninstaller script does not seem to remove enough of the bundle that the installer works.

I believe I first noticed this when trying to upgrade 0.2.1.9

[Automatically added by flyspray2trac: Operating System: OSX 10.4 Tiger]

Child Tickets

Attachments (1)

install_error.png (142.3 KB) - added by torbert 10 years ago.
install error sceenshot

Download all attachments as: .zip

Change History (9)

Changed 10 years ago by torbert

Attachment: install_error.png added

install error sceenshot

comment:1 Changed 10 years ago by phobos

Can you list the directories relevant to Tor, Vidalia, or Privoxy that the uninstaller leaves behind?

We fixed a bug in the plist that determines version a while ago as seen here,
https://svn.torproject.org/cgi-bin/viewcvs.cgi?rev=17458&view=rev

comment:2 Changed 10 years ago by torbert

Sorry about the delay, tried upgrading with 0.2.14-rc to no avail.
So went to the uninstall script

Running unistall_tor_bundle.sh results in the following:

sh -x uninstall_tor_bundle.sh
........
+ PACKAGE_LIST_SRC=/Library/Tor/package_list.txt
+ TOR_USER=_tor
+ STARTUP_ITEMS_DIR=/Library/StartupItems
+ PKG_RCPT_BASE_DIR=/Library/Receipts
+ BOM_INTERMEDIATE_DIR=Contents/Resources
+ INFO_INTERMEDIATE_DIR=Contents/Resources/English.lproj
+ TEMP_BOM_CONTENTS=/tmp/tor_uninst_scratch
++ whoami
+ '[' root '!=' root ']'
++ grep 'Tor/tor '
++ ps -uax
++ awk '{print $2;}'
++ grep -v grep
+ TOR_PID=
+ '0 -gt 0?'
+ echo '. tor process appears to already be stopped'
. tor process appears to already be stopped
++ grep privoxy
++ awk '{print $2;}'
++ ps -uax
++ grep -v grep
+ PRIVOXY_PID=109
+ '3 -gt 0?'
+ echo '. Killing currently running privoxy process, pid is 109'
. Killing currently running privoxy process, pid is 109
+ kill -9 109
./uninstall_tor_bundle.sh: line 123: /Library/Tor/package_list.txt: No such file or directory
+ echo '. Removing created user _tor'
. Removing created user _tor
+ '-x /usr/bin/dscl?'
+ dscl . -delete /users/_tor
delete: Invalid Path
+ echo '. Cleaning up'
. Cleaning up
+ rm -rf /tmp/tor_uninst_scratch
+ rm -rf /Library/Privoxy/ /Library/StartupItems/Privoxy/ /Library/Tor/ /Library/StartupItems/Tor/ /Library/Torbutton/
rm: fts_read: No such file or directory
+ echo '. Finished'
. Finished
........

After this the following are left behind:

/Applications/Vidalia.app
/Library/Receipts/Vidalia.pkg
/Library/Vidalia

/Library/Receipts/torbutton.pkg

/Library/Receipts/Privoxy.pkg
/Library/Receipts/PrivoxyConf.pkg
/private/var/run/Privoxy.pid
/Users/username/privoxy.search

  • Removal of all prixoxy related files results in install failure as installer sees a newer versions of the bundle than what is being installed

Removing the above one at a time and trying the installer after each
results in:

  • Removal of /Library/Vidialia results in install failure as installer sees a newer versions of the bundle than what is being installed
  • Removal of /Library/Receipts/Vidalia.pkg gets the installer to see it as a valid install/upgrade but only allows an upgrade option
  • Removal of /Library/Receipts/torbutton.pkg get the installer to see it as a valid install and successfully install (rather than upgrade)

comment:3 Changed 10 years ago by phobos

Is this fixed in 0.2.1.15-rc for you?

comment:4 Changed 10 years ago by torbert

Andrew,

No joy. I've tried upgrading to both 0.2.1.15-rc and 0.2.1.16-rc from 0.2.0.34 (the only version I could get installed).

Rather perplexed at this stage. Removing everything I can find by hand (the uninstall appears to miss stuff) I get one install done but any subsequent fails as per the error above.

comment:5 Changed 10 years ago by torbert

Tried with 0.2.0.35 earlier today with no joy. I guess it's safe to say that this is an isolated incident.
i fear a reinstall of the OS will be required to sort this out as I've exhausted all solutions I can think of.

Is there some sort of master uninstall script that will remove everything (tor / vidalia / privoxy) that is installed by the bundle given that the bundled one only removes tor. It really seems like I'm missing something when I do it my self.

comment:6 Changed 10 years ago by phobos

Is this still a problem with 0.2.1.19?

comment:7 Changed 10 years ago by torbert

Andrew,

Sorry for the delay in getting back to this. As luck would have it (or not) I had to do a reinstall after a crash took out my filevault. I have tested an upgrade from 0.2.1.18 to 0.2.1.19 and had no issues. I don't know what was special about my machine pre-reinstall but I think it's safe to say it is not present now so it's ok to close the ticket.

comment:8 Changed 10 years ago by phobos

flyspray2trac: bug closed.

Note: See TracTickets for help on using tickets.