[SOLVED] apt-get upgrade

Help with issues regarding installation of Debian

Postby EMD » 2007-11-07 23:16

The details are in my HowTo read and write to an MS Windows XP partition. Read the section on using Etch-backports, then add Etch-backports to your sources list and run:

# apt-get -t etch-backports install linux-image-2.6.22-3-686

Do NOT do a "dist-upgrade"
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby demon » 2007-11-07 23:30

So I set up all and ran:

Code: Select all
# apt-get -t etch-backports install linux-image-2.6.22-3-686 Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  linux-doc-2.6.22
The following NEW packages will be installed:
  linux-image-2.6.22-3-686
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 18.3MB of archives.
After unpacking 55.2MB of additional disk space will be used.
Get:1 http://www.backports.org etch-backports/main linux-image-2.6.22-3-686 2.6.22-5~bpo.1 [18.3MB]
Fetched 18.3MB in 29s (623kB/s)
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.22-3-686.
(Reading database ... 70189 files and directories currently installed.)
Unpacking linux-image-2.6.22-3-686 (from .../linux-image-2.6.22-3-686_2.6.22-5~bpo.1_i386.deb) ...
Done.
Setting up linux-image-2.6.22-3-686 (2.6.22-5~bpo.1) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Running postinst hook script /sbin/update-grub.
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!
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.22-3-686
Found kernel: /boot/vmlinuz-2.6.18-5-686
Updating /boot/grub/menu.lst ... don


so it looks like there will be another option in my GRUB menu right? SO I will choose the new one right? Should I reboot and choose it?

Before do that, still my kernel after command
Code: Select all
uname -a
is:

Code: Select all
Linux expert 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686 GNU/Linux


Also can I leave my sources now like this?
Code: Select all
#deb http://ftp.de.debian.org/debian sid main
deb http://www.backports.org/debian etch-backports main contrib non-free

deb http://ftp.cz.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.cz.debian.org/debian/ etch main

deb http://www.debian-multimedia.org etch main

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main


And then run apt-get update + apt-get upgrade?
Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Postby EMD » 2007-11-07 23:47

demon wrote:so it looks like there will be another option in my GRUB menu right? SO I will choose the new one right? Should I reboot and choose it?

Yes. You'll now have a choice of kernels at boot time. Reboot and choose the new one.

If you would like to check the grub menu before rebooting you can examine the /boot/grub/menu.lst file.

demon wrote:Before do that, still my kernel after command
Code: Select all
uname -a
is:

Code: Select all
Linux expert 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686 GNU/Linux

The output of uname -a will depend on the kernel you chose at boot time.

demon wrote:Also can I leave my sources now like this?

I would comment out backports and run apt-get update

demon wrote:And then run apt-get update + apt-get upgrade?

There's no need to run another upgrade.
.
Last edited by EMD on 2007-11-07 23:50, edited 2 times in total.
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby Telemachus » 2007-11-07 23:49

Just to clarify my previous post: libc6 is a system requirement, so it's not that having libc6 is bad. Here's its description from "aptitude show libc6"
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on the
system. This package includes shared versions of the standard C library and the
standard math library, as well as many others.

The thing is that when a part of your system as basic as libc6 gets moved up to the Sid/Unstable level then it can tend to drag other parts with it. And if your gcc gets moved up, for example, then you can have trouble with modules since the kernel will want modules built with the same gcc that built the kernel. People often think, "I will just upgrade this one program to Sid and then keep everything else in Etch," but for this sort of reason it can cause problems. (Problems are not inevitable but they can happen.)
User avatar
Telemachus
 
Posts: 4677
Joined: 2006-12-25 15:53

Postby EMD » 2007-11-08 00:04

Thanks Telemachus.

Until I read your post, I thought that forum members were more timid about keeping a mixed system than necessary.

Now I understand their reasons.
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby demon » 2007-11-08 00:08

I just rebooted with new kernel and after build some few lines, screen stay like this:


Code: Select all
ALERT! /dev/hdb1 does not exist. Dropping to a shell!
BusyBox v 1.1.3(Debian 1:1.3-4) Built-in shell(ash)
Enter 'help' for a list of built-in commands

/bin/sh: can't access tty; job control turned off
(initramfs)


then I rebooted and switched to my old kernel. Any idea what is that?
Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Postby EMD » 2007-11-08 00:16

Post your /boot/grub/menu.lst file.
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby demon » 2007-11-08 00:19

here we go:

Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title      Debian GNU/Linux, kernel 2.6.22-3-686
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-3-686 root=/dev/hdb1 ro
initrd      /boot/initrd.img-2.6.22-3-686
savedefault

title      Debian GNU/Linux, kernel 2.6.22-3-686 (single-user mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-3-686 root=/dev/hdb1 ro single
initrd      /boot/initrd.img-2.6.22-3-686
savedefault

title      Debian GNU/Linux, kernel 2.6.18-5-686
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.18-5-686 root=/dev/hdb1 ro
initrd      /boot/initrd.img-2.6.18-5-686
savedefault

title      Debian GNU/Linux, kernel 2.6.18-5-686 (single-user mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.18-5-686 root=/dev/hdb1 ro single
initrd      /boot/initrd.img-2.6.18-5-686
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1

Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Postby EMD » 2007-11-08 00:30

I'm sorry. I don't know. I was hoping that it would be something simple like your grub menu pointing to the wrong location, but it looks OK to me.

I think your best bet would be to ask for help on a new thread.

- Eric
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby demon » 2007-11-08 00:34

OK, don't worry, thanks anyway.
If I wanna go step back, can I do that please?
- Remove that new kernel
- maybe edit(remove) new kernel from GRUB
- edit sources list
and apt-get update...
Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Postby Telemachus » 2007-11-08 00:45

If you remove the new kernel with apt-get or aptitude, the GRUB menu list will automatically be updated. You shouldn't have to edit it by hand.
User avatar
Telemachus
 
Posts: 4677
Joined: 2006-12-25 15:53

Postby demon » 2007-11-08 01:04

Thanks a lot, done. I will sleep well :)
Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Postby EMD » 2007-11-08 02:07

Hey Demon,

Check out this HowTo on Ubuntu Forums. It explains why you couldn't boot into the upgraded kernel. Apparently, the new kernel assigned different drive letters to your IDE devices (hard disks).

Hope this helps,
- Eric
User avatar
EMD
 
Posts: 989
Joined: 2007-06-10 03:03
Location: /dev/tty7 (Don't deny it. You're here too!)

Postby demon » 2007-11-08 19:21

Yeah, I discovered as well somewhere here in debian forum. I thought about it. For now, I leave my kernel, I will think about it later. :)

EDIT -
Fixed with fresh installation.
Thanx
Debian Testing 64
User avatar
demon
 
Posts: 342
Joined: 2007-09-26 19:04
Location: Prague

Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable