LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-04-2008, 02:16 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
apt-get update doesn't work


hi

I have debian etch stable, but apt-get update doesn't work anymore:
Code:
# apt-get update
Get:1 http://mirror.switch.ch etch Release.gpg [378B]
Hit http://mirror.switch.ch etch Release
Ign http://mirror.switch.ch etch/main Packages/DiffIndex
Get:2 http://security.debian.org etch/updates Release.gpg [189B]
Ign http://mirror.switch.ch etch/contrib Packages/DiffIndex
Hit http://security.debian.org etch/updates Release
Ign http://mirror.switch.ch etch/non-free Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/non-free Packages/DiffIndex
Ign http://mirror.switch.ch etch/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/non-free Sources/DiffIndex
Ign http://security.debian.org etch/updates/main Packages
Ign http://mirror.switch.ch etch/contrib Sources/DiffIndex
Hit http://security.debian.org etch/updates/contrib Packages
Ign http://mirror.switch.ch etch/non-free Sources/DiffIndex
Hit http://mirror.switch.ch etch/main Packages
Hit http://mirror.switch.ch etch/contrib Packages
Hit http://mirror.switch.ch etch/non-free Packages
Hit http://mirror.switch.ch etch/main Sources
Hit http://mirror.switch.ch etch/contrib Sources
Hit http://mirror.switch.ch etch/non-free Sources
Hit http://security.debian.org etch/updates/non-free Packages
Hit http://security.debian.org etch/updates/main Sources
Hit http://security.debian.org etch/updates/contrib Sources
Hit http://security.debian.org etch/updates/non-free Sources
Get:3 http://security.debian.org etch/updates/main Packages [254kB]
99% [3 Packages gzip 0]
gzip: stdin: not in gzip format
Err http://security.debian.org etch/updates/main Packages
  Sub-process gzip returned an error code (1)
Fetched 3B in 2s (1B/s)
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-i386/Packages.gz  Sub-process gzip returned an error code (1)
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
my /etc/apt/sources.list:
Code:
# cat /etc/apt/sources.list
#
#deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Beta #i386 CD Binary-1 20070317-21:45]/ etch contrib main

deb http://mirror.switch.ch/ftp/mirror/debian/ etch main contrib non-free
deb-src http://mirror.switch.ch/ftp/mirror/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free
howto solve this problem ?
 
Old 01-04-2008, 02:47 AM   #2
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
this problem is solved:
Code:
# apt-spy update
Updating...
Grabbing file http://http.us.debian.org/debian/README.mirrors.txt...
Update complete. Exiting.

# apt-spy -d stable -s ch

SERVER: ftp.ch.debian.org
Benchmarking FTP...
                Downloaded 5038460 bytes in 15.34 seconds
                Download speed: 320.70 kB/sec
Benchmarking HTTP...
                Downloaded 5153548 bytes in 15.03 seconds
                Download speed: 334.75 kB/sec
Writing new sources.list file: /etc/apt/sources.list

# cat /etc/apt/sources.list
# sources.list generated by apt-spy v3.1
deb http://ftp.ch.debian.org/debian/ stable main
deb-src http://ftp.ch.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main

# apt-get update
Get:1 http://ftp.ch.debian.org stable Release.gpg [378B]
Get:2 http://ftp.ch.debian.org stable Release [58.2kB]
Get:3 http://ftp.ch.debian.org stable/main Packages [4280kB]
Get:4 http://security.debian.org stable/updates Release.gpg [189B]
Get:5 http://security.debian.org stable/updates Release [22.5kB]
Get:6 http://security.debian.org stable/updates/main Packages [202kB]
Get:7 http://ftp.ch.debian.org stable/main Sources [1215kB]
Fetched 5779kB in 20s (287kB/s)
Reading package lists... Done
 
  


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
apt-get update Screener Ubuntu 3 07-20-2007 02:05 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:26 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