LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2006, 04:41 PM   #16
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15

Etch'd.
Well...that's that (hopefully).

Again, thanks for all your help even though, ultimately, I had to start over. At least now I know a little more about apt-get and it's various components and I know how NOT to handle dependency issues. ^_^
Also, now that I have Etch I was able to install ZSNES from Aptitude without any trouble at all. The only real problem is that for some reason my new setup wouldn't accept alot of the config data I had backed up, meaning I have to manually reconfig KDE, printing, and a few other things.
 
Old 05-20-2006, 06:57 PM   #17
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
When you've used Debian for some time, you learn to avoid broken dependencies -- and when they happen, you learn to fix them before they grow so big that you need to re-install.

Debian stable should not have any broken dependencies but installing packages from unofficial sources may introduce breakages.

Debian testing is a moving target and sometimes there are temporary breakages. If you track Debian testing, you should install the "apt-listbugs" package that will warn you of packages that have bug reports filed against them. If the bug reports that apt-listbugs lists are marked as "done", the reported bugs have already been fixed and it should be safe to install the package. But if apt-listbugs tells that the bug report is still "open", then you should consider carefully if the reported bug might affect your system. Sometimes the Debian maintainers are unable to reproduce the reported bug and so they let the package migrate from unstable to testing. So every time when you install/upgrade a package that has open bug report filed against it, you're taking a calculated risk. At least you've been warned by apt-listbugs if something bad happens.

If you track Debian testing and something breaks, you can usually fix things either by uninstalling the broken package, changing sources.list to temporarily point to stable and installing an older version of the broken package from stable. Or you can temporarily point sources.list to unstable and install a newer version of the package. Or you can just wait until apt-listbugs tells you that it's safe to install/upgrade the package.

I've found aptitude to be quite useful tool for this kind of negotiations with broken packages. If apt-listbugs tells you that some package you're about to upgrade has open bug reports filed against it, you can press the "=" key on that package and this tells aptitude to put that package "on hold" and not to upgrade it. And after a week or two has passed, you can press "+" on that package to mark it to be upgraded, so you can test if apt-listbugs still warns you about it.

When you're careful installing and upgrading packages and when you learn to negotiate your way around small breakages as described above, you should never again stumble into the kind of large-scale breakage that you've just experienced.
 
Old 05-21-2006, 07:46 PM   #18
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
There's one thing I don't understand, though. If packages.debian.org isn't an official source, what is? That's where I got every package that was requested by ZSNES and it's dependencies... The only thing I can think of to really explain it is that it must have come from some RPM I tried to install with Alien, though I don't know which one it was.
 
Old 05-22-2006, 02:29 AM   #19
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
I have no way of verifying that you've installed any unofficial packages -- it was just an assumption I made based on your first post where you write that you've spent all day downloading and installing dependency .deb packages using dpkg. Why would you install dependencies manually when you can just use apt-get or aptitude to resolve dependencies automatically? Unless, of course, you're installing packages from unofficial sources that don't have the required dependency packages.

But, yes, installing a .rpm package turned into a .deb with Alien would qualify as a package installed from unofficial sources and this might well be the actual reason for your broken dependencies.

The most usual reason for breaking APT is that people mix different development branches (stable/testing/unstable) in their /etc/apt/sources.list. (There's a technique called "apt-pinning" that makes it possible to mix branches without breaking APT. Mixing branches without apt-pinning is a very bad idea.) Here's what a normal /etc/apt/sources.list entry looks like:
Code:
deb http://http.us.debian.org/debian stable main contrib non-free
The "http://http.us.debian.org/debian" part tells APT which download mirror it should use. The "stable" part tells APT which branch you're tracking. The "main contrib non-free" part tells APT which package repositories you want to use.

If you mix branches, your /etc/apt/sources.list might look like this:
Code:
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://http.us.debian.org/debian unstable main contrib non-free
Don't mix branches like this. It will break APT because it mixes different development branches (stable/testing/unstable). If you stick to tracking just one branch, you shouldn't have any problems.

Here's some additional documentation:
http://www.debian.org/doc/manuals/ap...basico.en.html
http://jaqque.sbih.org/kplug/apt-pinning.html
http://www.argon.org/~roderick/apt-pinning.html
 
Old 05-25-2006, 07:33 PM   #20
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
Hm...Ok. Thanks for all your help. It was...um...helpful!
 
  


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
Is base-config package removed from your system with aptitude dist-upgrade? Akhran Debian 6 03-18-2006 07:52 PM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
[Aptitude] Is it possible to check which package automatically install packageA? Akhran Debian 2 03-13-2006 12:34 PM
Any aptitude command to find out what packages belong to a virtual package? Akhran Debian 9 11-05-2005 09:40 PM
RH 8.0 package uninstall Sargek Linux - Software 5 01-05-2003 10:37 AM

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

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