QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3211|回复: 12

安装gnome后居然无法引导启动Debian! 请教大家了!

[复制链接]
发表于 2006-12-26 01:48:50 | 显示全部楼层 |阅读模式
本人在VMware内用debian-31r2-i386-businesscard的iso镜像文件网络安装了Debian后,常规用testing的安装源进行了apt-get update 和 apt-get upgrade后,开始了apt-get install x-window-system-core 然后又apt-get install gnome
     过程中好象有提示说kernel-image-2.6.8-3-386文件和initrd之类的东西有冲突要被删除,也要更新或者重新导入新的模块(系统提示不推荐这样做),当时没有想那么多,就回答yes继续安装完后也进得了x-window图形模式。
    重启后居然直接进入了grub提示符下,想要引导时提示没有了内核镜像,后来想想应该是安装gnome过程中的提示消息,应该做个备份什么的,或者update-grub和更新模块,是不是应该这样呢?

    请大家帮忙:
   
    我现在如何在grub提示符下引导恢复Debian?还是真的要重装Debian?或者在重装后在出现那个提示时我应该怎么做才对?
   
    先在此谢谢大家能帮我一下!
发表于 2006-12-28 13:23:49 | 显示全部楼层
用grub搜索一下看看在/boot里的内核img在不在
回复

使用道具 举报

发表于 2007-1-4 20:15:15 | 显示全部楼层
我也碰到类似的问题了,全新安装好了Debian,最小安装,只安装了samba。然后随便安装一个什么工具,screen,rtorrent,mldonkey都提示要移出Kernel-image。而且不管我的kernel-image 是2.4还是2.6都出现这样的情况。

搭车寻找一下问题根源。
我使用的源是stable 和testing
回复

使用道具 举报

发表于 2007-1-5 10:18:44 | 显示全部楼层
最小安装,只安装了samba。然后随便安装一个什么工具,screen,rtorrent,mldonkey都提示要移出Kernel-image。

update kernel 先
回复

使用道具 举报

发表于 2007-1-6 10:56:07 | 显示全部楼层
[quote:1e7a241d7d="linky_fan"]
最小安装,只安装了samba。然后随便安装一个什么工具,screen,rtorrent,mldonkey都提示要移出Kernel-image。

update kernel 先[/quote]

update?我升级过kernel,升级到2.6.8.3仍然会出现这样的情况。我在安装软件以前都已经upgrade到没有可以更新的状况才开始安装的。

奇怪了……找不到原因了。
回复

使用道具 举报

发表于 2007-1-8 10:09:12 | 显示全部楼层
apt-get update && apt-get install mldonkey-server
BTW:那东西是unstable的。
回复

使用道具 举报

发表于 2007-1-8 10:52:52 | 显示全部楼层
奇怪呀,screen应该不会必须是unstable的呀。

附提示信息:
# apt-get install screen
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libc6 libc6-dev libncursesw5 locales tzdata
Suggested packages:
glibc-doc
The following packages will be REMOVED:
initrd-tools kernel-image-2.4.27-3-386
The following NEW packages will be installed:
screen tzdata
The following packages will be upgraded:
libc6 libc6-dev libncursesw5 locales
4 upgraded, 2 newly installed, 2 to remove and 200 not upgraded.
Need to get 0B/12.7MB of archives.
After unpacking 25.9MB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 19026 files and directories currently installed.)
Removing kernel-image-2.4.27-3-386 ...

You are running a kernel (version 2.4.27-3-386) and attempting to remove
the same version. This is a potentially disastrous action. Not only
will /boot/vmlinuz-2.4.27-3-386 be removed, making it impossible to boot
it, (you will have to take action to change your boot loader to boot
a new kernel), it will also remove all modules under the directory
/lib/modules/2.4.27-3-386. Just having a copy of the kernel image is not
enough, you will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt, answer
no. If you know exactly what you are doing, and are prepared to
hose your system, then answer Yes.
Remove the running kernel image (not recommended) [No]?
dpkg: error processing kernel-image-2.4.27-3-386 (--remove):
subprocess pre-removal script returned error exit status 1
dpkg: initrd-tools: dependency problems, but removing anyway as you request:
kernel-image-2.4.27-3-386 depends on initrd-tools (>= 0.1.4.
Removing initrd-tools ...
Errors were encountered while processing:
kernel-image-2.4.27-3-386
E: Sub-process /usr/bin/dpkg returned an error code (1)

把kernel-image升级到 kernel-image-2.6.8-3-686 以后,在安装软件也会在安装的时候要求remove kernel-image-2.6.8-3-686。如果remove掉运行的kernel-image启动就会停在grub。
帮忙看看到底是什么问题。
回复

使用道具 举报

发表于 2007-1-9 09:51:47 | 显示全部楼层
看你开始用的安装是用的sarge的盘装的是吧?然后apt update到了etch,问题就应该在这里,sarge里用的kernel-image和对应的initrd-tools。而etch里用的kernel包的名字是linux-image-xxx,当你尝试安装一个etch里的软件包时,包管理机制就会查看依赖性,接着它会发现重要的kernel包没有,有的只有老的sarge的包,它就会要求删除老的包,然后就出现了你上面的情况。

解决方法有两个:
1、apt get一个linux-image的包,重启后把原来的内核包(也就时kernel-image-xxx)删除掉。在装其他的东西。
2、自己下载内核源代码编译一个用,绕过apt的包管理机制(要它要删就让它删好了^-^)

个人推荐用第一个
回复

使用道具 举报

发表于 2007-1-9 17:36:32 | 显示全部楼层
谢谢版主,我安装的光盘是debian官方网站上下载的那个netinstall。具体版本我还真不清楚。我看网络上的资料,似乎都是从stable的开始安装,然后修改sources更新到其他版本的呀。

另外,此安装光盘在之前我也有安装好过系统,以及我所需要的软件。唯独现在出现这样的情况了。

谢谢指点的方法。进一步咨询一下,如果是第一种方法,似乎就是升级kernel-image?
是不是这个?
#apt-get install kernel-image-2.6.8-3-386

“重启后把原来的内核包(也就时kernel-image-xxx)删除掉。”
这个具体如何操作?

关于第二种方法,我倒是想删,只不过很无赖,我删除以后系统就无法正常进入了,只到grub就停下来了。因为还是初手,结果不知道怎么办了。
回复

使用道具 举报

发表于 2007-1-10 10:29:21 | 显示全部楼层
pt-get install kernel-image-2.6.8-3-386

是linux-image-xxx
回复

使用道具 举报

发表于 2007-1-11 02:28:55 | 显示全部楼层
:neutral:  

感谢版主,终于搞定了。
install linux-image以后,remove了老的kernel-image,系统终于可以正常安装其他软件了。
回复

使用道具 举报

发表于 2007-1-11 08:44:17 | 显示全部楼层
活活,搞定了也不用到2:28am还不睡觉啊
回复

使用道具 举报

发表于 2007-1-12 13:54:58 | 显示全部楼层
[quote:8f47a6d6f7="linky_fan"]活活,搞定了也不用到2:28am还不睡觉啊 [/quote]
没有办法,最近网络不太正常。apt-get也只好放到大家都睡觉的时候来进行。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 21:48 , Processed in 0.475291 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表