Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41

Thread: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

  1. #21
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Thank you!

    I'm back in the repair disk at the terminal, and working through this. I think I'm following ok, but I'm not seeing a LUKS_BOOT (or any boot or crypt) in my /dev/mapper/

    Code:
    root@lubuntu:~# export DEV="/dev/sda"
    root@lubuntu:~# export DM="${DEV##*/}"
    root@lubuntu:~# export DEVP="${DEV}$( if [[ "$DEV" =~ "nvme" ]]; then echo "p"; fi )"
    root@lubuntu:~# export DM="${DM}$( if [[ "$DM" =~ "nvme" ]]; then echo "p"; fi )"
    root@lubuntu:~# sgdisk --print $DEV
    
    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory. 
    ***************************************************************
    
    Disk /dev/sda: 1000215216 sectors, 476.9 GiB
    Model: INTEL SSDSC2KW51
    Sector size (logical/physical): 512/512 bytes
    Disk identifier (GUID): 83B56A1A-89A4-4732-B591-03A7035F0997
    Partition table holds up to 128 entries
    Main partition table begins at sector 2 and ends at sector 33
    First usable sector is 34, last usable sector is 1000215182
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 4717 sectors (2.3 MiB)
    
    Number  Start (sector)    End (sector)  Size       Code  Name
       1            2048         1499135   731.0 MiB   8300  Linux filesystem
       5         1501184      1000214527   476.2 GiB   8300  Linux filesystem
    
    root@lubuntu:~# ls /dev/mapper/
    control
    Does that make sense?

    The output from boot repair gives me command: sudo cryptsetup luksOpen /dev/sda5 myvolume , which worked last time I booted to repair disk.

  2. #22
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    And if you do that now, can you chroot into it to repiar it? (purge NVidia)

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #23
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Thanks again for all your help, I really appreciate it. Sorry for delays, I'm back at my machine and will be for a few weeks at least.

    Yes, I believe I was able to chroot in and purge things, but I don't think it helped. I restarted and was not able to boot into either of the kernel versions, including recovery modes.

    Here's my console session in another pastebin, with the important parts highlighted below. I may have missed mounting something (I followed another post with similar problem), but I'mt nosre sure what.


    root@lubuntu:/# cryptsetup luksOpen /dev/sda5 sda5_crypt
    Enter passphrase for /dev/sda5:
    root@lubuntu:/# vgchange -ay
    2 logical volume(s) in volume group "ubuntu-vg" now active
    root@lubuntu:/# mount /dev/mapper/ubuntu--vg-root /mnt
    root@lubuntu:/# mount /dev/sda1 /mnt/boot
    root@lubuntu:/# mount -t proc proc /mnt/proc
    root@lubuntu:/# mount -o bind /dev /mnt/dev
    root@lubuntu:/# less /etc/crypttab
    root@lubuntu:/# chroot /mnt

    root@lubuntu:/# sudo update-initramfs -k all -c
    update-initramfs: Generating /boot/initrd.img-version
    WARNING: missing /lib/modules/version
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: Bad version passed version
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    depmod: ERROR: Bad version passed version
    update-initramfs: Generating /boot/initrd.img-4.15.0-96-generic

    update-initramfs: Generating /boot/initrd.img-4.15.0-91-generic

    root@lubuntu:/# sudo apt-get purge nvidia*

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libnvidia-cfg1-515 libnvidia-common-515 libnvidia-decode-515 libnvidia-decode-515:i386 libnvidia-encode-515 libnvidia-encode-515:i386 libnvidia-extra-515 libnvidia-fbc1-515 libnvidia-fbc1-515:i386 libnvidia-gl-515 libnvidia-gl-515:i386 screen-resolution-extra xserver-xorg-video-nvidia-515
    Use 'sudo apt autoremove' to remove them.
    The following packages will be REMOVED:
    nvidia-compute-utils-515* nvidia-compute-utils-525* nvidia-dkms-515* nvidia-dkms-525* nvidia-driver-515* nvidia-kernel-common-515* nvidia-kernel-common-525* nvidia-kernel-source-515* nvidia-prime* nvidia-settings* nvidia-utils-515*
    0 upgraded, 0 newly installed, 11 to remove and 51 not upgraded.
    After this operation, 96.0 MB disk space will be freed.
    Do you want to continue? [Y/n] y
    E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
    (Reading database ... 336597 files and directories currently installed.)
    Removing nvidia-driver-515 (515.86.01-0ubuntu0.18.04.1) ...
    Removing nvidia-compute-utils-515 (515.86.01-0ubuntu0.18.04.1) ...
    Running in chroot, ignoring request: stop
    Removing nvidia-dkms-515 (515.86.01-0ubuntu0.18.04.1) ...
    Removing all DKMS Modules
    Done.
    INFOisable nvidia
    DEBUGarsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
    DEBUGarsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
    DEBUGarsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
    update-initramfs: deferring update (trigger activated)
    Removing nvidia-kernel-common-515 (515.86.01-0ubuntu0.18.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Removing nvidia-kernel-source-515 (515.86.01-0ubuntu0.18.04.1) ...
    Removing nvidia-prime (0.8.16~0.18.04.1) ...
    Removing nvidia-settings (470.57.01-0ubuntu0.18.04.1) ...
    Removing nvidia-utils-515 (515.86.01-0ubuntu0.18.04.1) ...
    Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
    Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
    update-initramfs: Generating /boot/initrd.img-version
    WARNING: missing /lib/modules/version
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: Bad version passed version
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    depmod: ERROR: Bad version passed version
    Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
    Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
    Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
    (Reading database ... 336036 files and directories currently installed.)
    Purging configuration files for nvidia-prime (0.8.16~0.18.04.1) ...
    Purging configuration files for nvidia-settings (470.57.01-0ubuntu0.18.04.1) ...
    Purging configuration files for nvidia-kernel-common-525 (525.78.01-0ubuntu0.18.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Purging configuration files for nvidia-kernel-common-515 (515.86.01-0ubuntu0.18.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Purging configuration files for nvidia-compute-utils-525 (525.78.01-0ubuntu0.18.04.1) ...
    Purging configuration files for nvidia-dkms-515 (515.86.01-0ubuntu0.18.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Purging configuration files for nvidia-compute-utils-515 (515.86.01-0ubuntu0.18.04.1) ...
    Purging configuration files for nvidia-dkms-525 (525.78.01-0ubuntu0.18.04.1) ...
    update-initramfs: deferring update (trigger activated)
    Processing triggers for initramfs-tools (0.130ubuntu3.13) ...
    update-initramfs: Generating /boot/initrd.img-version
    WARNING: missing /lib/modules/version
    Ensure all necessary drivers are built into the linux image!
    depmod: ERROR: Bad version passed version
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    dpkg: warning: version 'version' has bad syntax: version number does not start with digit
    depmod: ERROR: Bad version passed version


  4. #24
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Correction, I was able to get my machine back to booting again. Thank you so much for your help! I was able to chroot in, remove the nvidia drivers and the bad kernel files. Now I can boot the machine, but it's completely unusable again due to no graphics drivers.

    The snippet got me most of the way there

    root@lubuntu:/# sudo -i
    root@lubuntu:/# cryptsetup luksOpen /dev/sda5 sda5_crypt
    Enter passphrase for /dev/sda5:
    root@lubuntu:/# vgchange -ay
    2 logical volume(s) in volume group "ubuntu-vg" now active
    root@lubuntu:/# mount /dev/mapper/ubuntu--vg-root /mnt
    root@lubuntu:/# mount /dev/sda1 /mnt/boot
    root@lubuntu:/# mount -t proc proc /mnt/proc
    root@lubuntu:/# mount -o bind /dev /mnt/dev
    root@lubuntu:/# chroot /mnt


    I just needed to run:
    sudo update-initramfs -d -k version to get rid of the errors.


    Where do I go next? From what I've gathered I need to update my kernel and I definitely need to get nvidia drivers installed, but I'm not sure on order. Do I need create another for those questions, or is it appropriate to keep going here?

    If it is, I think I can use driver version 470

    ubuntu-drivers devices
    WARNING:root:_pkg_get_support nvidia-driver-515: package has invalid Support PBheader, cannot determine support level
    WARNING:root:_pkg_get_support nvidia-driver-525: package has invalid Support PBheader, cannot determine support level
    WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
    WARNING:root:_pkg_get_support nvidia-driver-515: package has invalid Support PBheader, cannot determine support level
    WARNING:root:_pkg_get_support nvidia-driver-525: package has invalid Support PBheader, cannot determine support level
    WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
    == /sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0 ==
    modalias : pci:v000010DEd00001F07sv00003842sd00002173bc03sc00i00
    vendor : NVIDIA Corporation
    driver : nvidia-driver-470 - third-party non-free recommended
    driver : nvidia-driver-515 - third-party non-free
    driver : nvidia-driver-525 - third-party non-free
    driver : nvidia-driver-510 - third-party non-free
    driver : xserver-xorg-video-nouveau - distro free builtin

    Is the next step as easy as sudo apt install nvidia-470?
    Last edited by janderson9er; February 25th, 2023 at 05:35 AM.

  5. #25
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    You could do it 3 different ways
    1. Ubuntu Software and Updates > additional Drivers tab > choose the Nvidia 470 driver from the list. > Choose install

    OR

    2.
    Code:
    sudo apt install nvidia-driver 470
    OR

    3.
    Code:
    sudo ubuntu-drivers install nvidia:470

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  6. #26
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Thank you, that got me to the next step! It looks like the driver works (my login screen is in 4k resolution), but now when I try to login it goes to black screen briefly, and then kicks me back to the login screen.

    I ran sudo apt install nvidia-driver-470 and it appeared to work with no problems, pastebin results here.

    I was able to get to terminal again with --- nomodeset --verbose debug 3, no errors there when it loaded besides it says I have 18 packages that I can update.

    nvidia-smi shows the error that it can't communicate with the NVIDIA driver.

    I probably need to nuke those drivers and install a different way or older version?

    Thank you so much for your help so far!
    Last edited by janderson9er; February 25th, 2023 at 06:44 PM.

  7. #27
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Just to make sure you don't have other problems
    Code:
    mafoelffen@Mikes-ThinkPad-T520:~$ ls -lh ~/.Xauthority
    -rw------- 1 mafoelffen mafoelffen 64 Feb 15 22:19 /home/mafoelffen/.Xauthority
    Your's should be same permissions, owned by your userid

    Just confirm that please. That way you are not chasing ghosts, by an additional problem.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  8. #28
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Odd. That file does not exist.

  9. #29
    Join Date
    Apr 2020
    Beans
    30

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Thanks as always!

    I created that file with touch, made sure permissions were set correctly (chmod 600, owned by me), and rebooted. I am seeing the same problem.

  10. #30
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Kernel upgrade, nvidia problems, can't enter recovery mode or access terminal

    Xorg or Wayland?

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Page 3 of 5 FirstFirst 12345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •