CKAN 2.10 (aka master @1 Dec 2022) install on Ubuntu 22.04 - ckan/ckan GitHub Wiki

CKAN 2.10 install notes for Ubuntu 22.04


These are just some quick notes on getting CKAN 2.10 up and running on Ubuntu 22.04

Ubuntu 22.04 comes with Python 3.10 installed. Python 3.10 seems to be causing problems when installing CKAN (Beaker, distutils module) so the quickest solution is to install Python 3.9 which seems to work OK

1. Initial apt packages

  • sudo apt-get install python3-dev postgresql libpq-dev python3-pip python3-venv git openjdk-8-jdk redis-server

2. Disable IPv6

  • sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
  • sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
  • sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

3. Install Python 3.9 libraries

  • sudo apt update

  • sudo apt install software-properties-common

  • sudo add-apt-repository ppa:deadsnakes/ppa

  • sudo apt install python3.9

  • sudo apt-get install python3.9-dev

  • sudo apt-get install python3.9-venv

4. Create your virtualenv using python 3.9

/usr/bin/python3.9 -m venv /usr/lib/ckan/default