LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-06-2008, 06:10 PM   #16
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32

Quote:
Can't I use my old CD with Debian (debian adm64 4.0 r1)
Yes. The installation cd is a 64-bit live cd, so you can use that. The steps should be the same as what I indicated above. I think you can press ctrl-alt-f2/3/4/5/6 to open a console from the installer.

Quote:
use dfsg
?????
The dfsg (Debian Free Software Guidelines) is a document, not a program. You can read it at http://www.debian.org/social_contract
Maybe you mean dpkg? No, dpkg does not allow any type of search (only aptitude can do that from the command line). It only installs a package file (you need the actual file, it cant download it). This should work.

The most recent amd64 kernel for etch is 2.6.18, the filename is linux-image-2.6.18-5-amd64_2.6.18.dfsg.1-17_amd64.deb , you can download it here, it should also be on the cd (but the cd might have an older version if 2.6.18-5 was released after etch).

Before chrooting to your system, copy the package file to it (e.g. to /tmp). Then, install it with
Code:
dpkg -P hotplug && dpkg -i /tmp/linux-image-2.6.18-5-amd64_2.6.18.dfsg.1-17_amd64.deb
 
Old 01-06-2008, 06:18 PM   #17
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by uffe2 View Post
Can't I use my old CD with Debian (debian adm64 4.0 r1)
Is it possible to(insted of using apt-get) use dfsg and get the Debian adm64 kernel image from my Debian CD?
I have never used dfsg before.
I think there exist some search function in the dfsg,
but not in the apt-get.
My primary problem now is to find the name of the adm64 kernel package for Debian.....
put your install disk in and press F2 or F3 what ever it asks for then do a rescue boot install your kernel. grub is looking in /boot/ your kernel but you uninstalled it.and actually grub is looing for /boot vmlinuz and a initrd.image. good luck you could actually do this manualy with a live cd.
 
Old 01-07-2008, 06:48 AM   #18
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Yes, I meant dpkg (not dfsg).

Quote:
Originally Posted by stefan_nicolau View Post
Yes. The installation cd is a 64-bit live cd, so you can use that. The steps should be the same as what I indicated above. I think you can press ctrl-alt-f2/3/4/5/6 to open a console from the installer.

?????
The dfsg (Debian Free Software Guidelines) is a document, not a program. You can read it at http://www.debian.org/social_contract
Maybe you mean dpkg? No, dpkg does not allow any type of search (only aptitude can do that from the command line). It only installs a package file (you need the actual file, it cant download it). This should work.

The most recent amd64 kernel for etch is 2.6.18, the filename is linux-image-2.6.18-5-amd64_2.6.18.dfsg.1-17_amd64.deb , you can download it here, it should also be on the cd (but the cd might have an older version if 2.6.18-5 was released after etch).

Before chrooting to your system, copy the package file to it (e.g. to /tmp). Then, install it with
Code:
dpkg -P hotplug && dpkg -i /tmp/linux-image-2.6.18-5-amd64_2.6.18.dfsg.1-17_amd64.deb
 
Old 01-07-2008, 06:49 AM   #19
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Tonight I should try to boot my PC from my Debian CD
and try to install Linux-AMD64 kernel by using the Debian 'rescue' utility

Quote:
Originally Posted by Drakeo View Post
put your install disk in and press F2 or F3 what ever it asks for then do a rescue boot install your kernel. grub is looking in /boot/ your kernel but you uninstalled it.and actually grub is looing for /boot vmlinuz and a initrd.image. good luck you could actually do this manualy with a live cd.
 
Old 01-07-2008, 02:51 PM   #20
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Now I have try to boot on the Debian CD and "push" F2 or F3.
I came to a boot prompt
>boot:
I use the command
>boot: rescuegui

The I get the grub installed, but not the kernel !!?!
Then I try the command
>boot: expertgui
I start the "expert"-installation but I have feeling this is not the right way, so abort it.
What shold I do now ?
I have a extra external empty usb harddisk.
Maybe I should this to install Debian on and then use the
chroot ....?!

