因为种种原因,具体参考http://blog.csdn.net/commshare/article/details/8783969
我需要一个1.7版本的svn,而且安装在我的ubuntu上,以使用命令行。
当前的ubutnu amd64 默认的svn是1.6的。
更新到1.7,要不用人家编译好的,要不自己编译。
自己编译,好烦啊。
===================================找到人家编译好的=========================
http://my.oschina.net/airylinus/blog/63670
修改/etc/apt/sources.list
加入
deb http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu precise main
deb-src http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu precise main
apt-get update
然后 apt-get install subversion
=============================报错,签名的问题===========================================================
Hit http://tw.archive.ubuntu.com precise-security/universe Translation-en
Get:11 http://tw.archive.ubuntu.com precise-updates/main Translation-en [267 kB]root@Ubuntu64:/etc/apt#
=========================================解决人家的签名不被认可的问题=============
http://muzso.hu/2007/05/25/how-to-fix-no_pubkey-errors-in-apt-get-update-operations
GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2380DF3029E526FC
gpg --keyserver subkeys.pgp.net --recv 2380DF3029E526FC
gpg --export --armor 2380DF3029E526FC | apt-key add -
================================重新update==========================
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Err http://mirror.bjtu.edu.cn precise-backports/universe Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-proposed/main Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-proposed/multiverse Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-proposed/restricted Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-proposed/universe Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-security/main Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-security/multiverse Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-security/restricted Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-security/universe Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-updates/main Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-updates/multiverse Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-updates/restricted Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Err http://mirror.bjtu.edu.cn precise-updates/universe Translation-en
Unable to connect to mirror.bjtu.edu.cn:http:
Fetched 789 kB in 1min 11s (11.0 kB/s)
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-backports/universe/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-proposed/main/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-proposed/multiverse/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-proposed/restricted/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-proposed/universe/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-security/main/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-security/multiverse/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-security/restricted/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-security/universe/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-updates/main/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-updates/multiverse/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-updates/restricted/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
W: Failed to fetch http://mirror.bjtu.edu.cn/ubuntu/dists/precise-updates/universe/i18n/Translation-en Unable to connect to mirror.bjtu.edu.cn:http:
北京理工的错误,与此无关。
=================================然后安装1.7的svn客户端===============================================
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@Ubuntu64:/etc/apt# apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libdb4.8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libserf1 libsvn1
Suggested packages:
subversion-tools db5.1-util
The following NEW packages will be installed:
libserf1
The following packages will be upgraded:
libsvn1 subversion 更新 。。
2 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 2,515 kB of archives.
After this operation, 3,589 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu/ precise/main libserf1 amd64 1.1.0-2ubuntu0~ppa3 [48.5 kB]
Get:2 http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu/ precise/main subversion amd64 1.7.8-0ubuntu0~ppa1 [1,300 kB]
Get:3 http://ppa.launchpad.net/dominik-stadler/subversion-1.7/ubuntu/ precise/main libsvn1 amd64 1.7.8-0ubuntu0~ppa1 [1,167 kB]
Fetched 2,515 kB in 12s (207 kB/s)
Selecting previously unselected package libserf1.
(Reading database ... 186845 files and directories currently installed.)
Unpacking libserf1 (from .../libserf1_1.1.0-2ubuntu0~ppa3_amd64.deb) ...
Preparing to replace subversion 1.6.17dfsg-3ubuntu3 (using .../subversion_1.7.8-0ubuntu0~ppa1_amd64.deb) ...
Unpacking replacement subversion ...
Preparing to replace libsvn1 1.6.17dfsg-3ubuntu3 (using .../libsvn1_1.7.8-0ubuntu0~ppa1_amd64.deb) ...
Unpacking replacement libsvn1 ...
Processing triggers for man-db ...
Setting up libserf1 (1.1.0-2ubuntu0~ppa3) ...
Setting up libsvn1 (1.7.8-0ubuntu0~ppa1) ...
Setting up subversion (1.7.8-0ubuntu0~ppa1) ...
Installing new version of config file /etc/bash_completion.d/subversion ...
Installing new version of config file /etc/subversion/config ...
Installing new version of config file /etc/subversion/servers ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@Ubuntu64:/etc/apt#
===========================测试是否是1.7的svn呢?===========================
root@Ubuntu64:/etc/apt# subversion --version
subversion: command not found
root@Ubuntu64:/etc/apt# subversion
subversion: command not found
root@Ubuntu64:/etc/apt# svn --version
svn, version 1.7.8 (r1419691)
compiled Dec 23 2012, 10:27:43
Copyright (C) 2012 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme
root@Ubuntu64:/etc/apt#
=============================================这都啥错误呢?我想svn到挂载的网络服务器Y盘,Y盘是win7 从网络服务器共享的,我现在共享的win7的。
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$ svn co svn://192.168.0.246*****************************************
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/mnt/hgfs/Y_Server/MainCode_m/MainCode' is too old (format 8, created by Subversion 1.4)
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$ mkdir 20130411
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m$ cd *11
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m/20130411$ svn co svn://192.168.0*****************************************
svn: E200030: disk I/O error, executing statement 'CREATE TABLE REPOSITORY ( id INTEGER PRIMARY KEY AUTOINCREMENT, root TEXT UNIQUE NOT NULL, uuid TEXT NOT NULL ); CREATE INDEX I_UUID ON REPOSITORY (uuid); CREATE INDEX I_ROOT ON REPOSITORY (root); CREATE TABLE WCROOT ( id INTEGER PRIMARY KEY AUTOINCREMENT, local_abspath TEXT UNIQUE ); CREATE UNIQUE INDEX I_LOCAL_ABSPATH ON WCROOT (local_abspath); CREATE TABLE PRISTINE ( checksum TEXT NOT NULL PRIMARY KEY, compression INTEGER, size INTEGER NOT NULL, refcount INTEGER NOT NULL, md5_checksum TEXT NOT NULL ); CREATE TABLE ACTUAL_NODE ( wc_id INTEGER NOT NULL REFERENCES WCROOT (id), local_relpath TEXT NOT NULL, parent_relpath TEXT, properties BLOB, conflict_old TEXT, conflict_new TEXT, conflict_working TEXT, prop_reject TEXT, changelist TEXT, text_mod TEXT, tree_conflict_data TEXT, conflict_data BLOB, older_checksum TEXT REFERENCES PRISTINE (checksum), left_checksum TEXT REFERENCES PRISTINE (checksum), right_checksum TEXT REFERENCES PRISTINE (checksum), PRIMARY KEY (wc_id, local_relpath) ); CREATE INDEX I_ACTUAL_PARENT ON ACTUAL_NODE (wc_id, parent_relpath); CREATE INDEX I_ACTUAL_CHANGELIST ON ACTUAL_NODE (changelist); CREATE TABLE LOCK ( repos_id INTEGER NOT NULL REFERENCES REPOSITORY (id), repos_relpath TEXT NOT NULL, lock_token TEXT NOT NULL, lock_owner TEXT, lock_comment TEXT, lock_date INTEGER, PRIMARY KEY (repos_id, repos_relpath) ); CREATE TABLE WORK_QUEUE ( id INTEGER PRIMARY KEY AUTOINCREMENT, work BLOB NOT NULL ); CREATE TABLE WC_LOCK ( wc_id INTEGER NOT NULL REFERENCES WCROOT (id), local_dir_relpath TEXT NOT NULL, locked_levels INTEGER NOT NULL DEFAULT -1, PRIMARY KEY (wc_id, local_dir_relpath) ); PRAGMA user_version = 29; '
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m/20130411$
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m/20130411$ svn upgrade
svn: E155019: Can't upgrade '/mnt/hgfs/Y_Server/MainCode_m/20130411' as it is not a pre-1.7 working copy directory
svn: E000002: Can't open file '/mnt/hgfs/Y_Server/MainCode_m/20130411/.svn/entries': No such file or directory
zhangbin@Ubuntu64:/mnt/hgfs/Y_Server/MainCode_m/20130411$