LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   apt-get : No Good :( (https://www.linuxquestions.org/questions/debian-26/apt-get-no-good-335827/)

ar1 06-21-2005 02:17 PM

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

ToastedToad 06-21-2005 02:23 PM

Can we see your sources.list?

ar1 06-21-2005 02:32 PM

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


mrcheeks 06-21-2005 02:46 PM

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!!

ar1 06-21-2005 02:57 PM

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

rshaw 06-21-2005 03:00 PM

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.

mrcheeks 06-21-2005 03:10 PM

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,...)

craigevil 06-21-2005 03:14 PM

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

ar1 06-21-2005 03:17 PM

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."

mrcheeks 06-21-2005 03:23 PM

did you run
Code:

apt-get dist-upgrade
?

darkleaf 06-21-2005 04:48 PM

One sure thing to fix your sources.list is run apt-setup and follow the directions.

juanjavier_xxx 06-21-2005 04:49 PM

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

ar1 06-21-2005 05:01 PM

Thanks for the reply, people...I knew this post would get replies and get them quick :D

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.

stimpsonjcat 06-21-2005 05:23 PM

Quote:

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

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/ ./


ar1 06-21-2005 07:12 PM

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.


All times are GMT -5. The time now is 01:02 PM.