プロが教えるわが家の防犯対策術!

Ubuntu 8.10 Server Editionを使い、サーバーとネットワークについて学習しようと思いました。

http://wiki.livedoor.jp/rockie33jp/d/ssh%a5%b5%a …Ф%ce%c0%df%c4%ea
上記アドレスのサイト等を参考にし、opensshサーバーの設定を行い、別のWindowsPCからPuTTyを使用し、公開鍵暗号方式を使用して、リモートアクセスしております。
次にntpサーバ設定のために、
$ sudo apt-get update
$ sudo apt-get install ntp
と打ち込み
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ntp-doc
The following NEW packages will be installed:
ntp
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 432kB of archives.
After this operation, 1069kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
ntp
Install these packages without verification [y/N]?

という表示がでて、yとN両方試しましたが、その後の
$ sudo vim /etc/ssh/ntp_config
を実行したのですが、

"/etc/ntp.conf" [New File]
となっており、何のデータもありません。
どこがおかしいのかわからないので教えていただきたいと思います。

A 回答 (3件)

>connection to security.ubuntu.com:80 (91.189.88.37). - connect (101 Network is unreachable)



ネットワーク繋がっていないようですが?
ドライバが読み込まれていなくてNICが動作していないとか、
設定ミスで外部に接続できないとか……。

>E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?

apt-get update

--fix-missingオプション付きで再実行してみてください。
と……。
ネットワークの接続に問題ある様子なので、後者をやっても無理だと思いますが。
# 最初に掲示されればもっと早くに……。
    • good
    • 0
この回答へのお礼

どうやらそのようです。ドライバは一応入れたのですが、つながっていなかったようです。再度試してみたいと思います。長い間ありがとうございました。

お礼日時:2009/04/24 08:00

>$ sudo vim /etc/ntp.conf


とコマンド入力して、
>"/etc/ntp.conf" [New File]
ならば、ファイルが無いということになるでしょうからパッケージからのインストールは成功していないのでしょう。

で、dpkgコマンドではインストールされていなかったか確認したのでしょうか?
ARMEL版のdebian 5.0.1ですが…
~# dpkg -L ntp
/.
/var
/var/lib
/var/lib/ntp
/var/log
/var/log/ntpstats
/etc
/etc/ntp.conf
/etc/init.d
/etc/init.d/ntp
 :
と、/etc/ntp.confは存在していますが……。

この回答への補足

返答ありがとうございます。
Install these packages without verification [y/N]?
の後に表示される文ものせますが、Wr5様のおっしゃる通り、どうやらエラーでインストールできていないようです。

Install these packages without verification [y/N]? y
Err http://jp.archive.ubuntu.com hardy-updates/main ntp 1:4.2.4p4+dfsg-3ubuntu2. 1
Cannot initiate the connection to jp.archive.ubuntu.com:80 (160.26.2.179). - c onnect (101 Network is unreachable)
Err http://security.ubuntu.com hardy-security/main ntp 1:4.2.4p4+dfsg-3ubuntu2.1
Cannot initiate the connection to security.ubuntu.com:80 (91.189.88.37). - con nect (101 Network is unreachable)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/nt … sg-3ubuntu2.1_i386.deb Cannot initiate the connection to security.ubuntu.com:80 (91.189.88.37). - connect (101 Network is unreachable)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mis sing?

これ以上解決できないようであれば、書籍等で学習し直そうと思います。

補足日時:2009/04/23 10:44
    • good
    • 0

Ubuntu使ったことありませんし、debian系は不慣れですが…。



>WARNING: The following packages cannot be authenticated!

http://www.google.co.jp/search?hl=ja&q=following …
GPGキー…のようです。

>Install these packages without verification [y/N]?

GPGキーの検証を行わず(改ざんされているか確認せず)にインストールしてよいか?
という質問のようです。

で……
>$ sudo vim /etc/ssh/ntp_config
>"/etc/ntp.conf" [New File]
どっちのファイルなんでしょうか?
opensshにntp_configという設定ファイルは無いと記憶していますが。
ssh_configかsshd_configならありますが…。

http://watermans-linuxtips.blogspot.com/2008/10/ …
>インストールされたパッケージのファイル名を一覧
で、ntpパッケージで設定ファイルがインストールされていますか?

この回答への補足

すみません。
$ sudo vim /etc/ssh/ntp_config
ではなくて
$ sudo vim /etc/ntp.conf
です。

補足日時:2009/04/21 16:08
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!