ログインしてさらにmixiを楽しもう

コメントを投稿して情報交換!
更新通知を受け取って、最新情報をゲット!

CentOSコミュの[Errno -1] Header is not complete.?

  • mixiチェック
  • このエントリーをはてなブックマークに追加
はじめまして、エラーの対応方法に着いてご意見をください。

CentOS 5.1が入っている、すっぴんの(ただ入っているだけでこれまで使われていない)ホストがあります。
アップデートしようとしたわけですが、エラーがでてアップデートできません。

# yum -y update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for chkconfig to pack into transaction set.
chkconfig-1.3.30.1-2.i386 100% |=========================| 24 kB 00:00
http://www.ftp.ne.jp/Linux/packages/CentOS/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
chkconfig-1.3.30.1-2.i386 100% |=========================| 24 kB 00:00
http://ftp.jaist.ac.jp/pub/Linux/CentOS/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
  :
  以下同文
  :
chkconfig-1.3.30.1-2.i386 100% |=========================| 24 kB 00:00
http://ftp.iij.ad.jp/pub/linux/centos/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
Error: failure: CentOS/chkconfig-1.3.30.1-2.i386.rpm from base: [Errno 256] No more mirrors to try.

現在いる場所はネットワークが細いのですが、外部到達性はいちおう確保されています。(DNSで引ける外部ホストにpingは通る。telnet www.asahi.com 80などとした場合、相手ホストからConnectメッセージは返ってくる。)
「[Errno -1] Header is not complete」でぐぐってもどうもよくわかりません。

・何が原因でしょうか
・どう対応したらよいでしょうか
・もういっそ新しいのをさっさと入れ直した方がまし?

よろしくお願いいたします。

コメント(12)

特定のプロキシサーバを通すとそんな事象が起きた気がします。

プロキシサーバを使わないアクセスが可能なら、それを試してみては。
「yum clean all」をやってからupdateを試してみてはどうだろう。
ご返事ありがとうございます。

yum clean allですが、やってみましたが、同様の結果でした:
# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
# yum -y update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.9 kB 00:00
base 100% |=========================| 2.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 107 kB 00:00
################################################## 325/325
primary.xml.gz 100% |=========================| 141 kB 00:00
################################################## 278/278
primary.xml.gz 100% |=========================| 893 kB 00:00
################################################## 2535/2535
primary.xml.gz 100% |=========================| 201 B 00:00
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for chkconfig to pack into transaction set.
chkconfig-1.3.30.1-2.i386 100% |=========================| 24 kB 00:00
http://ftp.iij.ad.jp/pub/linux/centos/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.

特にどこのプロキシも通していませんが、外部との間にファイアウォールがあります。
http://ftp.riken.jp/Linux/centos/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm

これをダウンロードして

「rpm -ivh chkconfig-1.3.30.1-2.i386.rpm」

をやってから「yum -y update」でどうだろう。
やってみました。結果は基本的に同じかもしれないです。chkconfigはいけたのでgnutlsを取りにって同様のエラー、ということでしょうか。

$ wget http://ftp.riken.jp/Linux/centos/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm
--11:46:23-- http://ftp.riken.jp/Linux/centos/5.4/os/i386/CentOS/chkconfig-1.3.30.1-2.i386.rpm
Resolving ftp.riken.jp... 134.160.38.1
Connecting to ftp.riken.jp|134.160.38.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 162614 (159K) [text/plain]
Saving to: `chkconfig-1.3.30.1-2.i386.rpm'

100%[=======================================>] 162,614 64.6K/s in 2.5s

11:46:26 (64.6 KB/s) - `chkconfig-1.3.30.1-2.i386.rpm' saved [162614/162614]

$ su
Password:
# rpm -Uvh chkconfig-1.3.30.1-2.i386.rpm
warning: chkconfig-1.3.30.1-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:chkconfig ########################################### [100%]
# rpm -qa |grep chkconfig
chkconfig-1.3.30.1-2
# yum list installed |grep chkconfig
chkconfig.i386 1.3.30.1-2 installed
# yum -y update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.9 kB 00:00
base 100% |=========================| 2.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for gnutls to pack into transaction set.
gnutls-1.4.1-3.el5_3.5.i3 100% |=========================| 7.1 kB 00:00
http://mirror.nus.edu.sg/centos/5.4/updates/i386/RPMS/gnutls-1.4.1-3.el5_3.5.i386.rpm: [Errno -1] Header is not complete.
Trying other mirror.
gnutls-1.4.1-3.el5_3.5.i3 100% |=========================| 7.1 kB 00:00
http://rsync.atworks.co.jp/centos/5.4/updates/i386/RPMS/gnutls-1.4.1-3.el5_3.5.i386.rpm: [Errno -1] Header is not complete.
入っているのが5.1なのに5.4向けのファイルをインストールしようとしてるからとかでは?
皆様ご返事ありがとうございます。

・yum updateするのは、事実上のOSバージョンアップではないのでしょうか
・とはいうものの、いきなり5.1>5.4ははなくて5.1>2>3>4するべき
・/etc/yum.d/以下のレポジトリの位置指定を5.2用に書き換えたらいけるのでしょうか? それとももっと正しいやり方がありますか?
ご返事どうもありがとうございます。どうも新しいのを入れなおした方が良さそうですね。

ちなみにビジネスというわけではありません。RedHat系は以前からさわっていますが、CentOSディストリビューションにはあまりなじみがなかったので、こちらの識者の皆様を頼りにさせていただきましたが、すこし安易に質問したかもしれません。不興を招いたようでしたらごめんなさい。
というか単純にupdateとupgradeをごっちゃにしていませんか?

upgradeが通るかどうかは私は知りませんが。

ログインすると、みんなのコメントがもっと見れるよ

mixiユーザー
ログインしてコメントしよう!

CentOS 更新情報

CentOSのメンバーはこんなコミュニティにも参加しています

星印の数は、共通して参加しているメンバーが多いほど増えます。