ubuntu 安装更新 中断后不能开机解决办法

最新更新: 其实只要是更新中断或其他原因开机不正常,都可以使用本方法。除了可以用光盘外(照顾光驱坏了的),也可以使用一种类似于windowsPE的系统,叫puppy,可以谷歌一下,使用putty官方网站提供的pupusb,可以制作一个usb启动系统。只有102M。我的128u盘就做了一个。然后设置bios为usb-hdd启动。进入系统后,打开一个虚拟终端,输入命令即可。

 

ubuntu 安装更新 中断后不能开机解决办法,提示

udevadm trigger is not permitted while udev is unconfigured。

解决方法为:利用livecd载入打开一个shell(利用sever版也可以,sever版选择修复系统,按提示打开一个shell就可以)

The solution is to use a live-CD to mount the system (or boot from a completely separate installation), mount the failed OS partition(s), and complete the update process:

 

命令如下:

sudo -i

# create a target mount point
mkdir /mnt/target

# mount root
mount /dev/sda8 /mnt/target(sda8指的是ubuntu系统主分区就是dev等文件所在分区,可以使用fdisk -l查看,如果使用putty,可以直接进入分区查看。)
# mount boot
mount /dev/sda9 /mnt/target/boot(boot分区,就是有grub文件的分区。有的和主分区一致。)

# into Jaunty
chroot /mnt/target/

# update

sudo apt-get update
dpkg --configure -a

sudo apt-get upgrade

sudo apt-get dist-upgrade

# done

重启。
exit

#unmount
umount /mnt/target/boot
umount /mnt/target

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值