0

I am using Ubuntu 18.04. After my Laptop froze, I hit the power button to shut it down and rebooted it. The login screen came up, I entered my credentials and then got a black screen and the cursor. Nothing more. I have been recently installing some package to use an Pinyin/ Chinese keyboard and yesterday installed some updates (but hadn't restarted until today morning). Hot button don't work and can't change to Function keys either.

Has anyone had this experience? Is there any way to restore it without losing data?

  • 1
    Can you boot to an earlier kernel version: askubuntu.com/questions/1014634/… in recovery mode? If so, you can try to fix the problem in recovery mode. – karel Oct 24 '18 at 9:39
  • 1
    Recovery mode works. Entered recovery mode: Recovery Menu (filesystem state: read-only). Suggestions on how to proceed? – Chronicle Oct 24 '18 at 9:46
  • Ok, I am acting really stupid here: THe GNU GRUB shows: the following: Ubuntu, with Linux 4.15.0-35-generic; Ubuntu, with Linux 4.15.0.38-generic (recovery mode); Ubuntu, with Linux 4.15.0-36-generic; Ubuntu, with Linux 4.15.0-36-generic (recovery mode). I chose the recovery mode 0-36. And then it shows me the following: Recover Menu: - resume; -clean; -dpkg; -fsck; -grub; -network; -root; -system summary. – Chronicle Oct 24 '18 at 10:06
0
  1. Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift or Esc is unnecessary.

    The timing when to press the left Shift or Esc key can be tricky, so sometimes if you miss it you need to try it again.

    You will see a GNU GRUB menu screen that looks like this:

    enter image description here

  2. From the next screen select any recovery mode option.

    enter image description here

  3. From the Recovery Menu use the arrow keys to select network, press the Tab key to put the focus on <OK> and press Enter.

  4. From the Recovery Menu use the arrow keys to select root, press the Tab key to put the focus on <OK> and press Enter.

    enter image description here

  5. Check Where can I look up my update history?, and write down every package that was updated in the last update.

  6. Fix E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    Up to this point you can run commands in recovery mode, but the commands that you try are not always successful because of package management issues. You can't install software or access the all the default software repositories. I recommend running the Ubuntu live USB/DVD that you used to install Ubuntu as a live session in order to check if the Ubuntu live session also freezes. This is to check the possibility that the freezing may be caused by a hardware issue.

| improve this answer | |
  • Ok, thanks. So far I could open the shell prompt in 0-36-generic (recovery mode), which is the oldest kernel. Using dpkg as instructed in point 3. got me several files: Some are linux-headers, others are linux-images, linux-modules (all have severalversions 36 or 38). Which of these do I have to remove? – Chronicle Oct 24 '18 at 10:38
  • Ok, all done. Only the 36 version showing in GRUB, but after login the screen remains black with a movable white cursor. – Chronicle Oct 24 '18 at 10:49
  • Hm, that bring up a whole new problem: Among others: "W: Not using locking for read only lock file /var/lib/dpkg/lock". Could it be that the network is not on? – Chronicle Oct 24 '18 at 11:11
  • That was my mistake. I forgot that you are already the root user, so you don't need to use sudo to run commands that require root permissions. – karel Oct 24 '18 at 11:15
  • It states: Err 1: ch.archive.ubuntu.com/ubuntu ionic/universe amd64 lightdm amd64 1.26.0-0ubuntu1; Could not resolve 'ch.archive.ubuntu.com; E: Failed to fetch ch.archive.ubuntu.com/ubuntu/pool/universe/l/lightdm/…; Coul not resolve 'ch.archive.ubuntu.com'; E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? – Chronicle Oct 24 '18 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.