首先:
# apt-get install software-properties-common
再选择版本(ubuntu版本与openstack版本存在对应支持的关系,不支持的版本可能无法安装):
Liberty
NOTE: Liberty cloud archive only supported on Trusty
sudo add-apt-repository cloud-archive:liberty
NOTE: Kilo cloud archive only supported on Trusty
sudo add-apt-repository cloud-archive:kilo
Juno
NOTE: Juno cloud archive only supported on Trusty
sudo add-apt-repository cloud-archive:juno
NOTE: Precise only - Icehouse is the base Openstack release in Trusty
sudo add-apt-repository cloud-archive:icehouse
Then run:
sudo apt-get updateto update your package listings and then proceed to install/upgrade your openstack packages.