I starting to be very confused over what I should do now.....?!)(*
 
Old 01-07-2008, 03:29 PM   #21
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
If want to use the debian rescue cd, type 'rescue' at the boot prompt. After a few screens, this should open a shell on your installed system. Read the debian installation guide at http://www.debian.org/releases/stabl...h08s07.html.en

Once in the shell, install the kernel package with aptitude or apt-get.
 
Old 01-07-2008, 04:21 PM   #22
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
I try to remove hot/plug and install the Linux kernel when PC was booting from a live-CD AMD64 with Ubunto and dpkg and get this messages:

ubuntu:/# dpkg -P hotplug
(Reading database ... 96620 files and directories currently installed.)
Removing hotplug ...
Purging configuration files for hotplug ...
/var/lib/dpkg/info/hotplug.postrm: line 6: /dev/null: Permission denied
/var/lib/dpkg/info/hotplug.postrm: line 7: /dev/null: Permission denied
/var/lib/dpkg/info/hotplug.postrm: line 20: /dev/null: Permission denied
dpkg: error processing hotplug (--purge):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
hotplug
ubuntu:/#
ubuntu:/#
ubuntu:/#
ubuntu:/# dpkg -i amd64dfsg.deb
(Reading database ... 96621 files and directories currently installed.)
Preparing to replace linux-image-2.6.18-5-amd64 2.6.18.dfsg.1-17 (using amd64dfsg.deb) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
sh: /dev/null: Permission denied
sh: /dev/null: Permission denied
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
sh: /dev/null: Permission denied
sh: /dev/null: Permission denied
Could not find mkinitramfs-kpkg mkinitrd.yaird. at /var/lib/dpkg/tmp.ci/preinst line 238, <STDIN> line 9.
The directory /lib/modules/2.6.18-5-amd64 still exists. Continuing as directed.
Done.
Unpacking replacement linux-image-2.6.18-5-amd64 ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
sh: /dev/null: Permission denied
sh: /dev/null: Permission denied
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running postrm hook script /sbin/update-grub.
/sbin/update-grub: line 6: /dev/null: Permission denied
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!

Searching for GRUB installation directory ... found: /boot/grub
/usr/sbin/update-grub: line 245: /dev/null: Permission denied
/usr/sbin/update-grub: line 251: /dev/null: Permission denied
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-amd64
Updating /boot/grub/menu.lst ... done

dpkg: dependency problems prevent configuration of linux-image-2.6.18-5-amd64:
linux-image-2.6.18-5-amd64 depends on initramfs-tools (>= 0.55) | yaird (>= 0.0.12-8) | linux-initramfs-tool; however:
Package initramfs-tools is not installed.
Package yaird is not installed.
Package linux-initramfs-tool is not installed.
Package initramfs-tools which provides linux-initramfs-tool is not installed.
dpkg: error processing linux-image-2.6.18-5-amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.18-5-amd64
ubuntu:/#


When I try to boot the system now it found the first boot file
kernel /boot/vmlinuz-2.6.18.5.amd64
but not this file
initrd /boot/initrd.img-2.6.18-5-amd64
 
Old 01-07-2008, 04:25 PM   #23
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
I have already done this and I could only install the grub again,
but I could not install the image for the kernel.


Quote:
Originally Posted by stefan_nicolau View Post
If want to use the debian rescue cd, type 'rescue' at the boot prompt. After a few screens, this should open a shell on your installed system. Read the debian installation guide at http://www.debian.org/releases/stabl...h08s07.html.en

Once in the shell, install the kernel package with aptitude or apt-get.
 
Old 01-07-2008, 07:52 PM   #24
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
try to remove hot/plug and install the Linux kernel when PC was booting from a live-CD AMD64 with Ubunto and dpkg and get this messages:
/dev/null errors are probably due to not having mounted udev under your target tree.
As for the rest, you should install the packages it wants first:
Quote:
Package initramfs-tools is not installed.
Package yaird is not installed.
Package linux-initramfs-tool is not installed.
Package initramfs-tools which provides linux-initramfs-tool is not installed.
Quote:
I have already done this and I could only install the grub again,
but I could not install the image for the kernel.
Did you use 'rescue' or 'rescuegui'?
 
Old 01-08-2008, 06:01 AM   #25
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
I use 'rescue' and succeed to remove (uninstall) udev-hotplug software.
then I try to use 'rescue' to install the Linux kernel but I failed,
but I should try more tonight.
 
Old 01-08-2008, 06:29 PM   #26
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Now I have boot on my Debian CD with the 'rescue' option
and then I try to install my kernel file for amd64.deb, but I got this error message:

sh-3.1# dpkg -i amd64.deb
dpkg: failed to open package into file '/var/lib/dpkg/available' for reading: Input/output error
sh-3.1#

This problem sucks....

What's wrong now ?
 
Old 01-09-2008, 03:46 AM   #27
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Now I have traced the file '/var/lib/dpkg/available'
and the size is 0 bytes ?! and the type is "unknown" ?! strange....
It's not possible to open the file e.g. with a editor...also strange....

But then I found another file '/var/lib/dpkg/available.old'
with the size of ~1Mbyte and seems to contain some sort of dpkg package descriptions.

Maybe some earlier trials to install the amd64 kernel has failed with DPKG and results with corrupt 'available' file !?
Should I try to rename the file 'avilable.old' to 'avilable'
and then boot on my Debian CD with the 'rescue' option and then try to install the Linux kernel for AMD64 ?

I saw some other treads about corrupt 'available'-file
and was recommended to run
>dpkg --clear-avail
>apt-get update

Is this a better solution, then rename to old file?

I reed in some other threads this 'available'-file should contain all available package from Debian.
Just now it's most importent for me,
to get the system up and running with the Linux kernel.

Could I update the 'available' file from Debian after I have repair the 'kernel' and boot the Linux system ?

Could I get some recomendation, because I'm still a newbie on Linux ?
 
Old 01-09-2008, 10:41 AM   #28
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
I saw some other treads about corrupt 'available'-file
and was recommended to run
>dpkg --clear-avail
>apt-get update
This should work. If it doesn't, check your internet connection and your sources.list

Quote:
Should I try to rename the file 'avilable.old' to 'avilable'
Might work, or might not. Depends on the content of available.old (btw, I have available-old, not available.old). On my system, both are identical, though my guess is that every time you apt-get update, available gets moved to available-old.
 
Old 01-09-2008, 12:34 PM   #29
uffe2
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
UP AND RUNNING !!!
==================

I try to install the kernal with dpkg, but get a lot off errormessage.
Then I try use apt-get -P amd64 and then try to install the it agagin with dpkg but get a lot of error mesages. Then I try to use apt-get -i amd64,
but I get a lot of error and recomendation to install some software (have forget the name) and I try again to install the kernel,but still get warnings messages.
I just act i desperation....like "try and error"...
But, when I reboot the PC on the hard disk,
it start Linux correct !!
I was suprised, because that wasn't expected.
Anyway, thanks-thanks-thanks to Drakeo and especially to Stefan N !
 
Old 01-10-2008, 11:48 AM   #30
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Congratulations!
 
  


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
I have lost the AMD64 kernal file ! uffe2 Linux - Software 1 01-05-2008 05:59 PM
Bind have lost some zone in named.conf & lost db file achilles Linux - Enterprise 0 04-19-2007 06:22 AM
kernal panic after update redhat enterprice 4 from kernal(2.6.9-5) to kernal(2.6.9-42 TAREK-SALAMA Linux - Enterprise 3 09-10-2006 09:07 AM
Lost in Time (Debian AMD64) hungrigerhaifisch Debian 7 03-28-2006 10:07 PM
USB Storage lost from 2.4 to 2.6 kernal move vonst Slackware 7 05-14-2004 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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