您的位置:首页 > 其它

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

2012-02-06 11:01 309 查看
在ubuntu下使用svncheckout会失败

svn服务器是windows搭建的

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

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

Fixing‘SSLhandshakefailed:SSLerror:Keyusageviolationin
certificatehasbeendetected.’erroronSVNcheckout

with2comments

RecentlywhiletryingtocheckoutanSVNrepoviaunsignedsecuritycertificateoverhttps,hostedusingtheWindows-basedVisualSVNServerIdiscoveredanannoyancewiththenewerversionsofUbuntu.

svn:Commitfailed(detailsfollow):

svn:OPTIONSof'https://HOSTNAME/svn/repo':SSLhandshakefailed:SSLerror:Keyusageviolationincertificatehasbeendetected.(https://HOSTNAME)


ThebugonlyappearedafterupgradingtoUbuntu11.10.AfterdoingsomeinvestigationIdeterminedthatthebugwastheresultofswitchingfromusingOpenSSLinpreviousversionsofneon,thetoolusedforHTTPsupport
inSubversion,builtforUbuntu,tothenewerGnuTLSSSLlibrariesduetoamoreliberalLGPLlicense.

GnuTLSisconsideredtobelessmature,andhasamuchstricterpolicywhenitcomestokeyusageflagsbeingsetcorrectlyincertificates.

Thefixforthisbugisluckilyfairlystraightforward.AversionoflibneonexistswithOpenSSLsupportinUbuntu,bysimplyremovingtheGnuTLSversionandcreatingasymboliclinkeverythingwillbegintoworkagain.

sudomv/usr/lib/libneon-gnutls.so.27/usr/lib/libneon-gnutls.so.27.old

sudoln-s/usr/lib/libneon.so.27/usr/lib/libneon-gnutls.so.27


使用命令:

apt-getinstalllibneon27-dev安装老库

再运行

sudomv/usr/lib/libneon-gnutls.so.27/usr/lib/libneon-gnutls.so.27.old
sudoln-s/usr/lib/libneon.so.27/usr/lib/libneon-gnutls.so.27

[/code]

svncheckout命令就好用了



另外。使用命令apt-cache可以搜索安装软件的信息

apt-cachesearchlibneon


11月19th,2008
linux中apt-cache命令的用法
Category:linux,Author:admin,Popularity:16%
apt-cache是linux下的一个apt软件包管理工具,它可查询apt的二进制软件包缓存文件。APT包管理的大多数信息查询功能都可以由apt-cache命令实现,通过apt-cache命令配合不同的子命令和参数的使用,可以实现查找,显示软件包信息及包依赖关系等功能.
1>apt-cacheshowpackage_name
显示指定软件包的信息,包括版本号,安装状态和包依赖关系等.
2>apt-cachesearchpackage_name
搜索软件包,可以按关键字查找软件包,通常用于查询的关键字会使用软件包的名字或软件包的一部分.
3>apt-cacheshowpkgpackage_name
显示软件包的依赖关系信息.
4>apt-cachestats
显示当前系统所使用的数据源的统计信息,用户可以使用该命令查看数据源的相关统计信息.
5>apt-cachepolicypackage_name
显示软件包的安装状态和版本信息.
6>apt-cachedependspackage_name
显示指定软件包所依赖的软件包。当用户需要了解某个软件包依赖于其他哪些包时,可以使用apt-cachedepends来查询包依赖关系.
7>apt-cacherdependspackage_name
查询指定软件包的反向依赖关系,即那些其他的软件包需要依赖你所指定的软件包做为安装和运行的必须条件.
8>apt-cachedump
显示缓存中的每个软件包的简要描述信息.
9>apt-cacheunmet
显示不符合一致性的依赖关系.
本文来源于时光漂流瓶http://www.9usb.net,原文地址:http://www.9usb.net/200811/linux-apt-cache.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: