最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Ubuntu下安装svn

Ubuntu crifan 6688浏览 0评论

【背景】

折腾:

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译pcre

期间,需要用到svn下载源码,所以去在Ubuntu下安装svn。

【折腾过程】

1.直接去安装,结果找不到svn:

crifan@ubuntu:pcre$ sudo apt-get install svn
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package svn

2.然后去搜索,有哪些:

crifan@ubuntu:pcre$ apt-cache search svn
bzr - easy to use distributed version control system
bzr-doc - easy to use distributed version control system (documentation)
kdesdk-kio-plugins - transparent Subversion access and Perl documentation KIO slaves
libwibble-dev - Library of various useful C++ code
python-subversion-dbg - Python bindings for Subversion (debug extension)
python-svn - A(nother) Python interface to Subversion
python-svn-dbg - A(nother) Python interface to Subversion (debug extension)
docbookwiki - web application to display and edit DocBook documents online
ack-grep - grep-like program specifically for large source trees
backup-manager - command-line backup tool
bzr-builddeb - bzr plugin for Debian package management
bzr-svn - Bazaar plugin providing Subversion integration
cia-clients - clients scripts for CIA commit notification on IRC
config-manager - manage directories with Arch, Bazaar, CVS, HTTP, FTP and/or Subversion
cvs2svn - Convert a cvs repository to a subversion, bazaar or git repository
ditz - distributed issue tracker
drush-make - Drupal source code deployment tool
easygit - git for mere mortals
esvn - frontend for the Subversion revision system written in Qt
esvn-doc - documentation for esvn
fusionforge-plugin-scmsvn - collaborative development tool - Subversion plugin
fuzzyocr - spamassassin plugin to check image attachments
gcc-snapshot - A SNAPSHOT of the GNU Compiler Collection
git-cvs - fast, scalable, distributed revision control system (cvs interoperability)
git-svn - fast, scalable, distributed revision control system (svn interoperability)
gitstats - statistics generator for git repositories
hgsvn - Scripts to work locally on Subversion checkouts using Mercurial
kdesrc-build - tool for building KDE from its source repositories
kdesvn - Subversion client with tight KDE integration
kdesvn-dbg - debug symbols for kdesvn
kdesvn-kio-plugins - Subversion I/O slaves for KDE
libavbin0 - cross-platform media decoding library
libelementary-svn-09 - EFL-based widget set library
libgradle-wrapper-java - Groovy based build system - Wrapper plugin
libnb-svnclientadapter-java - High-level Java API to subversion
libnb-svnclientadapter-java-doc - High-level Java API to subversion javadoc
libsvn-dump-perl - module for parsing Subversion dumps
libsvn-hooks-perl - framework for implementing Subversion hooks
libsvn-look-perl - module providing access to svnlook data
libsvn-notify-mirror-perl - Keep a mirrored working copy of a repository path
libsvn-notify-perl - Subversion activity notification
libsvn-svnlook-perl - Module to aid using svnlook in subversion hooks
libsvnclientadapter-java - High-level Java API for Subversion (library)
libsvnclientadapter-java-doc - High-level Java API for Subversion (documentation)
libsvncpp-dev - Subversion C++ library (development files)
libsvncpp3 - Subversion C++ shared library
libsvnkit-java - pure Java Subversion client library
libsvnkit-java-doc - documentation for libsvnkit-java
libsvnqt-dev - Qt wrapper library for Subversion (development files)
libsvnqt6 - Qt wrapper library for Subversion
lua5.1-policy-dev - Lua 5.1 Debian policy - template and scripts
moap - Swiss army knife for project maintainers and developers
nautilus-script-collection-svn - Nautilus subversion management scripts
php5-svn - PHP Bindings for the Subversion Revision control system
python-opster - python command line parsing speedster
python-rope - Python refactoring library
rapidsvn - GUI client for Subversion
rssh - Restricted shell allowing scp, sftp, cvs, svn, rsync or rdist
ruby-pkg-tools - Tools for building Debian Ruby packages
rush - restricted user shell
ssvnc - Enhanced TightVNC viewer with SSL/SSH tunnel helper
statsvn - SVN repository statistics
svn-all-fast-export - fast-import based converter to convert repos from svn to git
svn-autoreleasedeb - Automatically release/upload debian packages from SVN
svn-buildpackage - helper programs to maintain Debian packages with Subversion
svn-load - An enhanced import facility for Subversion
svn-workbench - A Workbench for Subversion
svnkit - pure Java Subversion client
svnmailer - extensible Subversion commit notification tool
thunar-vcs-plugin - VCS plugin for Thunar file manager
websvn - interface for Subversion repositories written in PHP
xmotd - a message of the day browser for X
xxdiff-scripts - graphical file/directory comparison and merge tool - scripts
devscripts - scripts to make the life of a Debian Package maintainer easier
libsvn-dev - Development files for Apache Subversion libraries
libsvn-doc - Developer documentation for libsvn
libsvn-perl - Perl bindings for Apache Subversion
libsvn1 - Shared libraries used by Apache Subversion
python-subversion - Python bindings for Apache Subversion
subversion - Advanced version control system
subversion-tools - Assorted tools related to Apache Subversion
texlive-latex-extra - TeX Live: LaTeX supplementary packages
backupninja - lightweight, extensible meta-backup system
jed-extra - collection of useful Jed modes and utilities
libapache2-svn - Apache Subversion server modules for Apache httpd
liblua5.1-svn-dev - Transitional package for lua-svn-dev
liblua5.1-svn1 - Transitional package for lua-svn
libpadre-plugin-svn-perl - simple SVN interface for Padre
libsvn-class-perl - perl object oriented interface for subversion workspaces
libsvn-java - Java bindings for Apache Subversion
libsvn-ruby - Ruby bindings for Apache Subversion (dummy package)
libsvn-ruby1.8 - Ruby bindings for Apache Subversion (dummy package)
libsvn-web-perl - Subversion repository web frontend
libsvnqt7 - Qt wrapper library for Subversion
libwsdl2c-java - stripped down axis2 source bundle suitable for running WSDL2C
lua-svn - Subversion library for the Lua language
lua-svn-dev - Development files for the Subversion library for the Lua language
mr - Multiple Repository management tool
rabbitvcs-cli - Command line interface for RabbitVCS
rabbitvcs-core - Easy version control
rabbitvcs-gedit - Gedit extension for RabbitVCS
rabbitvcs-nautilus - Nautilus extension for RabbitVCS
redmine - flexible project management web application
ruby-svn - Ruby bindings for Apache Subversion
svn2cl - Generate a GNU-style ChangeLog from Subversion repository history
vim-scripts - plugins for vim, adding bells and whistles

