Gitolite on Ubuntu: No adminkey given

RGI picture RGI · Jul 18, 2012 · Viewed 7.3k times · Source

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.

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 [email protected]".

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?

Answer

Raymond Tau picture Raymond Tau · Jul 19, 2012

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)