gpt4 book ai didi

git-svn 不适用于 Ubuntu 18.04.1 LTS

转载 作者:行者123 更新时间:2023-12-02 20:16:20 26 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 18.04.1 LTS 上将 SVN 迁移到 Git。我已经安装了 git:

sudo apt-get install git-core

其中似乎不包含 git-svn。我尝试过:

sudo apt-get update

然后:

sudo apt-get install git-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package git-svn is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'git-svn' has no installation candidate

我也尝试过 git-svn not a git command? :

sudo add-apt-repository ppa:git-core/ppa
...
sudo apt-get update
...
sudo apt-get install git-svn
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git-svn : Depends: git (> 1:2.19.0) but 1:2.17.1-1ubuntu0.1 is to be installed
Depends: libsvn-perl but it is not installable
Depends: libterm-readkey-perl but it is not installable
E: Unable to correct problems, you have held broken packages.

似乎https://askubuntu.com/questions/1002376/cant-install-package-with-apt?rq=1也有类似的问题。

非常感谢您的帮助。

最佳答案

您可以通过执行以下命令轻松安装:

sudo apt-get install git git-svn

之前

user@xxx:/mnt/d/Sandbox/SVN_EXPORT$ git svn clone  http://svn.xyz.com/u-a --no-metadata -A authors-transform.txt --stdlayout ./temp
git: 'svn' is not a git command. See 'git --help'.

Did you mean one of these?
fsck
mv
show

之后

user@xxx:/mnt/d/Sandbox/SVN_EXPORT$ git svn clone  http://svn.xyz.com/u-a --no-metadata -A authors-transform.txt --stdlayout ./temp
Initialized empty Git repository in /mnt/d/Sandbox/SVN_EXPORT/temp/.git/

关于git-svn 不适用于 Ubuntu 18.04.1 LTS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52310564/

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