LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-04-2010, 11:52 PM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
Etch to Lenny: Update /boot/grub


After doing a dist-upgrade from Etch to Lenny with apt-get, my desktop is having trouble letting go of it's kernel nominatives.

Code:
rooster@royrogers:~$ uname -r
2.6.18-5-686
Code:
rooster@royrogers:~$ uname -a
Linux royrogers 2.6.18-5-686 #1 SMP Tue Dec 18 21:24:20 UTC 2007 i686 GNU/Linux
I made sure /kernel-img.conf conformed to lenny's "grub-doc package" as follows:
Code:
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /usr/sbin/update-grub
postrm_hook   = /usr/sbin/update-grub
I also tried to revise/update /boot/grub as follows:
Code:
royrogers:/home/rooster# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.18-5-686
Updating /boot/grub/menu.lst ... done
FYI:
Did several apt-get udates.
Did 5 reboots.
installed libfam0c102


Nevertheless, I'm not seeing version 5 as per:
Code:
~$ cat /etc/debian_version
4.0
The uncommented portion of /boot/grub.menu.lst is as follows:

Code:
<snip>
## ## End Default Options ##

title		Debian GNU/Linux, kernel 2.6.18-5-686
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.18-5-686 root=/dev/hda1 ro installgui install standard" 
initrd		/boot/initrd.img-2.6.18-5-686
savedefault

title		Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode)
root		(hd0,0)
kernel		/boot/vmlinuz-2.6.18-5-686 root=/dev/hda1 ro installgui install standard" single
initrd		/boot/initrd.img-2.6.18-5-686
savedefault

title Windows XP
     rootnoverify (hd1,0)
     map (hd0) (hd1)
     map (hd1) (hd0)
     chainloader +1
<snip>
I hope someone can help me find the problem and fix it. Is it possible I need to edit the .menu.lst to activate the "AUTOMAGIC KERNELS LIST"? If so, I'd appreciate guidance as to just how to do this..
 
Old 08-05-2010, 06:56 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
..so what makes you think you dist-upgraded?

Post your sources.list. Post
Code:
dpkg -l | grep -E "^ii.*(kernel|linux-image|base-files)"
 
Old 08-05-2010, 01:02 PM   #3
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
..so what makes you think you dist-upgraded?

Post your sources.list. Post
Code:
dpkg -l | grep -E "^ii.*(kernel|linux-image|base-files)"



Code:
rooster@royrogers:~$ dpkg -l | grep -E "^ii.*(kernel|linux-image|base-files)"
ii  base-files                        4                                               Debian base system miscellaneous files
ii  libdrm2                           2.0.2-0.1                                       Userspace interface to kernel DRM services -
ii  linux-image-2.6-686               2.6.18+6etch2                                   Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.18-5-686          2.6.18.dfsg.1-13etch6                           Linux 2.6.18 image on PPro/Celeron/PII/PIII/
ii  linux-image-686                   2.6.18+6etch3                                   Linux kernel image on PPro/Celeron/PII/PIII/
ii  module-init-tools                 3.3-pre4-2                                      tools for managing Linux kernel modules
Thanks for replying AZ.

I ran "apt-get dist-upgrade" in terminal after editing my sources list to retrieve lenny.

Code:
deb http://ftp2.de.debian.org/debian/ lenny main
deb-src http://ftp2.de.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
As far as I know, it installed with no Errors. Funny thing though ... the last line ended with:
Code:
royrogers:/home/rooster# aptitudeaptitude
That isn't the way I expected. But it's the first time I've done an upgrade to a new distro... so I didn't know what it was supposed to tell me.

As you infer, and as I have been finding out, the upgrade didn't complete. Would you suggest I run the command again?

Last edited by r00ster; 08-05-2010 at 01:08 PM. Reason: Clarification
 
Old 08-05-2010, 04:50 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You're certainly still on Etch. Did you do "apt-get update" after editing sources.list? And did it complete? Do update then dist-upgrade.

Also, if you haven't read the release notes, you should. http://www.debian.org/releases/stabl...rading.en.html
 
