Recovery from failed upgrade from Ubuntu 14.10 to 15.10

Why upgrade failed?

When the upgrade is ongoing, I plugged out the power and the network wire, then Ubuntu hanged and the upgrade stopped there without any response.
We know there are several steps in the upgrade process, such as downloading the packages and installing the package locally.
Since the download seems finished, I think the packages are installed in local and the network is not needed in this step.
But I was wrong.

What the consequence?

After I reboot the laptop by pressing the power button for several seconds, Ubuntu can not started into GUI normal desktop environment! And there is some error output in the command line window.

What should I do to recover Ubuntu?

recovery mode

If your system fails to boot for whatever reason, it may be useful to boot it into recovery mode. This mode just loads some basic services and drops you into command line mode. You are then logged in as root (the superuser) and can repair your system using command line tools. If booting into recovery mode does not work you can still use your installation CD (if it is a live cd) as described in LivecdRecovery.

How to enter recovery mode?

After turn on the power, and just before entering the Ubuntu, quick click the Shift button.

Commands to recover the original version of Ubuntu

  • sudo dpkg –get-selections | grep linux
  • sudo apt-get remove linux-image-3.16.0-xx-generic
  • sudo apt-get autoremove
  • sudo reboot -f

NOTE: the method here is only for reference. The command may destroy your Ubuntu.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值