1. “svn: 此客户端对于工作副本 “.” 太旧。你需要取得更新的 Subversion 客户端,或者降级?”

zandy@ubuntu:/tetx/trunk$ svn update
svn: 此客户端对于工作副本 “.” 太旧。你需要取得更新的 Subversion 客户端,或者降级
工作副本。参见 http://subversion.tigris.org/faq.html#working-copy-format-change
以获得更详细的信息。

     如果在高版本客户端 co 出来的代码树下使用低版本的客户端来 update,就会出现上面的错误提示,这时要想继续,方法有两种,

1) 就是删除,重新 co 代码,这个就没什么说的。

2) 就是降级工作副本,

    参见上面错误提示的链接,下载一个里面提供的一个 python 脚本:http://svn.collab.net/repos/svn/trunk/tools/client-side/change-svn-wc-format.py

wget -c http://svn.collab.net/repos/svn/trunk/tools/client-side/change-svn-wc-format.py
chmod a+x change-svn-wc-format.py
./change-svn-wc-format.py --help # 查看帮助信息

usage: change-svn-wc-format.py WC_PATH SVN_VERSION [--verbose] [--force] [--skip-unknown-format]
change-svn-wc-format.py --help

Change the format of a Subversion working copy to that of SVN_VERSION.

--skip-unknown-format : skip directories with unknown working copy
format and continue the update

#执行降级
./change-svn-wc-format.py /tetx/trunk 1.5

 2. Linux下scp错误(REMOTE HOST IDENTIFICATION HAS CHANGED)

    使用SSH登录另外一台机器,#ssh 172.16.6.126,遇到以下问题:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
63:da:7e:e7:e9:b1:36:e6:39:df:15:c4:3d:16:bd:6b.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:9
RSA host key for 125.65.110.152 has changed and you have requested strict checking.
Host key verification failed.
lost connection

  因为在本地机器上曾经用SSH登录过这台远程计算机,因而留下了known_hosts的记录,在远程计算机重新安装系统后不能够通过鉴权。删除~/.ssh/known_hosts中对应的项目,问题获得解决。即执行 #rm -rf  /root/.ssh/。/root/.ssh/ 目录下是存放是SSH连接的相关信息.在我的机器上是/home/yuchao/.ssh

 posted on 2010-07-14 10:26  chao_yu  阅读(1357)  评论(0编辑  收藏  举报