apt-get updateで失敗。

事象

#sudo apt-get update
(中略)
ヒット http://security.debian.org stable/updates/non-free Packages
4B を 11s で取得しました (0B/s)
パッケージリストを読み込んでいます... 完了
W: There is no public key available for the following key IDs:
B5D0C804ADB11277
W: これらの問題を解決するためには apt-get update を実行する必要があるかもしれません

( `酈´)ムキー
ググる
http://72.14.235.104/search?q=cache:r4eWhBsarooJ:pc10.2ch.net/test/read.cgi/linux/1167249627/213-312+There+is+no+public+key+available+for+the+following+key+IDs:&hl=ja&ct=clnk&cd=28&gl=jp&lr=lang_ja&client=firefox

対応

#sudo apt-get install debian-archive-keyring
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了
以下のパッケージはアップグレードされます:
debian-archive-keyring
アップグレード: 1 個、新規インストール: 0 個、削除: 0 個、保留: 10 個。
10 個のパッケージが完全にインストールまたは削除されていません。
7880B 中 0B のアーカイブを取得する必要があります。
展開後に追加で 0B のディスク容量が消費されます。
(データベースを読み込んでいます ... 現在 38990 個のファイルとディレクトリがインストールされています。)
.
debian-archive-keyring を展開し、置換しています...
debian-archive-keyring (2007.02.19) を設定しています ...
gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) " not changed
gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) " not changed
gpg: key ADB11277: public key "Etch Stable Release Key " imported
gpg: Total number processed: 3
gpg: imported: 1
gpg: unchanged: 2
gpg: no ultimately trusted keys found
(後略・なんかapacheとかmysqlとかの設定ファイルをいじるとかな何とかしてた気がする。)

結果

# sudo apt-get update
取得:1 http://ftp.jp.debian.org stable Release.gpg [378B]
(略)
ヒット http://ftp.jp.debian.org unstable/main Packages/DiffIndex
取得:4 http://security.debian.org stable/updates Release.gpg [189B]
ヒット http://ftp.jp.debian.org unstable/contrib Packages/DiffIndex
(略)
ヒット http://security.debian.org stable/updates/non-free Packages
4B を 13s で取得しました (0B/s)
パッケージリストを読み込んでいます... 完了

d(´∀`)bイエー

理由はよくワカンネ。
このサイトを後で読む。
http://kmuto.jp/d/index.cgi/debian/apt-secure.htm

openCV1.0を入れる(ソースから)

環境はdebian - sarge
参考URL
http://www.imlab.sie.dendai.ac.jp/wiki/index.php?OpenCV%A4%CE%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB

ソースのダウンロード
http://sourceforge.net/projects/opencvlibrary/

wget <ソース>
tar xvzf <ダウンロードしてきたソース>

ライブラリを探す

apt-cache search libjpeg
apt-cache search libtiff
apt-cache search libpng

ライブラリのインストール

sudo apt-get install libjpeg62
sudo apt-get install libjpeg62-dev
sudo apt-get install libtiff4 libtiff4-dev
sudo apt-get install libpng3 libpng3-dev
# sudo apt-get install libgtk2.0-0 libgtk2.0-dev
# sudo apt-get install ffmpeg

cd opencv-1.0.0$
./configure
echo: write error: No space left on device

( `酈´)ムキー
ディスク容量を確保して再チャレンジ

configure: error: You have to install pkg-config to compile OpenCV with GTK+

( `酈´)ムキー
助けてapt先生!

apt-cache search pkg-config
libextutils-pkgconfig-perl - simplistic perl interface to pkg-config
libgift-dev - helper library for various giFT components [development files]
pkg-config - manage compile and link flags for libraries
xserver-xorg-dev - X.Org X server -- development files
debian:/tmp/opencv-1.0.0$ sudo apt-get install pkg-config

も一度再チャレンジ

./configure

こんなんでた

config.status: executing depfiles commands

General configuration ================================================
Compiler: g++
CXXFLAGS: -Wall -fno-rtti -pipe -O3 -g -march=i686 -ffast-math -fomit-frame-pointer

Install path: /usr/local

HighGUI configuration ================================================

Windowing system --------------
Use Carbon / Mac OS X: no
Use gtk+ 2.x: no
Use gthread: no

Image I/O ---------------------
Use libjpeg: yes
Use zlib: yes
Use libpng: yes
Use libtiff: yes
Use libjasper: no
Use libIlmImf: no

Video I/O ---------------------
Use QuickTime / Mac OS X: no
Use xine: no
Use ffmpeg: no
Use dc1394 & raw1394: no
Use v4l: yes
Use v4l2: yes

Wrappers for other languages =========================================
SWIG
Python no

Additional build settings ============================================
Build demo apps yes

Now run make ...

make

設定の編集
sudo vim /etc/profile
この行を追加:export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
sudo vim /etc/ld.so.conf
この行を追加:/usr/local/lib