安装的时候遇到问题
root@ubuntu:~# sudo add-apt-repository
ppa:nginx/stable
sudo: add-apt-repository: command not found
经过 搜索才知道 add-apt-repository 是由 Python-software-properties 这个工具包提供的
所以要先安装python-software-properties 才能使用 add-apt-repository
apt-get install python-software-properties
当然 添加源 可以直接 编辑/etc/apt/source.list这个文件
echo
"debhttp://ppa.launchpad.NET/nginx/stable/ubuntu lucid main">>
/etc/apt/sources.list
不过通过这中方式的话要要手工添加该源的keyserver
而add-apt-repository 就可以把添加源可添加apt-key的工作全部作了
之后就是apt-get update