Categories
Unix

yum install subversion fails with “package is already installed”

I have a new CentOS installation in place using utterramblings.repo and got this mesage when doing a “yum install subversion”:

Transaction Check Error:
package apr-1.4.5-1.jason.1.x86_64 (which is newer than apr-1.2.7-11.el5_6.5.i386) is already installed
package apr-util-1.3.12-1.jason.1.x86_64 (which is newer than apr-util-1.2.7-11.el5_5.2.i386) is already installed

Now some posts on the ‘net say to do a “yum downgrade” but that seems just unreasonable! Instead, the solution was to only install the X86_64 version! So the following worked:

yum install subversion.x86_64

Categories
Unix

“containing working copy admin area is missing” in SVN

I was recently working with SVN and somehow a directory got fubar’ed and I was getting that message when trying to commit.

The resolution was to do a fresh checkout in a temp directory, then TAR up the .svn folder for my fubar’ed directory and copy it over to my current SVN workspace. I had to make sure I still added any files that were not added in the other .svn folder, but that was no problem and my issue was resolved!

Categories
Unix

SVN in chroot says you don’t exist

You may one day set up a chroot environment and find you get this message when you try to ssh or use svn (using ssh):

You don’t exist, go away!
svn: Connection closed unexpectedly

In addition to my assurance that you do indeed exist in the universe, let me tell you how I fixed it.

Check your chroot /etc to make sure passwd and shadow exist for your user and the IDs are correct.

Then, note that when svn does a repository connection it uses libnss_files.so which can require proper DNS resolution. In my case, I had to add the repository domain name into the chroot /etc/hosts file.

Then I existed in more ways than one.