2

I have used Linux/Unix in the past, however, I am comparatively new to Ubuntu.

We received a new PC with Ubuntu installed. I installed some software and did an upgrade. Since then, I am unable to login.

When I log in, the screen just flashes and then it goes back to the login screen. I cannot log in with the guest account either.

I have found some posts on this forum describing a similar problem and it involves logging to a ttyX, which I am unable to do.

I can fix this by logging in as root, but it is locked by default in Ubuntu.

I have no idea what to do next.

Zanna
  • 72,312

2 Answers2

0

This is a computer that has no data on it, it seems. Just the installation of Ubuntu plus some software. Best solution is to reinstall using 16.04. If it's an older computer or if it has little RAM, make sure you install Ubuntu Mate, and avoid anything with 3D desktops like Gnome3 and Unity. The Mate desktop makes a big difference in speed. You can make this change later if needed.

After installation, make sure you enable the SSH server, so you can login from another computer. You should enable UFW as well, the default firewall for Ubuntu. Enable port 22 to allow incoming SSH traffic. Then test this, so you know it works.

Reinstalling has another bonus. It increases your experience with Ubuntu, and makes sure the system is back to a fresh state. You have more control over what happened to it.

You can choose to use LVM during the installation process. This makes it possible to create snapshots of the system, making it possible to go back to a previous state if things go wrong.

NB: My solution doesn't give a solution to this specific problem. But to me you want your computer to work. Finding a solution that takes hours without any guarantee while reinstalling takes less than an hour - for me it's a no-brainer.

Unless of course the computer has data on it that is important and not backed up. In that case, use an Ubuntu live stick, and copy the data to an external disk and then reinstall.

Of course the same problem could appear after reinstallation. So make sure that SSH server works, and then you can work from there.

SPRBRN
  • 2,535
0

So, here is the workaround I found:

I managed to access the GRUB screen by hitting the Shift key right after the BIOS started. From there, I chose to restore Ubuntu to factory defaults. Not ideal because I lost the settings and installations I had done before, but still better than installing anew.