LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-21-2005, 02:17 PM   #1
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Rep: Reputation: 15
apt-get : No Good :(


Being a Gentoo user, am forced to use Debian at work. For the last 2 days, apt-get has driven me crazy. Never able to find any package, and if it does then more often than not it has trouble with unmet dependencies and broken packages.

I've often read nice things about apt, so I'm wondering whether apt is lousy or whether its my sources.list

Anyone know how to get it working nicely like emerge in Gentoo? Perhaps a sources.list that I can use?

Thanks
 
Old 06-21-2005, 02:23 PM   #2
ToastedToad
Member
 
Registered: Feb 2005
Location: Sequim,WA
Distribution: Debian_sid/Debian_sarge_amd64
Posts: 157

Rep: Reputation: 30
Can we see your sources.list?
 
Old 06-21-2005, 02:32 PM   #3
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
Here it is.

Code:
### stable
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://mirrors.kernel.org/debian/ stable main non-free contrib
deb http://ftp.debian.org/debian/ stable main non-free contrib
#deb http://ftp.us.debian.org/debian/ stable main non-free contrib
#deb-src http://ftp.us.debian.org/debian/ stable main non-free contrib

### testing
deb http://mirrors.kernel.org/debian/ testing main non-free contrib
deb http://ftp.debian.org/debian/ testing main non-free contrib
#deb http://ftp.us.debian.org/debian/ testing main non-free contrib
#deb-src http://ftp.us.debian.org/debian/ testing main non-free contrib

### unstable
deb http://mirrors.kernel.org/debian/ unstable main non-free contrib
deb http://ftp.debian.org/debian/ unstable main non-free contrib
#deb http://ftp.us.debian.org/debian/ unstable main non-free contrib
#deb-src http://mirrors.kernel.org/debian/ unstable main non-free contrib

### expiremental LEAVE THESE COMMENTED OUT UNLESS YOU KNOW WHAT THIS MEANS
deb http://http.us.debian.org/debian/ ../project/experimental main contrib non-free
#deb http://mirrors.kernel.org/debian/ experimental main non-free contrib
#deb-src http://ftp.debian.org/debian/ experimental main non-free contrib

# Packages not yet in Debian
deb http://pkg-nav.alioth.debian.org/debian unstable local
deb-src http://pkg-nav.alioth.debian.org/debian unstable local

# Blackdown -- Java
deb ftp://ftp.tux.org/pub/java/debian unstable non-free

# PostgreSQL
deb http://people.debian.org/~elphick/debian stable main


# Misc

deb http://www.linex.org/sources/linex/debian woody linex
 
Old 06-21-2005, 02:46 PM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
apt IS good but you don't seem to know how to use it. Did you have a look at the apt manual? If you can't find packages it could be your sources.list too.
For those broken dependencies, it seems to me you are using Debian Unstable, Knoppix or something like that!!
 
Old 06-21-2005, 02:57 PM   #5
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
Well the first post says that it could be the sources.list. Obviously, I know thats the problem. The question is, how to get a nice sources.list ? The last time I used Debian, I had to spend hours wandering on websites to find repositories to add :/

By the way, I'm using Woody with 2.4.2 and 2.6.9 installed
Then why do you think I have the broken dependencies? I need to get a working version of a softare called NAV (metanav.ntnu.no) working in 24 hours and I would like to avoid installing Gentoo on this right now

thanks
 
Old 06-21-2005, 03:00 PM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
the positioning after the url has no effect. so all the duplication is a waste of time. get rid of the experimental repository. then do an 'apt update' to inform apt about the sources.list changes.
 
Old 06-21-2005, 03:10 PM   #7
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Well, :-) you have a mix of everything from stable to experimental in your sources.list anyway. Does it really supprise you that you have broken dependencies? By the way the command
Code:
apt-cache search 'description or packagename'
helps you locate packages if you are not using a gui(synaptic, kpackage,...)
 
Old 06-21-2005, 03:14 PM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Get rid of everything but stable and maybe the ones you added. You might want to think about doing a apt-get dist-upgrade since Sarge is the new stable and Woody is outdated. The unmet dependencies are most likely caused by 1) using Woody and 2) having Testing and Unstable repositories. Unstable is very unstable right now. If you need a package that is not in the repositories you can try searching at www.apt-get.org


