SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to install a package, jdk6-i586.
After downloading the file in winxp, i put the file in a pendrive and then copy this file to sw.
But allways i have a error with the file, file corrupted error code 2. I have been copying the file one and other time, burning the files in winxp in a cd and copying in sw, and one and other time with the pendrive, all the files are corrupted, only one package works was this: lshw-B.02.12.01-i486-1mfb.tgz
What can be the problem? why the files are being corrupted all the time. The pendrive is fat, can be a problem this? In windows appear to be fine the file, if i copy the file descompresed can how can install the package (maybe this way works).
I am very desesperated, i dont know what can be the problem.
The cpu is this, a i586 must perfectly works in this.
*-cpu
description: CPU
product: Pentium III (Katmai)
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.7.3
slot: Slot-1
size: 450MHz
capacity: 800MHz
width: 32 bits
clock: 100MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up
Windows puts CR/LF pairs at the end of all lines in uncompressed files.
I suspect you are falling victim to that, with a minor chance that you may also have fallen victim to the 8.3 file naming format (if your pen drive is not VFAT).
In any case, transfer the files compressed to avoid the problem, only decompress them on the Slackware box. Have a care, though... if you compress files in Windows, then the files in the archive will also have those embedded evil CR/LF pairs when you uncompress them in Slackware.
The tedious way to fix it is to edit all of the text files in vi's binary mode, and strip all of the extraneous CRs. The easy way to do it is to avoid Windows altogether and download the files from within Slackware.
The pendrive must be a vfat, i am working with winxp here.
About cr/lf, the file was downloaded from slackware ftp and copied compresed, windows do some modification to compresed files?.
Yes, sometimes. I don't know what the exact mechanism was, but I've had trouble before transferring compressed files that were originally downloaded in Windows. I haven't done it for a long time but if I recall correctly it had something to do with the save file dialog's default file types.
Get the files via ftp from within Slackware and I would venture a bet that they will decompress correctly.
My first question would be, why are you not downloading the files under Slackware directly? My second question would be, why the need for the pen drive?
If you are dual booting, you can copy a file from an NTFS partition to a Linux partition, and not lose anything in translation. I have done so numerous times, and have had no difficulty whatsoever.
Also, you can write to NTFS partitions, which is very convenient. You need to do some set up work to make it happen, but it is very doable. I do it with three different machines, and they all work perfectly.
The only problem I have ever had with NTFS volumes under Slackware is when the computer is shut down incorrectly (as in power goes out). Then, in order to get the NTFS volumes working again under Linux, I had to switch to Windoze to have it fix any problems with the NTFS partitions. Once that was done, full NTFS support came back.
Long and short: you are adding more steps than are really necessary. Either download the files directly under Slackware, or copy them from your NTFS partition to your Linux partition. Cut out the middle pen drive completely.
Blessed be!
Pappy
Last edited by pappy_mcfae; 12-19-2007 at 03:39 AM.
Reason: change verb tense and subject-predicate agreement
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.