I have a freshly installed Ubuntu Karmic 32 bits installed in an old machine (Pentium 4 512 Mb RAM) and I'm having a severe problem with apt-get. No matter what repository I choose, I can't update the repository files. I get the following error during a
Hit http://br.archive.ubuntu.com karmic-updates/universe Sources Hit http://br.archive.ubuntu.com karmic-updates/multiverse Packages Hit http://br.archive.ubuntu.com karmic-updates/multiverse Sources 96% [4 Sources bzip2 10792960] 120kB/s 2s bzip2: Data integrity error when decompressing. Input file = (stdin), output file = (stdout) It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. Err http://br.archive.ubuntu.com karmic/universe Sources Sub-process /bin/bzip2 returned an error code (2) Downloaded 7920kB em 58s (136kB/s) W: Failed while searching http://br.archive.ubuntu.com/ubuntu/dists/karmic/universe/binary-i386/Packages.bz2 Sub-process /bin/bzip2 returned an error code (2)
I have another computer in the same network that is perfectly able do download those files and update it's package database.
Also, when I try to install any package with apt-get I get a "incorrect hash sum". For example, trying to install vim I get the following error:
E: Failed retrieving http://br.archive.ubuntu.com/ubuntu/pool/main/v/vim/vim-runtime_7.2.245-2ubuntu2_all.deb: incorrect Hash Sum
Again: I have a computer in the same network that can install any package normally, so it's not a local network problem.
Does anyone have any clue in what can be happening? I tried many different repositories.
I also had a problem installing Grub in this machine (had to resort to LILO, cause Grub wouldn't install). Can this be a hardware problem (my hard disk failing to write?) ?
I tested the memory with the standard test that comes in the ubuntu cd and everything is ok. I also tested the hard drive with
e2fsck -c and apparently there is no problem.
Really don't know what it could be. I had windows XP installed in this machine and had a similar problem: everytime I was downloading some installation file I had to do it many times until it worked. In windows it seemed that the problem happened only when it tried to access a temporary downloaded file. (i.e., when some app installer had to get some of it's files on the web).
Maybe network problem? But I had simultaneously another computer (my notebook) in the same network, with the same version of Ubuntu and the repositories where downloading everything perfectly.