どうしたらよいでしょうか?
cdromとか無いのですが。
>>
debian:~# aptitude install apache2
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be automatically installed:
apache2-common apache2-mpm-worker apache2-utils libapr0 libexpat1
libsasl2-modules openssl ssl-cert
The following NEW packages will be installed:
apache2 apache2-common apache2-mpm-worker apache2-utils file libapr0
libexpat1 libldap2 libmagic1 libsasl2 libsasl2-modules mime-support
openssl ssl-cert
0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/3103kB of archives. After unpacking 9169kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Media Change: Please insert the disc labeled 'Debian GNU/Linux 3.1 r3 _Sarge_ - Official i386 Binary-1 (20060904)' in the drive '/cdrom/' and press enter
<<
/etc/apt/sources.list に余分な apt-line が含まれているのが原因と思われます。おそらく
deb cdrom:
で始まる行があるので、この行を削除、削除するのが怖ければコメントアウト(行頭に#を追加)します。(ネットワークインストールならこの行は入らないはずなのが少し気になりますが。)
それから
# apt-get update
とした後、改めてaptitudeを実行すればうまくいくはずです。
deb http://
deb ftp://
で始まる行については、意味がわからないなら触らない方が身のためです。
なお、日本のミラーサーバーに対する /etc/apt/sources.list のサンプルは http://www.debian.or.jp/Near-Mirror.html にあるので、近場を選ぶといいと思います。