Page 1 of 2

Ubuntu 20.04 Installation bugs

Posted: Mon 07 Sep 07 2020 10:05 am
by Daniel Wee
First bug is to address the "nosplash" or "splash" option that needs to be removed. After installation, select Ubuntu options and enter the recovery mode. Select fsck to get files mounted. Enable networking. Drop to root (and press Enter).

Code: Select all

nano /etc/default/grub
- remove the "nosplash" option from the last line

Code: Select all

update-grub
You might as well do a apt update and upgrade while here.

While here, note that NVIDIA drivers WILL NOT WORK WITH SECURE BOOT!!!!!!!!!!!!!!!!!!!!!!!!!!

Re: Ubuntu 20.04 Installation bugs

Posted: Mon 07 Sep 07 2020 10:11 am
by Daniel Wee
The second problem has to do with an error that pops up because the EFI partition is not on the same physical drive as the Ubuntu partition. This shows up as a "shim-signed" error that wants to be reported.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1736080

Code: Select all

sudo fdisk -l
Look for the EFI partition (in my case /dev/sdb1). In our machine, this could also be the EFI partition /dev/sda2 which has a different UUID. I would guess that you would use /dev/sda2 for best compatibility since it installed with this.

Code: Select all

sudo blkid -ovalue -sUUID /dev/sdb1

Code: Select all

sudo blkid -ovalue -sUUID /dev/sda2
Copy the UUID in the form of xxxx-xxxx (8F00-963D or 0054-D9AE)

sudo nano /etc/fstab and use this UUID for the EFI partition instead.

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 6:25 pm
by Daniel Wee
Install net-tools so that ifconfig is available:-

Code: Select all

sudo apt install net-tools
Install openssh so that you can ssh in:-

Code: Select all

sudo apt install openssh-server
A reboot is required after this for the SSH port to become active.

In the Ubuntu "Software", under the first tab, make sure that the CD-ROM option is unchecked or it will keep asking for the CD-ROM to be inserted when installing software.

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 6:46 pm
by Daniel Wee
To get the NVIDIA drivers installed properly:-

Code: Select all

sudo apt update
sudo apt upgrade
This usually does the trick getting it upgraded to the latest drivers.

There may be files kept back from the apt upgrade process. To solve this, run:-

Code: Select all

sudo apt dist-upgrade
In some cases, the dist-upgrade is not needed but you may want to run:-

Code: Select all

sudo apt autoremove
This should remove stubs and obsoleted packages. In this case, you may want to instigate an upgrade:-

Code: Select all

sudo ubuntu-drivers autoinstall
At this point, we are at nvidia driver version 440 and will require a reboot. This resulted in recovery of the 4k display.

At this point, we want to get the latest version of the driver so we need to update the repository:-

Code: Select all

sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt upgrade
This is followed by a reboot. At this point, the 450 driver should be in the Additional Drivers list in the "Software & Updates" but cannot be selected because the driver appears to be set to some "manual" setting.

If you want to install the NVIDIA driver from the downloaded run file, you may need to disable the nvidia-drm that is running:-

Code: Select all

sudo systemctl isolate multi-user.target
sudo modprobe -r nvidia-drm
You will probably need to skip the DKMS build and okay the use of signing, generate the keys, and so on. The problem seems to be that the installer is expecting a different version of GCC than is present on Ubuntu 20.04. You could conceivably fix this by installing the requisite version of GCC and then setting the environment variable to point to it but this is rather involved.

This will disable the GUI, which can be restored later with:-

Code: Select all

sudo systemctl isolate graphical.target
(DO NOT USE VERSION 450 or 455 - they FAIL. USE version nvidia-440-server)
After this, there seems to be a need to upgrade to install the latest driver (version 450 at this time). Doing this, however, KILLS THE VIDEO SYSTEM:-

Code: Select all

sudo apt install nvidia-driver-450
In my case, since it was already done - I had to remove this using:-

Code: Select all

sudo apt remove --purge nvidia-driver-450
sudo apt install nvidia-driver-440-server
This might not be completely necessary but the step to try would be to go into "Software & Updates" and select the nvidia-driver-440-server (proprietary) option and Apply that.

In order to prevent apt update from changing this driver, do the following:-

Code: Select all

sudo apt-mark hold nvidia-compute-utils-440 nvidia-dkms-440 nvidia-driver-440-server nvidia-kernel-common-440 nvidia-utils-440

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 7:50 pm
by Daniel Wee
It may be good to install some support files to prevent later problems here:-

Code: Select all

sudo apt install build-essential libc6:i386 libglvnd-dev pkg-config
To check the current driver, use either of the following:-

Code: Select all

sudo lspci -nnk | grep -i vga -A3 | grep 'in use'
sudo lshw -c video
A number of other cleanups:-

sudo nano /etc/X11/xorg.conf

under the Section "Device", add a line:-

BusID "PCI:1:0:0"

https://forums.developer.nvidia.com/t/d ... 0/124839/6

You can then check for blacklists:-

Code: Select all

grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*
In some cases, you may want to delete the blacklisted nouveau driver .conf files.

Easiest way to get CUDA installed without worry about dealing with 18.04 images:-

Code: Select all

sudo apt install nvidia-cuda-toolkit
For cdDNN and Tensorflow 2.2, you will want version 7.6.5 with CUDA 10.1 for Ubuntu 18.04 downloaded from their website. This is then installed using:-

Code: Select all

dpkg -i packagename.deb

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 11:27 pm
by Daniel Wee
Fixing the initramfs unpacking error at booting:-

https://bugs.launchpad.net/ubuntu/+sour ... ug/1835660

Code: Select all

sudo nano /etc/initramfs-tools/initramfs.conf
Change COMPRESS=gzip to instead of lz4

Code: Select all

sudo update-initramfs -u
Discussions seem to suggest the below is the correct way but the above command worked.

Code: Select all

sudo update-initramfs -c -k all
Reboot

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 11:43 pm
by Daniel Wee
In "Software & Updates" under the Additional Drivers tab, disable the use of the Broadcom network adapter - this will disable Wi-FI.

Optionally to use lightdm:-

Code: Select all

sudo apt install lightdm
The problem with lightdm is that you cannot automatically log into the desktop at boot. gdm3 seems preferable.

Code: Select all

sudo dpkg-reconfigure gdm3

Re: Ubuntu 20.04 Installation bugs

Posted: Sat 19 Sep 19 2020 11:54 pm
by Daniel Wee
At this point, I want to install the CUDA support:-

Code: Select all

sudo apt install nvidia-cuda-toolkit
Which nicely installs CUDA 10.1.243 which is what I want.

For the cdDNN, get version 7.6.5 for CUDA 10.1 for Ubuntu 18.04 from the NVIDIA webpage. Install with:-

Code: Select all

dpkg -i packagename.deb

Re: Ubuntu 20.04 Installation bugs

Posted: Sun 20 Sep 20 2020 12:28 am
by Daniel Wee
To install the Nextcloud client:-

Code: Select all

sudo apt-add-repository ppa:nextcloud-devs/client
sudo apt update
sudo apt install nextcloud-client

Re: Ubuntu 20.04 Installation bugs

Posted: Sun 20 Sep 20 2020 5:20 pm
by Daniel Wee
To improve the resolution, you will want to use the nvidia-settings utility:-

Code: Select all

sudo nvidia-settings
Under Display Configuration, set the resolution to 3840-2160 then apply and save.

This will throw up an error when you try to save the settings that needs to be fixed by installing the following:-

Code: Select all

sudo apt install xserver-xorg-dev