gpt4 book ai didi

macos - 无法与来自 SVN 的 MacPorts 同步

转载 作者:行者123 更新时间:2023-12-04 17:53:40 26 4
gpt4 key购买 nike

运行 10.7.4,我运行了以下命令:

mkdir -p /opt/mports
cd /opt/mports
svn checkout https://svn.macports.org/repository/macports/trunk
cd trunk/base
./configure --enable-readline
make
sudo make install
make distclean

然后我跑了 nano /opt/local/etc/macports/sources.conf , 注释掉 rsync://rsync.macports.org/release/tarballs/ports.tar并添加到 file://opt/mports/trunk/dports [default]
运行后 sudo port -d sync我收到了
DEBUG: Copying /Volumes/Storagestar/Users/themikemasterson/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
---> Updating the ports tree
Synchronizing local ports tree from file:///opt/mports/trunk/dports
DEBUG: /usr/bin/svn update --non-interactive /opt/mports/trunk/dports
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
svn: OPTIONS of 'https://svn.macports.org/repository/macports/trunk': Server certificate verification failed: issuer is not trusted (https://svn.macports.org)
Command failed: /usr/bin/svn update --non-interactive /opt/mports/trunk/dports
Exit code: 1
DEBUG: command execution failed
while executing
"system $svn_commandline"
Error: Synchronization of the local ports tree failed doing an svn update
DEBUG: Synchronization of 1 source(s) failed
while executing
"mportsync [array get global_options]"
port sync failed: Synchronization of 1 source(s) failed

通过 rsync 更新工作正常,但在使用本地源时不行。此外,我在开始结帐时可以选择接受证书,我选择永久接受它。

最佳答案

@Vortexfive 提供的答案只对了一半。照他说的做然后复制 .subversion从您的主目录到 /opt/local/var/macports/home :

$ sudo bash
# find ~/.subversion/auth -type f -exec rm -f {} \;
# cd /opt/mports/trunk
# svn update (press 'p' to store the certificate)
# cd /opt/local/var/macports/home
# cp -R ~/.subversion .
# port selfupdate

完毕!

关于macos - 无法与来自 SVN 的 MacPorts 同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11751355/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com