Chinaunix首页 | 论坛 | 博客
  • 博客访问: 521493
  • 博文数量: 174
  • 博客积分: 4177
  • 博客等级: 上校
  • 技术积分: 1827
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-15 14:12
文章分类

全部博文(174)

文章存档

2018年(1)

2017年(1)

2013年(3)

2012年(9)

2010年(12)

2009年(5)

2008年(106)

2007年(37)

我的朋友

分类: LINUX

2008-06-01 18:04:44

    前两天在安装Ubuntu的时候,把文件系统选择成了XFS文件系统,结果在安装GRUB的时候提示:GRUB在XFS文件系统上通常都会安装失败,试了一下,果然无法安装,最后只好选用LILO来引导。

   可是系统重启后,之前安装的Debian没有在启动项中,我在/etc/lilo.conf中添加了几项之后,竟然影响到的新立德软件包管理工具人使用,错误提示如下所示:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

  我运行了dpkg --configure -a之后,出现如下的错误:

正在设置 initramfs-tools (0.85eubuntu36) ...
update-initramfs: deferring update (trigger activated)

正在设置 linux-ubuntu-modules-2.6.24-17-generic (2.6.24-17.25) ...
update-initramfs: Generating /boot/initrd.img-2.6.24-17-generic
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-17-generic:

Warning: LBA32 addressing assumed
Unrecognized token "8.04" at or above line 108 in file '/etc/lilo.conf'
dpkg:处理 linux-ubuntu-modules-2.6.24-17-generic (--configure)时出错:
 子进程 post-installation script 返回了错误号 1
dpkg:依赖关系问题使得 linux-image-generic 的配置工作不能继续:
 linux-image-generic 依赖于 linux-ubuntu-modules-2.6.24-17-generic;然而:
  软件包 linux-ubuntu-modules-2.6.24-17-generic 还没有被配置。
dpkg:处理 linux-image-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 linux-generic 的配置工作不能继续:
 linux-generic 依赖于 linux-image-generic (= 2.6.24.17.19);然而:
  软件包 linux-image-generic 还没有被配置。
dpkg:处理 linux-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-17-generic
update-initramfs: lilo run failed for /boot/initrd.img-2.6.24-17-generic:

Warning: LBA32 addressing assumed
Unrecognized token "8.04" at or above line 108 in file '/etc/lilo.conf'
dpkg: 子进程 post-installation script 返回了错误号 1

   看来是lilo的配置文件中出了问题,我修改了一下/etc/lilo.conf文件,运行了一下lilo出现如下的提示:
 
   Warning: LBA32 addressing assumed
   Added Ubuntu_8.04 *
   Added Ubuntu_single
   Added Debian_4.0
   Added Debian_single
   Added Windows
   One warning was issued.

  再运行上面的sudo dpkg --configure -a,这下正常了,运行过程如下所示:

正在设置 initramfs-tools (0.85eubuntu36) ...
update-initramfs: deferring update (trigger activated)

正在设置 linux-ubuntu-modules-2.6.24-17-generic (2.6.24-17.25) ...
update-initramfs: Generating /boot/initrd.img-2.6.24-17-generic
Warning: LBA32 addressing assumed
Added Ubuntu_8.04 *
Added Ubuntu_single
Added Debian_4.0
Added Debian_single
Added Windows
One warning was issued.

正在设置 linux-image-generic (2.6.24.17.19) ...
正在设置 linux-generic (2.6.24.17.19) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.24-17-generic
Warning: LBA32 addressing assumed
Added Ubuntu_8.04 *
Added Ubuntu_single
Added Debian_4.0
Added Debian_single
Added Windows
One warning was issued.

下面附上我的/etc/lilo.conf配置文件:

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt' (if you have created it), or   |
# | install a new kernel.  The computer will most likely fail to  |
# | boot if a kernel-image post-install script or you don't       |
# | remember to run `lilo'.                                       |
# |                                                               |
# +---------------------------------------------------------------+

# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/sda

# Specifies the device that should be mounted as root. (`/')
#
#root=/dev/sda8

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=50

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
#    prompt
#    delay=100
#    timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, )
#
# vga=ask
# vga=9
#


# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
 
# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Ubuntu_8.04

image=/vmlinuz
    label="Ubuntu 8.04"
    read-only
#    restricted
#    alias=1
    append="root=/dev/sda8  "
    initrd=/initrd.img

image=/vmlinuz
    label="Ubuntu single"
    read-only
#    restricted
#    alias=2
    append="root=/dev/sda8  single"
    initrd=/initrd.img


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
image=/vmlinuz
    label="Debian 4.0"
#    restricted
#    alias=3
    append="root=/dev/sda5 "
    initrd=/initrd.img


image=/vmlinuz
    label="Debian single"
#    restricted
#    alias=4
    append="root=/dev/sda5 single"
    initrd=/initrd.img

other=/dev/sda1
    label=Windows
#    restricted
#    alias=5

阅读(984) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~