[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem updating debian 6



On Wed, May 23, 2012 at 09:20:55AM +0200, David Seira wrote:
> Yes. I have another servers with the same configuration in another places.
> 
> > Under  "/var/lib/apt/lists/" is where the index files are kept.
> > What I'd do is delete those:
> > i.e. "rm /var/lib/apt/lists/*" then do apt-get update again.
> >
> > Then worry about the GPG warnings after.
> >
> 
> I remove the index files in the directory you said but the result is the same:

This is getting weirder and weirder.

There are some other things you can try, but if they don't work or
something else strange happens as a consequence you could bugger up your
package management system, and I don't want to be responsible for that.

i.e. under /var/lib/dpkg/available.
man dpkg 

E.g see:
http://ubuntuforums.org/showthread.php?t=1752868


What does "ls -al /var/lib/apt/lists/" show now?

Can you spare another server for testing purposes?

Do the same on another server, with exactly the same sources list.

You're sure you haven't changed anything on this server recently, i.e.
before this problem started happening? Even if it seems totally
unrelated. E.g, on Google someone had a problem similar to this when
they changed the language (probably locales)

> Err http://security.debian.org squeeze/updates/main amd64 Packages
>   Sub-process /bin/bzip2 returned an error code (2)
> Fetched 13.7 kB in 1s (7933 B/s)

Mmmm,
I'd expect to see something like:
Hit http://security.debian.org squeeze/updates InRelease

> W: Failed to fetch
> http://ftp.es.debian.org/debian/dists/squeeze/main/source/Sources.bz2
> Sub-process /bin/bzip2 returned an error code (2)
> W: Failed to fetch
> http://ftp.es.debian.org/debian/dists/squeeze/main/binary-amd64/Packages.bz2
>  Sub-process /bin/bzip2 returned an error code (2)
> W: Failed to fetch
> http://ftp.es.debian.org/debian/dists/squeeze-updates/main/source/Sources.bz2
>  Sub-process /bin/bzip2 returned an error code (2)
> W: Failed to fetch
> http://ftp.es.debian.org/debian/dists/squeeze-updates/main/binary-amd64/Packages.bz2
>  Sub-process /bin/bzip2 returned an error code (2)
> W: Failed to fetch
> http://security.debian.org/dists/squeeze/updates/main/source/Sources.bz2
>  Sub-process /bin/bzip2 returned an error code (2)
> W: Failed to fetch
> http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages.bz2
>  Sub-process /bin/bzip2 returned an error code (2)

> E: Some index files failed to download, they have been ignored, or old
> ones used instead.

Just for testing, comment out all entries in your sources list, except
for 
deb http://security.debian.org/ squeeze/updates main
(it cleans the screen for easier reading.)

what does:
cat /etc/apt/sources.list
show?

what does:
apt-get update
show?

I want to see **all** the output please, even if you have to use
typescript.


What does:
ls -al /etc/apt/apt.conf.d/
show?

Do you have an "/etc/apt/apt.conf" file? If yes paste the contents?

You haven't got some sort of network/firewall problem have you?
It may not be a package problem at all, bit I'd expect 404 errors, etc.

I'm starting to run out of ideas.



-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: