I need downgrade from Subversion 1.8 to subversion 1.7

35,801

Solution 1

In order to expand Sylvain Pineaus answer a bit: I had the same problem as OP and I solved it like this:

I added the following lines at the end of /etc/apt/sources.list:

# REMEMBER TO DELETE THIS AFTER SVN 1.7 is installed
deb http://extras.ubuntu.com/ubuntu saucy main
deb http://de.archive.ubuntu.com/ubuntu/ saucy main universe restricted multiverse

Now remove the svn packages with version 1.8

sudo apt-get remove subversion libsvn1

update the sources

sudo apt-get update

and install the correct versions

sudo apt-get install subversion=1.7.9-1+nmu6ubuntu3 libsvn1=1.7.9-1+nmu6ubuntu3

Now we need to fix the version of the packages by

echo subversion hold | sudo dpkg --set-selections
echo libsvn1 hold | sudo dpkg --set-selections
echo libserf1 hold | sudo dpkg --set-selections

The libserf1 is needed by subversion or libsvn1 and is now (in 14.04) called libserf-1-1, I guess.

Now remove the lines of /etc/apt/sources.list that were added and update the sources once again (just to be sure)

sudo apt-get update

Solution 2

I'm building on top of other answers here, but this is a script that seemed to work for Trusty 14.04:

# remove old versions
sudo apt-get remove subversion libsvn1 libserf1
# add Wandisco's Subversion maintenance package
wget -q -O - http://opensource.wandisco.com/wandisco-debian.gpg | sudo apt-key add -
sudo sh -c 'echo "deb http://opensource.wandisco.com/debian/ wheezy svn17" > /etc/apt/sources.list.d/wandisco-subversion.list'
sudo apt-get update
# install the version provided by Wandisco
sudo apt-get install subversion=1.7.22-1+WANdisco libsvn1=1.7.22-1+WANdisco
# make sure they don't get automatically upgraded to the latest
echo subversion hold | sudo dpkg --set-selections
echo libsvn1 hold | sudo dpkg --set-selections
echo libserf1 hold | sudo dpkg --set-selections

Solution 3

I have the same issue where an update upgraded my subversion from 1.7.x to 1.8.x and it seems non trivial to re-install 1.7 back.

My compromise was to use svnkit, a java implementation of subversion from what I can make of it. http://svnkit.com/download.php

So I still have subversion 1.8 installed but v1.7 of svnkit.

Slow but I can live with this.

Why downgrade, you ask?

My version of intellij (12.x) doesnt play nice with 1.8.x

Solution 4

Had the same Problem on Ubuntu 14.04, but on 64 instead of 32 Bit. Remove default version 1.8:

sudo apt-get remove --purge libsvn1
sudo apt-get remove --purge subversion

Download and install version 1.7 (.../amd64/... instead of .../i386/...)

libsvn1: https://launchpad.net/ubuntu/trusty/amd64/libsvn1/1.7.14-1ubuntu2

subversion: https://launchpad.net/ubuntu/trusty/amd64/subversion/1.7.14-1ubuntu2

Solution 5

Ok, I've solved by downloading https://launchpad.net/ubuntu/trusty/i386/subversion/1.7.14-1ubuntu2 and https://launchpad.net/ubuntu/trusty/i386/libsvn1/1.7.14-1ubuntu2

Sorry for the trouble.

Share:
35,801

Related videos on Youtube

user273083
Author by

user273083

Updated on September 18, 2022

