LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-02-2005, 07:55 AM   #1
luqman
Member
 
Registered: Feb 2005
Posts: 43

Rep: Reputation: 15
apt-get no source defined



# List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
#
# See http://ayo.freshrpms.net/ for a list of other repositories and mirrors.
#
# $Id: sources.list,v 1.8 2003/04/16 09:59:58 dude Exp $

# Red Hat Linux 9
rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
rpm ftp://ftp.redhat.com pub/redhat/linux/9/en/os/i386 update
rpm-src ftp://ftp.redhat.com pub/redhat/linux/9/en/os/i386/SRPMS update


And when i issue command:
#apt-get build-dep patch [or any package]


it says:
E: Unable to find a source package for patch [or any other package]

Please guide me to get out of this problem

Kindest
Muhammad Muzzamil Luqman
 
Old 03-02-2005, 09:10 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
Did you run "apt-get update" ???
 
Old 03-02-2005, 09:28 AM   #3
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
noops
what does it do?
 
Old 03-02-2005, 09:30 AM   #4
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
man apt-get:
update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list.
 
Old 03-02-2005, 09:50 AM   #5
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
I am glad that atlast i have found someone who has got a good grasp of the subject.
pK21 can you please guide me to some good sources for the /etc/apt/sources.list.

I am using redhat9.0


Kindest
Muhammad Muzzamil Luqman
 
Old 03-02-2005, 12:33 PM   #6
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
I've got my own repository server but that one isn't public. Maybe you can take a look at http://apt.freshrpms.net/
In fedora core 3 there is also the command "apt-get mirror-select", i don't know if it works with redhat 9 but you can try.
 
Old 03-02-2005, 12:35 PM   #7
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
sorry, didnt read your first post. You already have a sources list from freshrpms ;-)
 
Old 03-03-2005, 06:07 AM   #8
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
noop, nothingz working

can't anybody tell me some sources to put into the sources.list

Sadest
Muhammad Muzzamil Luqman
 
Old 03-03-2005, 06:33 AM   #9
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
what does it say when you issue "apt-get update"?

also, what is the output of "apt-cache search patch [or any other package]"?
 
Old 03-03-2005, 06:52 AM   #10
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
thankx pevelius

apt-get update works fine, it [i guess] updates all the installed packages.

but whenever i issues an ||| apt-get build-dep xyz ||| it says:

-----------------------
Reading Package Lists... Done
Building Dependency Tree... Done
E: You must put some 'source' URIs in your sources.list
------------------------

and my /etc/apt/sources.list is:

-----------------
# List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
#
# See http://ayo.freshrpms.net/ for a list of other repositories and mirrors.
#
# $Id: sources.list,v 1.8 2003/04/16 09:59:58 dude Exp $

# Red Hat Linux 9
rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms


# Red Hat Linux 8.0
#rpm http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/8.0/i386 os updates freshrpms

# Red Hat Linux 7.3
#rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms

# Red Hat Linux 7.2
#rpm http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.2/i386 os updates freshrpms

# Red Hat Linux 7.1
#rpm http://ayo.freshrpms.net redhat/7.1/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/7.1/i386 powertools dma
#rpm-src http://ayo.freshrpms.net redhat/7.1/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.1/i386 powertools dma

# Red Hat Linux 7.0
#rpm http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/7.0/i386 powertools dma
#rpm-src http://ayo.freshrpms.net redhat/7.0/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/7.0/i386 powertools dma

# Red Hat Linux 6.2
#rpm http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
#rpm http://ayo.freshrpms.net redhat/6.2/i386 powertools
#rpm-src http://ayo.freshrpms.net redhat/6.2/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/6.2/i386 powertools
-----------------
 
Old 03-03-2005, 07:51 AM   #11
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
"apt-get update" updates package descriptions, but doesnīt upgrade your system.
"apt-get upgrade" downloads and installs new versions (the ones seen by apt-get update)
"apt-get install xyz" installs packet xyz plus all itīs dependencies.
"apt-get remove xyz" removes packet xyz.

according to your error apt-get cannot find any source rpm:s to download. maybe there arenīt any in those repositories? maybe they only offer binary packages?

try "apt-cache stats" to see if you have managed to update your package descriptions. it should list the number of packages seen in your repositories.

//edit: try changing the apt.sources to this (notice the "/" after the initial url):

<snip>
# Red Hat Linux 9
rpm http://ayo.freshrpms.net/redhat/9/i386 os updates freshrpms
rpm-src http://ayo.freshrpms.net/redhat/9/i386 os updates freshrpms
<snip>

then issue "apt-get update"

after that, try the command you want.

Last edited by pevelius; 03-03-2005 at 08:06 AM.
 
Old 03-03-2005, 08:19 AM   #12
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
well pevelius i tried it but is saying
E:mall code in sources near line 12
 
Old 03-03-2005, 09:03 AM   #13
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
have you looked in "/etc/apt/sources.list.d/" ???
maybe apt looks in there for its sources.
 
Old 03-03-2005, 09:11 AM   #14
luqman
Member
 
Registered: Feb 2005
Posts: 43

Original Poster
Rep: Reputation: 15
its empty?

what should i put overthere???
 
Old 03-03-2005, 09:13 AM   #15
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
then just put only the following line in your sources.list, maybe you will get different results:

rpm http://ayo.freshrpms.net redhat/9/i386 os updates

and then an "apt-get update" ofcourse
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
what is the best source to put on apt-get source list j.vilon Debian 3 09-28-2004 08:49 PM
apt-get in source file? mikeshn Linux - Software 3 05-27-2003 09:11 PM
Apt-Get source problem tmbowie16 Linux - Software 1 04-29-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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