おっかしいなぁと、いろいろ眺めたたら、
PPA(Personal Package Archives)を使ってた。
Ubuntu開発者の方々以外にも、
有志の方々が独自パッケージや最新パッケージを作ってくれています。
今回は、NginxをPPAから使えるようにしてみます。
Ubuntu公式
nginx version: nginx/0.7.65
PPA
nginx version: nginx/1.0.11
まず、
https://launchpad.net/
ここでnginxを検索します。
Stable Stable version of nginx.
いろんなNginxがありますが、こいつを使わせていただきましょう。
Technical details about this PPA
deb http://ppa.launchpad.net/nginx/stable/ubuntu YOUR_UBUNTU_VERSION_HERE main
deb-src http://ppa.launchpad.net/nginx/stable/ubuntu YOUR_UBUNTU_VERSION_HERE main
とあるのでこいつを、source.list.d配下に置きましょう。
僕の場合は、lucid(10.04)なので、
# vi /etc/apt/sources.list.d/ppa-nginx.list deb http://ppa.launchpad.net/nginx/stable/ubuntu/ lucid main deb-src http://ppa.launchpad.net/nginx/stable/ubuntu/ lucid main
となります。
ここでこのままアップデートすると
# apt-get update パッケージリストを読み込んでいます... 完了 W: GPG error: http://ppa.launchpad.net lucid Release: 公開鍵を利用できないため、以下の署名は検証できませんでした: NO_PUBKEY F031C70E5C811BC8
となり、エラーするのでキーを追加します。
以下のコマンドでキーを追加することができます。
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F031C70E5C811BC8 xecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys F031C70E5C811BC8 gpg: 鍵5C811BC8をhkpからサーバーkeyserver.ubuntu.comに要求 gpg: 鍵5C811BC8: 公開鍵“Launchpad PPA for Hannes Magnusson”を読み込みました gpg: 処理数の合計: 1 gpg: 読込み: 1 (RSA: 1) # # apt-get update # apt-cache show nginx Package: nginx Priority: optional Section: httpd Installed-Size: 88 Maintainer: Jose Parrella <bureado@debian.org> Architecture: all Version: 1.0.11-1ppa1~lucid Depends: nginx-full | nginx-light Filename: pool/main/n/nginx/nginx_1.0.11-1ppa1~lucid_all.deb Size: 54118 MD5sum: be9b957a9883ab59a2feaf373d25b326 SHA1: 1a29ed984a5e04c235db4ba84cd1b4d124c92b82 Description: small, but very powerful and efficient web server and mail proxy Nginx (engine x) is a web server created by Igor Sysoev and kindly provided to the open-source community. This server can be used as standalone HTTP server and as a reverse proxy server before some Apache or another big server to reduce load to backend servers by many concurrent HTTP-sessions. . This is a dummy package that selects nginx-full by default, but also can be installed with nginx-light for upgrading to nginx-light directly. # # apt-get install nginx
これで最新のNginxが使えるようになります。
[tegaki]気が付かんかったw[/tegaki]