LinuxQuestions.org
Help answer threads with 0 replies.
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 05-25-2005, 07:50 AM   #1
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Rep: Reputation: 15
unable to perform apt-get update


So i would like to update certain files like apache , I have a connection to the internet (ping recieves packets)
sources.list
contains 1 item

deb ftp://ftp.debian.org/ sarge/updates main

so if I type apt-get update

it respondes

"unable to fetch file, server said 'Failed to open file. ' "

"Couldn't stat source package list "

"W: You may want to run apt-get update to correct these problems"
"E: Some index files failed to download, they have been ignored ,or old ones used instead."

any help plz?

thnx
 
Old 05-25-2005, 07:55 AM   #2
londonboi
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian (unstable Branch) 2.6 Kernel
Posts: 71

Rep: Reputation: 15
Try adding these lines to your /etc/apt/sources.list

deb ftp://ftp.sunsite.dk/mirrors/debian sarge main contrib non-free

deb ftp://ftp.sunsite.dk/mirrors/debian-non-US sarge/non-US main contrib non-free

use gedit /etc/apt/sources.list

then run apt-get update

should work from there

Last edited by londonboi; 05-25-2005 at 07:59 AM.
 
Old 05-25-2005, 08:12 AM   #3
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Original Poster
Rep: Reputation: 15
gedit is an unknown command
so i still have the same problems. He gets the packages
but can't seem to install them :s

btw i just need to update my Apache so it installs the apxs

still thnx for the quick reply
 
Old 05-25-2005, 08:35 AM   #4
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
"apt-get update" only updates the package-lists so that apt-get sees what package versions are currently available. After that you need to do "apt-get upgrade" if you want to upgrade your installed software.

Gedit is a GUI text editor for Gnome. In terminal mode you can use the nano text editor (or vi).

Last edited by Dead Parrot; 05-25-2005 at 08:37 AM.
 
Old 05-25-2005, 08:43 AM   #5
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Dead Parrot
"apt-get update" only updates the package-lists so that apt-get sees what package versions are currently available. After that you need to do "apt-get upgrade" if you want to upgrade your installed software.

Gedit is a GUI text editor for Gnome. In terminal mode you can use the nano text editor (or vi).
Yes i noticed that too now, with upgrade it does make a package list
but gives the same mistakes as apt-get update in the end.

btw my apache is only version 1.3

"Follow packages have been kept back
apache apache-common base-config tasksel "

and it ends with W: couldn't stat source package list ......

W : you may want to run apt-get update to correct these problems

so none of the 2 commands work :-/

Still thnx for helping!
 
Old 05-25-2005, 08:52 AM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Have you tried "apt-get dist-upgrade" yet?

Debian Sarge has Apache version 1.3.33.
http://packages.debian.org/testing/web/apache
 
Old 05-25-2005, 09:04 AM   #7
Skaan
LQ Newbie
 
Registered: May 2005
Location: Belgium
Distribution: Win XP, Debian Sarge, Win 98 SE
Posts: 25

Original Poster
Rep: Reputation: 15
apt-get dist-upgrade does not work either
it works in a way, it downloads the packages, i get that bleu screen with the options
but at the end of the so called installation i get the same errors

couldn't stat source package list
you may want to run apt-get update to correct these problems etc...
 
Old 05-25-2005, 09:07 AM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Try the "apt-setup" utility to set up your sources.list . Then do "apt-get update" and "apt-get dist-upgrade" again.
 
Old 05-25-2005, 09:11 AM   #9
londonboi
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian (unstable Branch) 2.6 Kernel
Posts: 71

Rep: Reputation: 15
On a very off chance, altho i dont think it will help, try apt-get install -f

or its apt-get -f install

I forget which one it is and i can't ssh in to mine at the moment as it is off!

once you have done that then try to update
 
  


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 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
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM
Cant get apt to update efi360 Linux - Newbie 7 04-05-2004 10:48 AM

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

All times are GMT -5. The time now is 03:14 AM.

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