I'm trying to downgrade subversion to 1.6 from 1.7, doing sudo apt-get install subversion=1.6.17dfsg-3ubuntu3
. This does not seem to work.
Any idea on how to do this without breaking half the installation?
What you could try is changing all your entries in /etc/apt/sources.list
to precise, like this
deb http://extras.ubuntu.com/ubuntu precise main
deb http://us.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
then run:
sudo apt-get remove subversion
sudo apt-get update
sudo apt-get install subversion
If the install of subversion 1.6 works out for you, then you'll want to revert your sources.list, and to lock subversion at 1.6 you run echo subversion hold | sudo dpkg --set-selections
This type of installation is not highly recommended, but sometimes it's the easiest option. If it runs into all kinds of crazy conflicts, then you're other best option is to just switch back to Ubuntu 12.04.
If you have Synaptic Package Manager installed, you can force-downgrade Subversion to an older release. Just look up Subversion in Synaptic, right-click Properties, go to the Version tab and check what versions are available to you.
If you're lucky enough, you will find both an 1.7 version (1.7.5 in my case) and an 1.6 version (1.6.17). Close the Properties window, select Subversion from the list, go to the Package -> Force Version menu item and select the desired version.
If everything worked out fine you'll only need to worry about Ubuntu updating your software to the most recent release. In order to stick to the 1.6 version, you can lock this update: Package -> Lock version. And voila, you're back to good old 1.6 :)
I have successfully downgraded to 1.6 by manually downloading the 12.04 svn and dependency packages from http://packages.ubuntu.com. I first uninstalled version 1.7. Then, I installed the Ubuntu 12.04 packages in the listed order.
libdb4.8_4.8.30-11ubuntu1_amd64.deb
libsvn1_1.6.17dfsg-3ubuntu3_amd64.deb
subversion_1.6.17dfsg-3ubuntu3_amd64.deb
subversion-tools_1.6.17dfsg-3ubuntu3_all.deb
The other solutions did not work for me.
With the help of the other posts, I think I have a come up with a simpler way to nail it using Synaptic (so first ensure it is installed).
Append the following line to /etc/apt/sources.list
:
deb http://us.archive.ubuntu.com/ubuntu precise main
This will ensure you have at least two versions to select from, i.e 1.7 and 1.6.
Run
sudo apt-get update
Go to the package manager, search for subversion
and select it.
From the menu select package -> force-version select 1.6 or right click -> properties -> version select 1.6.
Install the package
Select package again, then menu -> lock version.
This is to prevent automatic updates to higher versions.
This is it. Good luck.
Recall: This uses the previous answers to provide an easier straight forward approach.
svn 1.7 client is fully compatible with svn 1.6 server.
You only need to do
$ svn updgrade working_dir1 working_dir2 ...
And work as always, the upgrade preserve local modifications. See svn help upgrade
Add deb http://us.archive.ubuntu.com/ubuntu precise main
to your /etc/apt/sources.list
.
Remove your current SVN by apt-get remove libsvn1 subversion
.
Purge files if needed dpkg --purge libsvn1 subversion
.
Do apt-get update
and apt-get -t precise install libsvn1 subversion
.
You might want to test your installation first with apt-get -t precise -s install libsvn1 subversion
.
I usually do the follow for Ubuntu 18.04, in this case to install subversion 1.6.17 because the “format 10” commit model. So for ubuntu I Download from ubuntu 12.04 amd 64 precise pangolin the binary:
https://ubuntu.pkgs.org/12.04/ubuntu-main-amd64/libdb5.1_5.1.25-11build1_amd64.deb.html
https://ubuntu.pkgs.org/12.04/ubuntu-main-amd64/libaprutil1_1.3.12+dfsg-3_amd64.deb.html
https://ubuntu.pkgs.org/12.04/ubuntu-main-amd64/libapr1_1.4.6-1_amd64.deb.html
https://ubuntu.pkgs.org/12.04/ubuntu-main-amd64/libsvn1_1.6.17dfsg-3ubuntu3_amd64.deb.html
https://ubuntu.pkgs.org/12.04/ubuntu-main-amd64/subversion_1.6.17dfsg-3ubuntu3_amd64.deb.html
And then execute in the cli with in the download diretory the follow commands:
sudo apt-get remove subversion
sudo dpkg -i libdb5.1_5.1.25-11build1_amd64.deb
sudo dpkg -i libaprutil1_1.3.12+dfsg-3_amd64.deb
sudo dpkg -i libapr1_1.4.6-1_amd64.deb
sudo dpkg -i libsvn1_1.6.17dfsg-3ubuntu3_amd64.deb
sudo dpkg -i subversion_1.6.17dfsg-3ubuntu3_amd64.deb
sudo apt-cache policy subversion
So the first command assurance there is no subversion and dependencies, the last command aid to see what you have installed from that package. The inner commands install each downloaded package and you will be prompted if something is different or missing. Any doubt you could use the website where I suggested the downloads to seek dependencies and see another detail about the package.