红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

关机时NetworkManager出错,导致无法关机

发布时间:2008-09-30 00:11:44来源:红联作者:laoshue
在终端输入sudo gedit /etc/modules,在文件的末尾添加:apm power_off=1

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
apm power_off=1

在终端输入sudo gedit /boot/grub/menu.lst,在文件中找到“title Ubuntu 8.04, kernel 2.6.24-17-generic“这句,在其后的”kernel /boot/vmlinuz-2.6.24-17-generic….“后面加上apm=power_off 我自己是这样:"在kernel这一项末尾添加上 acpi=force apm=power_off 保存并关闭即可"

title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=57d2ab1d-11dc-4af2-8e75-334ff2c7fbff ro quiet splash locale=zh_CN apm=power_off
initrd /boot/initrd.img-2.6.24-17-generic
quiet

Ubuntu默认支持IPv6,但有时可能会引起问题。

要禁用它,请打开终端执行命令:gksudo gedit /etc/modprobe.d/aliases

找到行alias net-pf-10 ipv6 并修改为 alias net-pf-10 off

然后重新启动Ubuntu。

自己体会:三个全部改过后能正常关机,前面二个改过后由于apm power_off=1没有令起一行,直接接在LP后面不行,后来改了IPV6,又令起一行后正常关机。
文章评论

共有 0 条评论