Skip to content

Installing CKAN on Ubuntu

Scott edited this page Sep 6, 2017 · 13 revisions

Install Mono.

First, follow the instructions on the Mono-Project Getting Started page to add the mono-Project repository (the version of Mono in the Ubuntu repositories is out of date and will not run CKAN properly). Then,

sudo apt update
sudo apt install mono-complete

Import certificates.

With the release of Mono 3.12.0 (Release date: 13 Jan 2015), importing certificates is no longer required. Therefore, Linux/Mac users no longer need to run mozroots to get SSL working. A new command cert-sync has been added to this release, which synchronizes the Mono SSL certificate store against your OS certificate store. This tool has been integrated into the packaging system for all mono-project.com packages.

To make sure the package is installed, run:

sudo apt install ca-certificates-mono

If you want to invoke the tool manually, please follow the Mono release note instructions here:

http://www.mono-project.com/docs/about-mono/releases/3.12.0/#cert-sync 

Pre-Mono 3.12.0

  • import certificates, run:
mozroots --import --ask-remove

If you get "Couldn't retrieve the file using the supplied information." as an error then try,

wget -q 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1' -O "/tmp/certdata.txt"
mozroots --import --ask-remove --file /tmp/certdata.txt
  • Download libcurl4-openssl-dev
sudo apt install libcurl4-openssl-dev

Download.

The latest version of ckan.exe from https://github.com/KSP-CKAN/CKAN/releases

Run ckan.

mono ckan.exe

(If that doesn't work, try adding /usr/local/bin/ to mono.)

Notes:

  • On some systems CKAN might present an error/warning about not being able to set x locale modifiers. This can be fixed by running /usr/local/bin/mono LC_ALL=en_US.UTF-8 mono ckan.exe*
Clone this wiki locally