3.看到有subversion,然后去安装,结果出错:

【已解决】Ubuntu中执行sudo apt-get install出错:E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

4.然后再去安装subversion:

crifan@ubuntu:Desktop$ sudo apt-get install subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libapr1 libaprutil1 libdb4.8 libsvn1
Suggested packages:
  subversion-tools db4.8-util
The following NEW packages will be installed:
  libapr1 libaprutil1 libdb4.8 libsvn1 subversion
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,013 kB of archives.
After this operation, 5,450 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.163.com/ubuntu/ precise/main libdb4.8 i386 4.8.30-11ubuntu1 [711 kB]
Get:2 http://mirrors.163.com/ubuntu/ precise/main libapr1 i386 1.4.6-1 [91.3 kB]
Get:3 http://mirrors.163.com/ubuntu/ precise/main libaprutil1 i386 1.3.12+dfsg-3 [75.4 kB]            
Get:4 http://mirrors.163.com/ubuntu/ precise-security/main libsvn1 i386 1.6.17dfsg-3ubuntu3.3 [840 kB]
Get:5 http://mirrors.163.com/ubuntu/ precise-security/main subversion i386 1.6.17dfsg-3ubuntu3.3 [295 kB]
Fetched 2,013 kB in 18s (107 kB/s)                                                                    
Selecting previously unselected package libdb4.8:i386.
(Reading database ... 187429 files and directories currently installed.)
Unpacking libdb4.8:i386 (from .../libdb4.8_4.8.30-11ubuntu1_i386.deb) ...
Selecting previously unselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.6-1_i386.deb) ...
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_i386.deb) ...
Selecting previously unselected package libsvn1:i386.
Unpacking libsvn1:i386 (from .../libsvn1_1.6.17dfsg-3ubuntu3.3_i386.deb) ...
Selecting previously unselected package subversion.
Unpacking subversion (from .../subversion_1.6.17dfsg-3ubuntu3.3_i386.deb) ...
Processing triggers for man-db ...
Setting up libdb4.8:i386 (4.8.30-11ubuntu1) ...
Setting up libapr1 (1.4.6-1) ...
Setting up libaprutil1 (1.3.12+dfsg-3) ...
Setting up libsvn1:i386 (1.6.17dfsg-3ubuntu3.3) ...
Setting up subversion (1.6.17dfsg-3ubuntu3.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
crifan@ubuntu:Desktop$ 

5.然后试试是否可用,确定是svn可用了(虽然没有下载下来源码,因为是服务器连不上):

crifan@ubuntu:pcre$ svn co svn://vcs.exim.org/pcre/code/trunk pcre
svn: Can't connect to host 'vcs.exim.org': Network is unreachable
crifan@ubuntu:pcre$ svn --help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.17.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
  or 'svn --version --quiet' to see just the version number.

Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
crifan@ubuntu:pcre$ svn --version
svn, version 1.6.17 (r1128011)
   compiled Jun 26 2013, 20:44:02

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

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

crifan@ubuntu:pcre$ svn -V
svn: invalid option character: V
Type 'svn help' for usage.
crifan@ubuntu:pcre$ svn -v
Subcommand argument required
Type 'svn help' for usage.
crifan@ubuntu:pcre$ svn --version
svn, version 1.6.17 (r1128011)
   compiled Jun 26 2013, 20:44:02

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

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

 

【总结】

Ubuntu下,安装svn,不是:

sudo apt-get install svn 

而是:

sudo apt-get install subversion

转载请注明:在路上 » 【已解决】Ubuntu下安装svn

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.172 seconds, using 22.17MB memory