LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-27-2006, 07:38 PM   #1
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
kernel.org source seems to be corrupted


Hi,
first I should say that I can unzip both .tar.gz and .tar.bz2 without problems normally.

However, trying to unzip the kernel sources from kernel.org, with gzip I get,

# gunzip linux-2.4.26.tar.gz
Code:
gunzip: linux-2.4.26.tar.gz: invalid compressed data--crc error
gunzip: linux-2.4.26.tar.gz: invalid compressed data--length error
or with bzip2,

# bunzip2 linux-2.4.26.tar.bz2
Code:
bunzip2: Data integrity error when decompressing.
...
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
# bzip2 -tvv linux-2.4.26.tar.bz2
Code:
...
[27: huff+mtf data integrity (CRC) error in data
I've searched and searched and haven't found anything like this before. It does the same thing on both machines I've tried (xubuntu dapper, debian sarge), and I seem to get the same errors with different kernel versions, not only 2.4.26.
Quite confused,
 
Old 06-27-2006, 07:46 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Perhaps your download had an error. Did you try tar -xvjf linux-2.4.26.tar.bz2?
 
Old 06-27-2006, 08:20 PM   #3
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
on the debian machine, tar -xvjf linux-2.4.26.tar.bz2 outputs a long list of source files, and ends with
Code:
linux-2.4.26/include/asm-alpha/core_apecs.h

bzip2: Data integrity error when decompressing.
...
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
On the ubuntu machine, every line that is output has the name of the source file, then
Code:
Cannot change ownership to uid 573, gid 573: Operation not permitted
also, i've downloaded the source many,many times, so if the download had an error, they have all had errors. I can't get my head around this one.

Last edited by ErrorBound; 06-27-2006 at 08:37 PM.
 
Old 06-27-2006, 08:41 PM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Quote:
bzip2: Data integrity error when decompressing.
This would suggest it is in fact a corrupted archive, I tried to uncompress the same file without problems so it seems it may have been corrupted during download.

Quote:
Cannot change ownership to uid 573, gid 573: Operation not permitted
In this case try passing the --no-same-owner option. This won't make a difference unless you were extracting as root.

Hope it helps
 
Old 06-27-2006, 09:02 PM   #5
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
Thanks for the help. It seems that if I do tar -xjvf as a regular user instead of as root, the extractiong works fine. This is on the debian machine, with the same file that was "corrupted" when I tried to extract as root. Oh well, I don't understand, but I'll take it and run anyway if it works...
 
Old 06-27-2006, 09:14 PM   #6
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
maybe I just have a really nutty machine -- tried copying the unzipped directory over to /usr/src:
Code:
cp -r linux-2.4.26 /usr/src
which somehow crashes, and gives a segmentation fault. Now the machine boots partially, mounts the file system read-only, and asks for a root password to perform maintenance, but the keyboard isn't recognized.

This thing is driving me nuts.
 
Old 06-27-2006, 09:59 PM   #7
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Basically if you extract as root the default behaviour is for files inside a tar archive to retain the same UID and GID as when they were packed. In this case this kernel's files were owned by a user and group with id 573. But on your machine there is no user or group with a numeric id of 573: hence the operation is not permitted.

As for your other problem I'm afraid I have no idea. Sorry
 
Old 06-28-2006, 12:23 PM   #8
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
Thanks for the help again, I've solved it now. This is a machine that was given to me for free and all sorts of things were giving me weird errors. I tried taking out one of the memory sticks and now everything works fine. It was either bad or mismatched memory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Source files corrupted? Badut Linux From Scratch 7 05-12-2006 09:07 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Installing X.org from source... acascianelli Slackware 9 09-24-2004 12:09 PM
Corrupted Kernel Image? håkon Linux - General 2 12-23-2003 08:20 PM
open-source linuxquestions.org ashishwave LQ Suggestions & Feedback 1 05-19-2002 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration