chrootしてさらにapt-get

とりあえず昨日の続きapt-getができなかったけど、とりあえずできるようになった。
昨日のchroot前にとりあえずinterfacesの設定。

# vi /mnt/etc/network/interfaces

# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 0.0.0.0
auto eth0

いま気づいたがべつにDHCPでもよかったかも。
んで続いてDNSの設定

vi mnt/etc/resolv.conf

# generated by NetworkManager, do not edit!
nameserver 192.168.1.1

これをやって昨日の

chroot /mnt
mount /proc /proc -t proc

でapt-getができた。
ただapt-get updateができなかった。

# apt-get update
Get:1 http://ftp.jp.debian.org etch Release.gpg [378B]
Get:2 http://ftp.jp.debian.org etch Release [58.2kB]
Get:3 http://security.debian.org etch/updates Release.gpg [189B]
Get:4 http://security.debian.org etch/updates Release [37.6kB]
Ign http://ftp.jp.debian.org etch Release
Get:5 http://ftp.jp.debian.org etch/main Packages [5449kB]
Ign http://security.debian.org etch/updates Release
Get:6 http://security.debian.org etch/updates/main Packages [315kB]
Get:7 http://security.debian.org etch/updates/contrib Packages [20B]
Get:8 http://security.debian.org etch/updates/main Sources [51.0kB]
Get:9 http://ftp.jp.debian.org etch/main Sources [1653kB]
Get:10 http://security.debian.org etch/updates/contrib Sources [1283B]
Fetched 7566kB in 57s (131kB/s)
Reading package lists... Done
W: GPG error: http://ftp.jp.debian.org etch Release: Unknown error executing gpgv
W: GPG error: http://security.debian.org etch/updates Release: Unknown error executing gpgv
W: You may want to run apt-get update to correct these problems

なんだ?とりあえずaptitude upgradeをやってみる。