Ubuntu系统SVN无法保存认证信息
# 简介
Subversion已被普遍认可并被用作开源,集中式版本控制系统,其特点是可靠性高,可作为宝贵数据的避风港。其模型和用法的简单性;以及其支持从个人到大型企业运营的各种用户和项目需求的能力。
# 解决方案
Ubuntu20.04.2系统更新软件源后,默认安装的 Subversion 是 Apache Subversion 1.1.* 的版本,这个版本的 Suvversion 在我系统上无法保存用户认证信息,以致于十分不便。我尝试了很长时间很多办法,已经没有解决,于是就有了降级 Subversion 版本的想法,最终解决了我的困扰。
# 卸载已安装的Subversion
{3:00}~/software ➭ apt remove subversion;
{3:00}~/software ➭ apt remove libsvn1;
1
2
2
注意:libsvn1 版本需要和 Subversion 版本对应,是相互依赖的。 下载链接:软件下载地址 (opens new window)
# 安装Ubuntu18版本上的Subversion
{3:00}~/software ➭ ll
total 2.0M
-rw-r--r-- 1 root root 1.2M May 3 03:54 libsvn1_1.9.7-4ubuntu1_amd64.deb
-rw-r--r-- 1 root root 815K Mar 28 2018 subversion_1.9.7-4ubuntu1_amd64.deb
{3:03}~/software ➭ dpkg -i subversion_1.9.7-4ubuntu1_amd64.deb
{3:03}~/software ➭ dpkg -i libsvn1_1.9.7-4ubuntu1_amd64.deb
1
2
3
4
5
6
7
2
3
4
5
6
7
# 验证安装
安装后查询安装版本,再去 checkout 代码,这个时候会提示让你选择是否保存认证信息,输入 yes,之后的操作就不会每次都被要求输入密码了。
{3:05}~/software ➭ svn --version
svn, version 1.9.7 (r1800392)
compiled Mar 28 2018, 08:49:13 on x86_64-pc-linux-gnu
Copyright (C) 2017 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_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.
- using serf 1.3.9 (compiled with 1.3.9)
- handles 'http' scheme
- handles 'https' scheme
The following authentication credential caches are available:
* Plaintext cache in /root/.subversion
* Gnome Keyring
* GPG-Agent
* KWallet (KDE)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
上次更新: 2023/09/16, 02:28:15