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.

  • “Updates were rejected because the tag already exists” when attempting to push in SourceTree
  • update version each time git push is done?
  • What are your pros and cons of git after having used it?
  • bad configuration option in git
  • Move a file/directory but still merge changes easily?
  • Does Git need more space than SVN?
  • 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“.

    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 \
    sudo apt-get install gitolite

    …same result

    Some version info:

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

    Any ideas?
    Does Gitolite actually run on Ubuntu 12.04?

  • Android studio gitignore won't ignore .iml
  • Various ways to remove local Git changes
  • Failed to push changes to GitHub
  • Aborted old git rebase and lost commits since the rebase started
  • Github Windows client “loading commits failed”
  • Enabling Git syntax highlighting for Mac's terminal
  • 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:

    The official docs on the repo itself also recommend installing from source:

    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/" 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.