我正在尝试将SVN迁移到Ubuntu 18.04.1 LTS上的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有类似的问题。
我们将不胜感激。
答案 0 :(得分: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/
答案 1 :(得分:0)
我看到该软件包可用。也许您需要启用更多的Ubuntu软件仓库?也许是宇宙吗?