Comments

  • user273083
    user273083 over 1 year

    I've upgraded system from 13.10 to 14.04 LTS Now I need downgrade from Subversion 1.8 to Subversion 1.7, because formats 1.7 vs 1.8 are different and I can not access to svn repo of my team.

    I've failed to compile svn from sources: a lot of dependencies, strange errors.

    I can not understand why svn has not been packed into standalone deb package. I'm sure there are a lot of people that need precisely one svn version and do not need forced svn upgrade.

    So, my question is: how can I switch to svn 1.7 from 1.8, staying at Ubuntu 14.04?

    Update I've installed svn 1.7.9 on ubuntu 14.04 from source. Then I've installed svn 1.7.9 on ubuntu 14.04 as described below via apt-get and source.list manipulations

    Both cases resulted with message:

    The following repository access (RA) modules are available:

    • ra_svn : Module for accessing a repository using the svn network protocol.
      • handles 'svn' scheme
    • ra_local : Module for accessing a repository on local disk.
      • handles 'file' scheme

    This message means that I can not access svn repository of my team, because http/https support is not installed.

    Update2 I hate Subversion and Ubuntu. The second day I spend trying to compile Subversion 1.7 on Ubuntu 14.04 with http/https support. No result. I do not understand, why formats 1.7 and 1.8 of Subversion uncompatible. I hate Subversion developers.

    I do not understand, why the http/https support is absent in https://launchpad.net/ubuntu/trusty/amd64/subversion/1.7.14-1ubuntu2 https://launchpad.net/ubuntu/trusty/amd64/libsvn1/1.7.14-1ubuntu2

    Is it too difficult to give me ONLY ONE deb package, that I can install and forget about configuration?

    I thought it'd take me for maximum 10 minutes: sudo apt-get install svn-1.7

    But I spend my time configuring neon and serf and trying to fit for conditions of that I don't what.

    • Admin
      Admin about 10 years
      I’m very sorry that things didn’t went quite as you expected. I tested it and my svn supports http and https. If you compiled and installed svn from source you most likely screwed up your installation. Compiling from source is ok, but installing without using the package manger is ALWAYS a BAD idea. The files of your compiled svn most likely interfer with the ones you installed via apt-get. You can only purge everything that has to do with svn from your computer (i.e. try to uninstall the compiled svn) and then follow the instructions in my answer.
    • Admin
      Admin over 9 years
      SVN should be downward compatible according to the developers. Instead of downgrading your SVN version I would take a look at why you cannot connect to the old version server?
  • user273083
    user273083 about 10 years
    Hi, Wauzl. I've installed svn, but have not access via http/https. svn up returns "svn: E170000: Unrecognized URL scheme for"
  • user273083
    user273083 about 10 years
    Never the less, thanks a lot for your detailed comment.
  • No Time
    No Time almost 10 years
    You can mark the question as solved, since you have figured it out.
  • hiway
    hiway almost 10 years
    @Wauzl, 1.7.9-1+nmu6ubuntu3 not found.
  • Kevin
    Kevin over 9 years
    I would recommend using pkgs.org/search/subversion to download the 3 packages manually, its faster than futzing with the sources.list
  • thatidiotguy
    thatidiotguy almost 9 years
    This answer is no longer working for me either unfortunately. I am Ubuntu 14.04
  • thatidiotguy
    thatidiotguy almost 9 years
    Note that the version number is now 1.7.21-1.
  • Wauzl
    Wauzl almost 9 years
    Yes, I'm sorry. The version of Ubuntu that we use to get the old files is no longer maintained and therefore the repos should be unaccessible. Please try @Quartz answer.
  • Shane Gannon
    Shane Gannon over 8 years
    Found that following these instructions (for 1.7.22-1) installed svn. But when I tried to checkout code it crashed. I ended up using launchpad.net/ubuntu/trusty/i386/subversion/1.7.14-1ubuntu2 and launchpad.net/ubuntu/trusty/i386/libsvn1/1.7.14-1ubuntu2 as suggested by the submitter of this question.
  • Stefan Falk
    Stefan Falk about 8 years
    Can you please update your answer if you know that it's no longer working? I just ran into this ..
  • I wrestled a bear once.
    I wrestled a bear once. almost 7 years
    Outdated answer:E: Version '1.7.9-1+nmu6ubuntu3' for 'subversion' was not found E: Version '1.7.9-1+nmu6ubuntu3' for 'libsvn1' was not found
  • Wauzl
    Wauzl almost 7 years
    Yes, Ubuntu only carries old versions for so long. Since this version is now outdated for so long, maybe it is a good idea to tell the SVN owner to migrate to a newer version. Sorry.