Click to See Complete Forum and Search --> : apt-problem


danielvm
06-16-2005, 11:32 PM
Hi everyone, i installed apt with this command "yum install apt", yum install "apt.i386 0:0.5.15cnc7-2", but when i try to run "apt-get update" i get this error:


Fetching list of repositories/mirrors...
E: Failed to fetch mirror list file:


i'm newbie, whta can i do?

here is my apt.conf
// User customizable configuration

RPM
{
// Uncomment to disable GPG-signature checking for packages
// GPG-Check "false";
// Uncomment to prevent kernel being handled along with (dist-)upgrade
// Upgrade-Virtual "false";
// Uncomment to hold packages with modified config files in (dist-)upgrade
// Preserve-Config "true";
};

// Options for the downloading routines
Acquire
{
// Retries "1";
// http::Proxy "http://user: password@proxy-server.domain.tld: port/";
// http::Proxy "http://proxy-server.domain.tld: port/";
};

here is the sourcelist file
# Please choose the nearest mirror http://www.fedora.us/wiki/FedoraMirrorList

# Add any local / 3rd party repositories here..

what must i do? please :confused:

i'm using Fedora Core 4

thanks

knute
06-17-2005, 12:53 AM
You need to add a repository to your sources.list file so that apt knows where to go to get the list.

If you go to the following link, it will give you a sample sources.list that may or may not work. I don't know, as I don't use fedora.

http://www.xades.com/proj/fedora_repos.html#apt

HTH

danielvm
06-17-2005, 07:40 PM
Thanks knute, anybody knowa where can i find repository for fedora core 4??

phlipant
06-17-2005, 10:31 PM
You should have a list of mirrors in /etc/sysconfig/rhn/sources.

danielvm
06-18-2005, 11:25 PM
Thanks Phlipant, this is the content of my sources file
### This describes the various package repositories (repos) that up2date will
### query for packages. It currently supports apt-rpm, yum, and "dir" repos.

### Format is one repository (repo) entry per line, # starts comments, the
### first word on each line is the type of repo.

### The default RHN (using "default" as the url means use the one in the
### up2date config file).
#up2date default

### Note: when a channel label is required for the non up2date repos,
### the label is solely used as an internal identifier and is not
### based on the url or any other info from the repos.

### An apt style repo (the example is arjan's 2.6 kernel repo).
### The format is:
### type channel-label service:server path repo name
#apt arjan-2.6-kernel-i386 http://people.redhat.com ~arjanv/2.5/ kernel

### Note: for apt repos, there can be multiple repo names specified (space
### seperated).

### A yum style repo. The format is:
### type channel-label url

#yum my-favorite-rpms http://my.local.domain/fedora/linux/core/$ARCH/

### A local directory full of packages (a "dir" repo). For example:
#dir my-favorite-rpms /var/spool/RPMS/

### Repo Metadata
# Note that setting this makes up2date look in /etc/yum.repos.d/ for
# repository configuration.
# type channel-label url
repomd fedora http://fedora.redhat.com/

# Multiple versions of all repos except "up2date" can be used. Dependencies
# can be resolved "cross-repo" if need be.

sorry if i to stupid but i can see what repository to use for apt ... can anyone help ,e please. i need repositories for Fedora 4

phlipant
06-19-2005, 08:27 AM
i`m sorry, FC4 has moved them to /etc/yum.repos.d