Cannot install git-svn apt-package


I was trying to install git svn apt package on xenial, and ran into the following error

The following packages have unmet dependencies:
git-svn : Depends: git (< 1:2.7.4-.)
E: Unable to correct problems, you have held broken packages.

I cannot reproduce the error on a xenial docker container and essentially the same build script worked on xenial 20 days ago.

Not entirely sure how to work around this without requiring sudo access, which I have thus far avoided.


We will be moving to GCP for all Linux builds, so you will be able to assume sudo will be available.

In the mean time, though, if git-svn can’t satisfy the dependency, then there is not much we can do to avoid it. (In other words, the failure will happen outside the context of Travis CI.)


As I mentioned I have thus far been unable to reproduce it outside of travis. I think the dependency issue stems from the installation of a much newer git (2.19.1) then is available by default on xenial.

Could you tell me how you are installing git on the images so I can try to reproduce it locally and figure out a workaround?


We install it from git-core/git PPA.