memo.xight.org

日々のメモ

aptitude update で "Dynamic MMap ran out of room" エラー

Summary

/etc/apt/sources.list
/etc/apt/souces.list.d/*.list にapt-lineを書き過ぎ.

apt のキャッシュ制限を超えてしまっている.

apt のキャッシュ制限を緩くする.

/etc/apt/apt.conf.d/99cachelimit

APT::Cache-Limit "100000000";

Reference

AptGet - Debian GNU/Linux スレッドテンプレ
http://debian.fam.cx/?AptGet#content_1_47

VMWare Player に Debian/GNU Linux をインストール

パッケージをダウンロード

Linhost.infoよりダウンロード
http://linhost.info/vmware/

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth1
#iface eth1 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.XXX.YYY
network 192.168.XXX.0
netmask 255.255.255.0
broadcast 192.168.XXX.255
gateway 192.168.XXX.2

設定変更

# /etc/init.d/networking restart


/etc/resolv.conf

search localdomain
nameserver 192.168.XXX.2

DNS設定確認

% nslookup example.com
Server:         192.168.XXX.2
Address:        192.168.XXX.2#53

Non-authoritative answer:
Name:   example.com
Address: 208.77.188.166

pingで疎通確認

% ping example.com
PING example.com (208.77.188.166) 56(84) bytes of data.
64 bytes from www.example.com (208.77.188.166): icmp_seq=1 ttl=50 time=451 ms
64 bytes from www.example.com (208.77.188.166): icmp_seq=2 ttl=50 time=187 ms
64 bytes from www.example.com (208.77.188.166): icmp_seq=3 ttl=50 time=699 ms
64 bytes from www.example.com (208.77.188.166): icmp_seq=4 ttl=50 time=165 ms
64 bytes from www.example.com (208.77.188.166): icmp_seq=5 ttl=50 time=131 ms
^C
--- example.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4019ms
rtt min/avg/max/mdev = 131.993/327.439/699.992/218.143 ms

apt-lineの設定

/etc/apt/sources.list.d/stable-sources.list

# apt-line for stable
deb http://cdn.debian.or.jp/debian stable main contrib non-free
deb http://ftp.jp.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

/etc/apt/sources.list.d/testing-sources.list

# apt-line for testing
deb http://cdn.debian.or.jp/debian testing main contrib non-free
deb http://ftp.jp.debian.org/debian testing main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

/etc/apt/sources.list.d/unstable-sources.list

# apt-line for unstable
deb http://ftp.ring.gr.jp/archives/linux/debian/debian-ddtp ja/sid main
deb http://cdn.debian.or.jp/debian unstable main contrib non-free
deb http://ftp.jp.debian.org/debian unstable main contrib non-free

testing, unstableのパッケージの一部を利用する設定

/etc/apt/preferences

Package: *
Pin: release a=testing
Pin-Priority: 105

Package: *
Pin: release a=testing-proposed-updates
Pin-Priority: 110

Package: *
Pin: release a=unstable
Pin-Priority: 90

apt のキャッシュ制限を緩くする.

/etc/apt/apt.conf.d/99cachelimit

APT::Cache-Limit "100000000";

一旦 upgrade

# aptitude update
# aptitude upgrade

localeの設定

/etc/locale.gen

en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8

# locale-gen


sshdのインストール

# aptitude install openssh-server

Reference

Linhost.info - vmware
http://linhost.info/vmware/

AptGet (preferences を使う) - Debian GNU/Linux スレッドテンプレ
http://debian.fam.cx/index.php?AptGet#content_1_27