Old 08-05-2010, 05:37 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try this
Code:
aptitude update
aptitude keep-all
aptitude install dpkg aptitude apt
aptitude full-upgrade
keep-all will fix dependency problems with the switch from apt-get to aptitude as aptitude is the recommended tool now because of superior dependency handling problems. Then you upgrade the core tools of the apt/dpkg system. Then do a full upgrade.
 
Old 08-05-2010, 07:52 PM   #6
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
You're certainly still on Etch. Did you do "apt-get update" after editing sources.list? And did it complete? Do update then dist-upgrade.
As per my OP:
Quote:
FYI:
Did several apt-get udates.
Did 5 reboots.
installed libfam0c102
Yes, I did the apt-get updates after editing the sources.list. As far as I can remember, it did complete with no [E]rrors;
...else I would have made a note of it/them in my running notes.


Quote:
Also, if you haven't read the release notes, you should. http://www.debian.org/releases/stabl...rading.en.html
Yes, I read them. That's part of the reason I suspected Lenny failed to install.

At this moment, I'm inclined to exercise an abundance of caution and re-backup my docs and /etc
just in case I run into another snag.
 
Old 08-05-2010, 08:38 PM   #7
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez View Post
Try this
Code:
aptitude update
aptitude keep-all
aptitude install dpkg aptitude apt
aptitude full-upgrade
keep-all will fix dependency problems with the switch from apt-get to aptitude as aptitude is the recommended tool now because of superior dependency handling problems. Then you upgrade the core tools of the apt/dpkg system. Then do a full upgrade.


Thanks plgv,

I spent the best part of a week reviewing literature on apt-get versus aptitude, including Aaron Toponce's article:
http://pthree.org/2007/08/12/aptitude-vs-apt-get/. I'm too much of a newbie to presume to have an opinion worth bruiting.
But for my purposes I made the decision to stick with apt-get based on conclusions and observations of others.
To whit:
1. If what your using works for you, don't change.
2. The evidence that aptitude handles (removing?)dependencies better than apt-get is presumptive and argumentative.
3. Improvements to apt-get are forthcoming.

I do appreciate your advice.


I might have uncovered the problem. Although I don't know how to recall the actual command I gave for the
upgrade, I suspect it might not have been: apt-get dist-upgrade, but "apt-get full upgrade". Whether this would make a
difference or not, I dunno.
 
Old 08-05-2010, 10:03 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
dist-upgrade was renamed to full-upgrade.

Does /etc/apt/preferences exist? What does it contain ?
 
Old 08-06-2010, 12:23 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by r00ster View Post
Thanks plgv,

I spent the best part of a week reviewing literature on apt-get versus aptitude, including Aaron Toponce's article:
http://pthree.org/2007/08/12/aptitude-vs-apt-get/. I'm too much of a newbie to presume to have an opinion worth bruiting.
But for my purposes I made the decision to stick with apt-get based on conclusions and observations of others.
To whit:
1. If what your using works for you, don't change.
2. The evidence that aptitude handles (removing?)dependencies better than apt-get is presumptive and argumentative.
3. Improvements to apt-get are forthcoming.

I do appreciate your advice.


I might have uncovered the problem. Although I don't know how to recall the actual command I gave for the
upgrade, I suspect it might not have been: apt-get dist-upgrade, but "apt-get full upgrade". Whether this would make a
difference or not, I dunno.
I'm just a sheep. When I did the dist-upgrade from Sarge to Etch years ago, that note about aptitude being preferred was in the release notes. Since then I've just used aptitude since it works the same from the command line. It also has a curses interface, but I can't say I've ever used it.
 
  


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
Windows disappear in grub/menu.lst after update of debian-lenny bio2009 Linux - Newbie 4 06-20-2009 12:13 AM
update etch to lenny and save old java cccc Debian 6 02-17-2009 11:30 AM
LXer: Debian Lenny update: so far, much better, and we also have 'Etch and a half' LXer Syndicated Linux News 0 08-07-2008 07:10 AM
dual boot etch and lenny plesaleza Debian 6 09-02-2007 01:21 AM
from Etch testing to Etch stable, or to Lenny Perquisitor Debian 7 04-13-2007 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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