1

I've done a fresh install of Ubuntu 18.04.3 LTS Server on my workstation, and run into a peculiar issue. Every time I do an install/update of the base system:

apt-get update

the system freezes on reboot. That is, the machine just hangs with a blank screen. However, if I then do a CMOS reset on my motherboard, the OS then comes back up. I'm not sure how to diagnose this further. I've checked /var/log/syslog and don't see anything out of the ordinary (perhaps I don't know what to look for?). I've done the usual things for grub:

GRUB_CMDLINE_LINUX="acpi=off nomodeset"

I do have an NVIDIA card (Titan RTX) in the system, and my motherboard is an ASUS SAGE X299.

Please let me know how to diagnose this further. It's not practical to keep doing CMOS resets. Thanks!

Pilot6
  • 90,100
  • 91
  • 213
  • 324
  • You need nomodeset to boot before you install nVidia driver, but once driver installed, you need to remove nVidia driver. https://ubuntuforums.org/showthread.php?t=2397473 – oldfred Nov 21 '19 at 18:50
  • @oldfred Once the driver is installed you need to remove nomodeset, not the driver. – Pilot6 Nov 22 '19 at 17:12
  • Sorry, I did mean remove nomodeset boot parameter. – oldfred Nov 22 '19 at 17:29
  • Did you have installed dkms? I think that problem is, that without dkms nvidia proprietary driver is not installed for newer linux-kernel. So try to install dkms and (maybe) reinstall nvidia drivers. – UNIm95 Nov 24 '19 at 02:50
  • It could be that this is related to the UEFI cr*p on your mainboard. Check if there is a newer BIOS version available and update the BIOS, just to make sure it is not related to an old UEFI BIOS. – s1mmel Nov 27 '19 at 11:45

2 Answers2

0

You need to check the /var/log/install/syslog file instead of /var/log/syslog because that's where the OS installation log is stored. See where the log ends. My log for Ubuntu-18.04.3-server from successful installation ends with following lines:

Nov 20 13:01:37 in-target: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:51
Nov 20 13:01:37 in-target:
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/65partman-md
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/70mtab
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/90base-installer
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/90console
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/94random-seed
Nov 20 13:01:37 finish-install: info: Running /usr/lib/finish-install.d/94save-logs
0

First of all, we don’t have to make any permanent changes to GRUB.

Change it back to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Secondly, while booting press e on the GRUB menu and add nomodeset just at the end of quiet splash nomodeset $vt... Then press either F10 key or Ctrl+x.

Type journalctl -xb and check the end of the lines to find any issue if you could...

Otherwise, try connecting to wifi or internet...

Then run sudo apt update --fix-missing && sudo apt full-upgrade.

First, detect the model of your Nvidia graphic card and the recommended driver. To do so execute:

$ sudo ubuntu-drivers devices

From the output of the above command, we can conclude that the current system has so and so Nvidia graphic card then we can install the recommended driver.

If we agree with the recommendation then we can use ubuntu-drivers command again to install all recommended drivers:

$ sudo ubuntu-drivers autoinstal

This command tells the installed driver package to add itself to your kernel.

Alternatively, we can install the desired driver selectively using the apt command. For example:

$ sudo apt install nvidia-340

Once the installation is concluded, we can reboot the system and we are done.

Also, we can try another method posted on Install Nvidia Drivers on Ubuntu Server 18.04.

Melebius
  • 11,431
  • 9
  • 52
  • 78