Mac Sonoma系统下SVN仅能通过sudo执行的问题求助
SVN普通用户执行HTTP/DAV请求失败,sudo可正常执行
我通过brew安装了Subversion,版本信息如下:
svn, version 1.14.3 (r1914484) compiled Dec 9 2023, 13:27:10 on arm-apple-darwin23.5.0 Copyright (C) 2023 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.10 (compiled with 1.3.10) - handles 'http' scheme - handles 'https' scheme The following authentication credential caches are available: * Mac OS X Keychain
过去3个月我无需sudo就能正常执行svn命令(如svn info、svn checkout、svn log等),但从昨天开始,普通用户身份执行:
svn info http://svn.apache.org/repos/asf/felix
返回错误:
svn: E175003: The server at 'http://svn.apache.org/repos/asf/felix' does not support the HTTP/DAV protocol
执行:
svn list -v http://svn.apache.org/repos/asf/felix
返回错误:
svn: E130005: XML Parsing failed: Unexpected root element 'options-response'
但使用sudo执行相同命令却能正常返回结果:
Path: felix URL: http://svn.apache.org/repos/asf/felix Relative URL: ^/felix Repository Root: http://svn.apache.org/repos/asf Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 Revision: 1918078 Node Kind: directory Last Changed Author: pauls Last Changed Rev: 1890953 Last Changed Date: 2021-06-21 18:44:32 -0300 (Mon, 21 Jun 2021)
我已经尝试了以下方法,但问题仍未解决:
- 更新系统至最新版本Sonoma 14.5 (23F79)
- 重新安装svn和sqlite
- 重启机器
- 对
/opt/homebrew/Cellar执行chown操作 - 已在
sudo visudo中配置admin组,且我属于该组 - 排除代理问题,在个人网络环境测试结果一致
内容的提问来源于stack exchange,提问作者gumaath
相关产品推荐
相关产品推荐

