Gitolite on Ubuntu: No adminkey given

I have what I would call a “vanilla” install on Ubuntu Server 12.04LTS (downloaded and installed on the 15th) on Hyper-V.

All seems well with Ubuntu. Synthetic NIC is great. No issues detected.

  • Changing GitHub User 'Name' (not to be confused with 'Username') via Command-line?
  • Unable to push to git Repository. It hangs after “Writing Objects: 100%”
  • Why does GitHub recommend HTTPS over SSH?
  • The vim command line launched by git mergetool
  • Can Git be used as an approval system?
  • Is there a URL in github that will show exactly the hash of the current HEAD?
  • My plan is to use it as a central GIT repository using Gitolite.

    I have SSh correctly installed (at least I think it is because I can “ssh myaccount@mydomain.com“.

    The key was generated on my Mac in Terminal and copied up. That worked fine.

    My problem is that when I attempt to install Gitolite I get the following error:

       No adminkey given - not setting up gitolite.
    

    These are the commands I used to perform the install:

    sudo apt-get install git-core
    sudo apt-get install gitolite
    

    I’ve also tried this:

    sudo apt-get install git-core
    
    sudo adduser \
      --system \
      --shell /bin/bash \
      --gecos 'git version control' \
      --group \
      --disabled-password \
      --home /home/git \
    git
    
    sudo apt-get install gitolite
    

    …same result

    Some version info:

    Git core: 1:1.7.9.5-1
    Gitolite: 2.2-1
    Ubuntu: 12.04
    

    Any ideas?
    Does Gitolite actually run on Ubuntu 12.04?

  • Specify '--remote' Heroku app based on git branch
  • Git - Common way to use branch (newbie)
  • Where should environment-specific values be saved in a Laravel 5 application?
  • How do you use git in “solo-development” (without team)?
  • gitignore for folder of eclipse projects
  • how to get files out of the git tab if rstudio
  • 4 Solutions collect form web for “Gitolite on Ubuntu: No adminkey given”

    I think the package may be broken.

    You may be better off installing it from source.

    Try following this tutorial:
    http://www.bigfastblog.com/install-gitolite-to-manage-your-git-repositories

    The official docs on the repo itself also recommend installing from source:
    https://github.com/sitaramc/gitolite

    Yes, when you first install gitolite through apt-get, the error will be shown, as the setup did not ask you for your gitolite admin public key. Then, after setup is finished, you can run the command sudo dpkg-reconfigure gitolite and it will prompt you to provide:

    1. The user which gitolite will use
    2. The directory which that user use to store all its files (gitolite config, gitolite managed repositories, etc)
    3. (And the most important) the public key of the user whom will be the first administrator in gitolite, which you may either put the public key (just a single line starts with ssh-rsa or path to the file which contains the public key)

    You need to provide your personal public key (the one you use to connect to the box itself) in the installation. I don’t know how exactly it works when using apt, but the gitolite docs are extensive and should contain the information you need.

    You being able to ssh with your account has nothing to do with gitolite, if you install gitolite with the account ‘git‘.

    If you are using /home/git to manage git, then you need to generate a public/private key there (/home/git/.ssh), and and hope the apt-get process does the gitolite setup -pk "${H}/.ssh/id_rsa.pub" part of the gitolite installation.

    … Or you can install it manually in a directory of your choosing: that is what I do.

    Again, all the ssh access to the Git server will be done as user ‘git‘ (and using the public keys of the users who have previously been registered in Gitolite).

    And yes, gitolite runs just fine on Ubuntu12.04.

    Git Baby is a git and github fan, let's start git clone.