Sunday, March 11, 2012

svn segfaulting on the Nokia N900

If you happen to have a Nokia N900, and you've updated it, and svn segfaults (causing issues for, perhaps, updating Metasploit), this may annoy you!  Specifically, Metasploit won't update!

Nokia-N900:~/MyDocs/pwnphone/msf3$ svn
Segmentation fault

You may have found the following post: http://zitstif.no-ip.org/?p=581

And you may have attempted to follow the directions, to no avail, because the specified versions are no longer in the main repo.

Fear not, and read on!




If svn segfaults when you try & run it, perform the following steps:

You want to install libapr1 1.3.9-2 and libaprutils 1.2.4-1

wget http://repository.maemo.org/extras-devel/pool/fremantle/free/liba/libaprutil1/libaprutil1_1.3.9-2_armel.deb
wget http://repository.maemo.org/extras-devel/pool/fremantle/free/liba/libapr1/libapr1_1.4.2-1_armel.deb
dpkg -i libaprutil1_1.3.9-2_armel.deb
dpkg -i  libapr1_1.4.2-1_armel.deb

 You may also want to consider backing up nmap:

apt-get install nmap=5.50-2

Now, the trick is, the next update will break these again.  So, hold the current version:

echo libapr1 hold | dpkg --set-selections
echo libaprutil1 hold | dpkg --set-selections
echo nmap hold | dpkg --set-selections



Now, if you run an upgrade (and have also pinned the kernel power packages, say for the pwnphone image), you should see the following:

Nokia-N900:~# apt-get upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages have been kept back:
  kernel-power kernel-power-flasher kernel-power-modules libapr1 libaprutil1
  libsdl-mixer1.2 nmap phonestream
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

Your packages won't be updated, so things won't break!

Awesome!

In other news, I have a Nokia N900 :)

No comments:

Post a Comment