Subversion 1.6 on Debian Lenny
Currently the Version of Subversion in Debian Lenny is 1.5.1, there are a few bugs in this that could be show stoppers if you are using a write through proxy setup for your SVN Repo’s as i have. There are two bugs that keep cropping up, one that is solved in 1.5.5, the other in 1.6, however if you want to use debian packages the easiest way i have found to install them is as follows
Update 1: Few people are having problems, this guide assumes your running lenny with the default svn packages already installed, to do this try running the command below to install the latest version from apt (1.5.x as i write this) including the required Apache modules
1 | apt-get install subversion subversion-tools apache2 libapache2-svn |
Update 2: New post on how to extend this guide to go from svn 1.6.1 to svn 1.6.3 – Debian: Upgrade Svn 1.6.1 to 1.6.3
Update 3:This post was originally just some notes for me on highly critical production servers that all had to be running exactly the same versions and i had to have a very controled upgrade, However google sends a few hundred people here a month! So i thought id include the better general way that has been in the comments for awhile
The best way are the commands below.
1 2 3 4 | echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list wget -O - http://backports.org/debian/archive.key | apt-key add - apt-get update apt-get -t lenny-backports install subversion subversion-tools libapache2-svn |
Original Post
32Bit
1 2 3 4 5 6 7 8 9 10 11 12 | mkdir /tmp/svn16 cd /tmp/svn16 wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion_1.6.1dfsg-1_i386.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libsvn1_1.6.1dfsg-1_i386.deb wget http://ftp.au.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.6.13-1_i386.deb wget http://ftp.au.debian.org/debian/pool/main/d/db/libdb4.7_4.7.25-6_i386.deb wget http://ftp.au.debian.org/debian/pool/main/a/apr-util/libaprutil1_1.3.4+dfsg-1_i386.deb wget http://ftp.au.debian.org/debian/pool/main/a/apr/libapr1_1.3.3-3_i386.deb wget http://ftp.au.debian.org/debian/pool/main/i/icu/libicu40_4.0.1-2_i386.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.6.1dfsg-1_i386.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion-tools_1.6.1dfsg-1_all.deb dpkg -i *.deb |
64 Bit
1 2 3 4 5 6 7 8 9 10 11 12 | mkdir /tmp/svn16 cd /tmp/svn16 wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion_1.6.1dfsg-1_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libsvn1_1.6.1dfsg-1_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/s/sqlite3/libsqlite3-0_3.6.13-1_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/d/db/libdb4.7_4.7.25-6_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/a/apr-util/libaprutil1_1.3.4+dfsg-1_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/a/apr/libapr1_1.3.3-3_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/i/icu/libicu40_4.0.1-2_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.6.1dfsg-1_amd64.deb wget http://ftp.au.debian.org/debian/pool/main/s/subversion/subversion-tools_1.6.1dfsg-1_all.deb dpkg -i *.deb |
Tags: Atlassian, Debian, Subversion, SVN, Tech

May 27th, 2009 at 2:54 pm #Christoph Jahn
There are new versions of libapr1 (1.3.3_4) and libaprutil1 (1.3.4+dfsg-2) available.
Also, there seems to be a dependency issue with Apache, please see output below
dpkg: regarding libaprutil1_1.3.4+dfsg-2_amd64.deb containing libaprutil1:
libaprutil1 breaks apache2.2-common (<< 2.2.11-3)
apache2.2-common (version 2.2.9-10+lenny2) is present and installed.
dpkg: error processing libaprutil1_1.3.4+dfsg-2_amd64.deb (–install):
installing libaprutil1 would break apache2.2-common, and
deconfiguration is not permitted (–auto-deconfigure might help)
Errors were encountered while processing:
libaprutil1_1.3.4+dfsg-2_amd64.deb
July 7th, 2009 at 7:10 pm #Marc
We also cannot install it:
The following packages have unmet dependencies:
apache2.2-common: Depends: apache2-utils but it is not going to be installed
libaprutil1: Breaks: apache2.2-common (= 0.28.2) but it is not going to be installed
July 8th, 2009 at 2:35 pm #Scott
By default the package assumes your going to be using an Apache front-end
try “apt-get install apache2 libapache2-svn”
July 22nd, 2009 at 2:29 pm #Debian: Upgrade Svn 1.6.1 to 1.6.3 - swherdman.com
[...] Previous post Subversion 1.6 on Debian Lenny has been quite popular! So i thought i should post this next snippet for people, Its the process i [...]
July 31st, 2009 at 4:43 pm #John Swetres
The problem is, if apache is already installed on system from the stable repo of course, there is no way you can install SVN 1.6 because of the above mentioned apache dependency. Both apache and svn depend on libapr1 package.
I hope to find a svn client-only package, like the ones for windows (slik svn etc.)
August 8th, 2009 at 11:44 am #Jim
I was able to fix this only by adding squeeze to sources, and updating apache to 2.2.11 (there was a fork error, but that’s something else). Everything else horribly breaks my VPS.
September 4th, 2009 at 5:34 am #Jameson Williams
Here is an alternate way of accomplishing this.
dpkg is an aging utility, and isn’t as great as aptitude. I would recommend getting the lenny-backport version of subversion (currently 1.6.4) from the backports repo.
Steps:
* Add lenny-backports to sources.list: http://backports.org/dokuwiki/doku.php?id=instructions
* sudo aptitude update
* sudo aptitude -t lenny-backports install subversion
September 25th, 2009 at 1:51 am #Lenny svn 1.5 to 1.6 « siistii
[...] alkoi googlettamalla ongelmalle ratkaisua. Löytyi tämä. Siellä henkilö Jameson Williams toi esiin paremman [...]
November 12th, 2009 at 7:50 am #n0nick
Thanks Jameson Williams – your solution worked and is a much cleaner way I think.
The download links in the original post are all broken (404), btw.
November 22nd, 2009 at 12:57 am #Wascou
Thanks Jameson Williams !
I was searching this one for a long time ! That’s cleaner than squeeze…