Question: how to install ckan on ubuntu?
Answer: Update Ubuntu's package index: sudo apt-get update.
Install the Ubuntu packages that CKAN requires (and 'git', to enable you to install CKAN extensions): ... 
Install the CKAN package: