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-07-2008, 10:52 AM   #16
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62

Remove or rename /etc/apt/preferences

Then...
# aptitude keep-all
# aptitude update
# aptitude dist-upgrade
 
Old 05-07-2008, 09:45 PM   #17
pietruszewski
Member
 
Registered: Jul 2007
Location: London, Ontario, Canada
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
thanks rickh, everything works great!
 
Old 05-07-2008, 10:11 PM   #18
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
# aptitude install aptitude-doc-en
... or, "cs" "fi" "fr" or "ja" depending on your preferred documentation language.

That will install the Aptitude User's Manual on your hard drive where you can access it with your web browser, here:... file:///usr/share/doc/aptitude/html/en/index.html

If you're going to use Debian, it's critical that you understand the sources.list file and the package manager. Since I did some hand-holding here, which is not a habit of mine, let me advertise a couple Howtos I have written to help people understand Debian a little better.

How to Have a Pleasant Installation (for Debian Newbies)
Howto: Set up and Maintain a Mixed Testing/Unstable System
 
Old 05-08-2008, 06:04 AM   #19
pietruszewski
Member
 
Registered: Jul 2007
Location: London, Ontario, Canada
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
So after doing a 'aptitude update' and a 'aptitude dist-upgrade',
I'm left with no GDM, and no gnome, and I get an error when I try to install each
of them.
I am currently writing this in links
 
Old 05-08-2008, 07:05 AM   #20
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
I get an error when I try to install
What's the error?

A wild guess... You might try...
# aptitude install xserver-xorg-core xserver-xorg xorg gdm gnome-core
 
Old 05-08-2008, 01:01 PM   #21
pietruszewski
Member
 
Registered: Jul 2007
Location: London, Ontario, Canada
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
Yeah I had to work out some dependencies and uninstall a few packages.
I finally got gnome-core, gdm and X11 installed, but gdm segfaults everytime I load it, and when I get into gnome, I can't click on anything, and my desktop keeps dissapearing...
 
Old 05-08-2008, 01:39 PM   #22
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
IMNSHO the worst option when dist-upgrading from an older release to a newer one is using aptitude, especially with keep-all. If a package name has changed, aptitude will try to keep the old package installed, and your dependencies are borked.
Read what people running unstable think about aptitude, like here: http://sidux.com/PNphpBB2-viewtopic-t-5542.html
Aptitude is good for stable, perhaps even testing if you know what you're doing, but I wouldn't recommend using it on sid, or dist-upgrading between releases.
 
Old 05-08-2008, 01:49 PM   #23
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I think it's particularly important for Sid, and your evaluation of what it will do if a package name changes is complete hooey. Debian's official documentation recommends it as the preferred installer since Etch. Sidux is a good, if unnecessary, distro but they, of course, have a vested interest in scaring people away from Debian proper.

OTOH, to the OP, you've gone beyond my level of expertise and knowledge. Nothing like what you describe has ever happened to me. Just lucky, I guess.
 
Old 05-08-2008, 02:21 PM   #24
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Well, let's go a bit off topic then. If the OP asks, it stops.
What's important for Sid? Aptitude? Bollocks. Read the thread with links.
Installer? If you meant package manager, Debian recommends it for Etch and Lenny.
They aren't trying to scare people away from debian proper, just say use apt-get instead of aptitude.
And no, I don't use Sidux.
Just for fun, google: aptitude "stable to testing" site:.debian.org

@pietruszewski:
Try to find packages still from etch with "dpkg -l|grep package" et al. Do you still have old ones?
What would "apt-get update && apt-get dist-upgrade -s" say?
 
Old 05-08-2008, 02:31 PM   #25
pietruszewski
Member
 
Registered: Jul 2007
Location: London, Ontario, Canada
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
Oh wow, being a new linux user I have no problem just reinstalling testing - which is what I'm going to do. I find using Linux to be a 'fun learning experience' I guess.
makuyl or rickh, could you please explain to me the difference between using apt-get and aptitude? I used to run Debian on a 'dumb-terminal' without a WM, so I thought aptitude was the 'graphical' equivalent of apt-get, but I am so wrong apparently.
 
Old 05-08-2008, 03:08 PM   #26
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
Just for fun, google: aptitude "stable to testing" site:.debian.org
First return:
Quote:
Once your system has reached Sarge it is advisable to use aptitude instead of apt-get.
You have to remember that much of the 1000's of pages of Debian documentation was written before Aptitude existed. Since the terminal syntax will usually work with either program, common procedure for the writer's is to simply note at the end of a series of apt-get commands, that aptitude is now preferred.

The OP:
Quote:
I have no problem just reinstalling testing
To be truthful, that's what I would recommend. A lot of people consider re-installing to be some kind of failure. I think it's kind of a rite of passage. Re-installing is one of the most educational things a Linux newbie can do. I'll bet I did it 10-12 times when I first started. By the time I really understood the installation process, I had no more problems with upgrades, etc.

Debian Testing Installer. I also recommend that you at least skim through the first link I left above.
 
Old 05-08-2008, 03:32 PM   #27
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Quote:
Originally Posted by rickh View Post
First return:
You have to remember that much of the 1000's of pages of Debian documentation was written before Aptitude existed. Since the terminal syntax will usually work with either program, common procedure for the writer's is to simply note at the end of a series of apt-get commands, that aptitude is now preferred.
. One would have thought you would know that debian devs recommend aptitude over apt. Skip the propaganda now and read a couple user problems and how they solved them from lists.debian on that google find. Enough OT from me for now.
 
Old 05-08-2008, 03:56 PM   #28
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
...read a couple user problems...
I looked through the 2-3-4 year old list discussions that you recommended. It's an old argument. Although it became obvious to really knowledgeable people (the developers) early on that Aptitude was far superior to apt-get, regular users often had the typical reaction to "new things." The arguments continue to this very day on Debian specific forums, but the weight of evidence has gradually shifted to Aptitude. The best proof of that is that the apt-get developers themselves are working hard to get apt-get to behave like aptitude. The versions of apt-get in Lenny and Sid mimic aptitude's handling of "recommends" and "dependencies". If you don't like the default handling, it's easy to change.
 
Old 05-08-2008, 04:27 PM   #29
pietruszewski
Member
 
Registered: Jul 2007
Location: London, Ontario, Canada
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rickh View Post
To be truthful, that's what I would recommend. A lot of people consider re-installing to be some kind of failure. I think it's kind of a rite of passage. Re-installing is one of the most educational things a Linux newbie can do. I'll bet I did it 10-12 times when I first started. By the time I really understood the installation process, I had no more problems with upgrades, etc.
I know the Debian etch installer like the back of my hand - after trying to get debian working on an Apple Macbook. Oh jeeze, that was a headache and a half.


Quote:
...What's the difference between aptitude and apt-get?...
I'd like a straight forward comparsion please, I can make up my own opinions after I've used either one to screw up my install.
 
Old 05-08-2008, 04:36 PM   #30
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
This article has been widely circulated over the last year or so.
http://pthree.org/2007/08/12/aptitude-vs-apt-get/

apt-get and aptitude maintain their historical data in different files. As a result, if you mix the two, one will be lacking knowledge of applications installed by the other. Believe me, this does lead to problems. "aptitude keep-all" simply says, check out the entire system to see what has been installed by any means, and add it to aptitude's history file.
 
  


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
Possible to Upgrade Etch to Lenny? BobNutfield Debian 5 02-29-2008 01:45 PM
etch to lenny upgrade- any kernel related pitfalls? sonichedgehog Debian 6 01-14-2008 05:31 PM
-best way to upgrade from Etch to Lenny ? el amigo* Debian 10 09-24-2007 11:40 PM
from Etch testing to Etch stable, or to Lenny Perquisitor Debian 7 04-13-2007 03:27 PM
etch upgrade to lenny StargateSteve Debian 8 04-12-2007 03:11 PM

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

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