#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free


Update your sources.list then run apt-get update
 
Old 06-21-2005, 03:17 PM   #9
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
I put the experimental only after it didn't work without it. I've run 'apt-get update' after every change.

Perhaps one of you guys could just post yours if it works well? For example, right now it won't insall something as common as postgresql, gives the 'unmet dependencies' and 'broken package' error. "Needs libperl5.6 (of which a newer version is already installed) but is not installable."
 
Old 06-21-2005, 03:23 PM   #10
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
did you run
Code:
apt-get dist-upgrade
?
 
Old 06-21-2005, 04:48 PM   #11
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
One sure thing to fix your sources.list is run apt-setup and follow the directions.
 
Old 06-21-2005, 04:49 PM   #12
juanjavier_xxx
Member
 
Registered: Aug 2004
Location: Madrid, Spain
Distribution: Debian stable.
Posts: 186

Rep: Reputation: 31
ar1, mrcheeks is right when he says:

Quote:
you have a mix of everything from stable to experimental in your sources.list anyway
It is not recommended to have a sources.list that points to many releases at the same time, because apt gets 'jammed' in the long run...

It may be comfortable anyway, but you should comment the lines which point to the releases that you are not using at the moment....

Hope it makes sense...

Juan Javier Martinez
Madrid, Spain
www.juanjaviermartinez.com
 
Old 06-21-2005, 05:01 PM   #13
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks for the reply, people...I knew this post would get replies and get them quick

Since I have a short deadline, I'll try to remove the unstable and try, and try apt-setup. Otherwise put in a different drive with Gentoo for showing this NAV program.
 
Old 06-21-2005, 05:23 PM   #14
stimpsonjcat
Member
 
Registered: Apr 2005
Location: switzerland
Distribution: debian etch
Posts: 99

Rep: Reputation: 15
Quote:
Originally posted by ar1
Thanks for the reply, people...I knew this post would get replies and get them quick

Since I have a short deadline, I'll try to remove the unstable and try, and try apt-setup. Otherwise put in a different drive with Gentoo for showing this NAV program.
just in case you still get dependency errors and want to get rid of the experimental packages already installed on your system try this

since you're running a server I'd recommend using sarge as the default release and add/uncomment the sid repositories in your sources.list just for installing NAV (I think some sid packages are required) without doing apt-get (dist-)upgrade.

this is my sources.list
Code:
# deb file:///cdrom/ sarge main

# sarge
deb http://debian.ethz.ch/debian/ sarge main
deb-src http://debian.ethz.ch/debian/ sarge main
deb http://security.debian.org/ sarge/updates main

# sid
# deb http://debian.ethz.ch/debian/ sid main
# deb-src http://debian.ethz.ch/debian/ sid main

# local
deb file:/home/stimpy/deb/ ./

# unofficial
# deb http://www.cihar.com/debian ./
# deb http://debian.usefulinc.com/gnome/ ./
# deb-src http://debian.usefulinc.com/gnome/ ./
# deb http://fred.hexbox.de/debian/ ./
 
Old 06-21-2005, 07:12 PM   #15
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
stimpsonjcat,

thanks for the reply. Can I use the sarge repositories for woody?? I don't think I can change the distro to sarge though, at least not tomorrow when I need to get it done.

By the way, one of the big problems with NAV was that the "deb http://www.cihar.com/debian ./" repository is not working, cannot find the Packages.gz. So I had to install NAV from source, which also gave a lot of trouble because apt-get was not working well and NAV needs so many dependencies. Finally I created a .deb from the RPM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What are good repositories for apt or yum? coasterfreak212 Fedora 5 08-15-2005 06:40 PM
APT repositories (any good ones?) TippyToes Linux - Software 3 01-28-2005 12:11 PM
good apt repositories for RH 7.2? Sephiroth Linux - Software 4 02-13-2004 12:46 PM
How good is apt-get? admanb Debian 7 01-29-2004 08:57 AM
How good is apt-get? chris319 Debian 26 07-06-2003 02:52 AM

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

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