Ubuntu12.04 安装 svn 1.7
189 views
0
在Ubuntu12.04上面安装svn,默认的版本是1.6,突然想使用高版本的svn
1. 添加源
在 /etc/apt/sources.list 添加ppa的源
vim /etc/apt/sources.list
在 /etc/apt/sources.list 在末尾添加如下两行:
deb http://ppa.launchpad.net/svn/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/svn/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/svn/ppa/ubuntu precise main
2. 更新仓库
sudo apt-get update
【更新时出错】
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EAA903E3A2F4C039
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
【解决办法】
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EAA903E3A2F4C039
sudo dpkg --configure -a
sudo apt-get update
3. 安装svn
sudo apt-get install subversion subversion-tools
4. 查看svn版本
homer@homer-pc:~$ svn --version
svn, version 1.7.9 (r1462340)
compiled Apr 6 2013, 21:23:46
svn, version 1.7.9 (r1462340)
compiled Apr 6 2013, 21:23:46
版权所有: 本文系米扑博客原创、转载、摘录,或修订后发表,最后更新于 2014-06-26 13:21:16
侵权处理: 本个人博客,不盈利,若侵犯了您的作品权,请联系博主删除,莫恶意,索钱财,感谢!