解决ubuntu 10.04 下svn checkout 失败的问题

来源:互联网 发布:光盘刻录软件哪个好 编辑:程序博客网 时间:2024/05/02 04:40

在ubuntu下使用svn checkout 会失败

svn服务器是windows搭建的

 

1. 不能直接使用域名。  无法解析域名

2. ubuntu 最新的ssl库有问题, 需要使用老库。具体原因如下:

Fixing ‘SSL handshake failed: SSL error: Key usage violation in certificate has been detected.’ error on SVN checkout

with 2 comments

Recently while trying to check out an SVN repo via unsigned security certificate over https, hosted using the Windows-basedVisualSVN Server I discovered an annoyance with the newer versions of Ubuntu.

svn: Commit failed (details follow):
svn: OPTIONS of 'https://HOSTNAME/svn/repo': SSL handshake failed: SSL error: Key usage violation in certificate has been detected. (https://HOSTNAME)

The bug only appeared after upgrading to Ubuntu 11.10. After doing some investigation I determined that the bug was the result of switching from using OpenSSL in previous versions ofneon, the tool used for HTTP support in Subversion, built for Ubuntu, to the newer GnuTLS SSL libraries due to a more liberal LGPL license.

GnuTLS is considered to be less mature, and has a much stricter policy when it comes to key usage flags being set correctly in certificates.

The fix for this bug is luckily fairly straightforward. A version of libneon exists with OpenSSL support in Ubuntu, by simply removing the GnuTLS version and creating a symbolic link everything will begin to work again.

sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.old
sudo ln -s /usr/lib/libneon.so.27 /usr/lib/libneon-gnutls.so.27

 

 

使用命令:

apt-get install libneon27-dev  安装老库
再运行

sudo mv /usr/lib/libneon-gnutls.so.27 /usr/lib/libneon-gnutls.so.27.oldsudo ln -s /usr/lib/libneon.so.27 /usr/lib/libneon-gnutls.so.27

 
svn checkout命令就好用了
 
 
另外。使用命令apt-cache 可以搜索安装软件的信息
apt-cache search libneon
11月 19th, 2008linux中apt-cache命令的用法Category: linux, Author: admin, Popularity: 16% apt-cache是linux下的一个apt软件包管理工具,它可查询apt的二进制软件包缓存文件。APT包管理的大多数信息查询功能都可以由apt-cache命令实现,通过apt-cache命令配合不同的子命令和参数的使用,可以实现查找,显示软件包信息及包依赖关系等功能.1> apt-cache show package_name显示指定软件包的信息,包括版本号,安装状态和包依赖关系等.2> apt-cache search package_name搜索软件包,可以按关键字查找软件包,通常用于查询的关键字会使用软件包的名字或软件包的一部分.3> apt-cache showpkg package_name显示软件包的依赖关系信息.4> apt-cache stats显示当前系统所使用的数据源的统计信息,用户可以使用该命令查看数据源的相关统计信息.5> apt-cache policy package_name显示软件包的安装状态和版本信息.6> apt-cache depends package_name显示指定软件包所依赖的软件包。当用户需要了解某个软件包依赖于其他哪些包时,可以使用apt-cache depends来查询包依赖关系.7> apt-cache rdepends package_name查询指定软件包的反向依赖关系,即那些其他的软件包需要依赖你所指定的软件包做为安装和运行的必须条件.8>apt-cache dump显示缓存中的每个软件包的简要描述信息.9>apt-cache unmet显示不符合一致性的依赖关系.本文来源于时光漂流瓶 http://www.9usb.net , 原文地址: http://www.9usb.net/200811/linux-apt-cache.html 

 

原创粉丝点击