Code On Start Up Preventing Access

I have installed Zorin OS 17.1 on a Lenovo P15 Gen 1. After a wobbly start I've managed to get it set up!

However, now each time I close the laptop lid with the computer turned on, when I reopen it, where I would normally see a log in field to reaccess the OS I am seeing the below in the very top left corner of the screen.

I cannot do anything with it. No key seems to prompt any action. I keep simply having to physically power down the computer and then restart, obviously losing all my progress.

How do I resolve this?

This looks like a Virtualbox error.
If you are not using Virtualbox, you can just remove the Virtualbox software to resolve the error.

If you are using Virtualbox or running Zorin OS in V.B., try completely removing and purging Virtualbox, then reinstalling and ensuring proper installation of Virtualbox Guest Additions.

Hi, many thanks for jumping in. I am not using Virtual Box for anything. I think it has been installed the whole time though and was never an issue until today (and after all the changes we made yesterday with the drives etc). Unfortunately I get an error message when I try to uninstall:

What is your terminal output for (run each command one at a time):

dpkg -l | grep vbox

dpkg -l | grep vboxguest

dpkg -l | grep virtualbox



It is dpkg -l (L) not dpkg -I (i)

ah ok



Sorry for the delay;
Looks like you do have V.B. installed. Can try removing it and rebooting:

sudo apt remove --purge virtualbox

sudo apt clean && sudo apt autoremove

sudo reboot

Completed those instructions and yes that appears to have resolved the problem! I'm still getting code in the corner of the screen before the user log in page appears, but I can log in and my session is maintained. Sorry the image is blurry, didn't have much time to get it.

It is hard to tell from the image, but I believe that is an UBSAN array out of bounds error.
It is harmless and can be ignored or silenced by setting a loglevel parameter in grub.
What it means is that the wrong size is declared within information passing between graphics, display and kernel.

Potential fixes include changing the kernel version, changing Nvidia drivers or not using Wayland Display protocol.

sorry about that image. I managed to recapture a better one here:

Could that wrong size issue be affecting the screen and icon size in some apps? I've noticed some apps I use have tiny menu text and icons. I've changed the font size and scale in the display but it still persists with some.

GIMP for example is affected.

It looks like my squinting was accurate. The post above covers how to address these messages.

These "sizes" are different meanings. In this case, "size" refers to a range value.
In the case of on screen icons and similar display rendering, "size" would refer to resolution.

When you have time, it would be helpful if you can create a new thread for that issue including some screenshots that illustrate the trouble with your resolution.

Gotcha.

What would be the best approach out of these if I wanted to address the error rather than ignoring?

I'll make a new thread about the resolution issue.

If it was me, I would try upgrading the kernel or Nvidia drivers first.
I would start with kernel.
Nvidia cards can be picky about which drivers they use on occassion, so the kernel is the safer bet.
You can check which kernel you are on with the terminal command

uname -r

Upgrading can be done with the Mainline installer or if you are not dual booting Windows OS and have Secure Boot disabled in BIOS, using TuxInvaders repository.
Zorin OS 17:

sudo add-apt-repository ppa:tuxinvader/jammy-mainline

sudo apt update && sudo apt install linux-generic-6.06

Zorin OS 16:

sudo add-apt-repository ppa:tuxinvader/lts-mainline

sudo apt update && sudo apt install linux-generic-6.06

Nvidia drivers can be swapped out using Software & Updates > Additional Drivers tab.
I have noticed that the older Nvidia drivers (like 390) will prefer older kernels. Whereas the later 545 and 550 drivers seem to work best on kernels above 5.15 and better yet above 6.4

Your display resolution concerns may relate to the above driver actions.

Changing the Display Protocol:
Users can switch between using Xorg X11 and Wayland from the Login screen. Click the gear icon on the lower right side to select Zorin Desktop on X to log in on the X11 desktop. If the gear icon does not show up, move to log in as another user, then select the gear icon when it appears, select the desktop, then log in as yourself normally.

I ran the command for the Zorin OS 17 kernal upgrade. This is what it gave me:

admin@user10-ThinkPad-P15-Gen-1:~$ uname -r
6.5.0-26-generic
admin@user10-ThinkPad-P15-Gen-1:~$ sudo add-apt-repository ppa:tuxinvader/jammy-mainline
[sudo] password for admin:
Repository: 'deb Index of /tuxinvader/jammy-mainline/ubuntu jammy main'
Description:
PPA for LTS mainline kernels built for Jammy
More info: Jammy LTS Mainline Kernels : TuxInvader
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/tuxinvader-ubuntu-jammy-mainline-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/tuxinvader-ubuntu-jammy-mainline-jammy.list
Adding key to /etc/apt/trusted.gpg.d/tuxinvader-ubuntu-jammy-mainline.gpg with fingerprint A132D7D22655C81961EDEA823844A6C1C6FD1056
Get:1 Index of /ubuntu jammy-security InRelease [110 kB]
Hit:2 https://apt.syncthing.net syncthing InRelease
Hit:3 Index of /ubuntu jammy InRelease
Get:4 Index of /ubuntu jammy-updates InRelease [119 kB]
Hit:5 https://packages.openvpn.net/openvpn3/debian jammy InRelease
Hit:6 Index of /ubuntu jammy-backports InRelease
Hit:7 Index of /deb/stable/ jammy InRelease
Get:8 Index of /ubuntu jammy-updates/main i386 Packages [594 kB]
Get:9 Index of /ubuntu jammy-updates/main amd64 Packages [1,502 kB]
Get:10 Index of /ubuntu jammy-updates/universe amd64 Packages [1,059 kB]
Get:11 Index of /ubuntu jammy-updates/universe i386 Packages [697 kB]
Hit:12 Index of /linrunner/tlp/ubuntu jammy InRelease
Get:13 Index of /tuxinvader/jammy-mainline/ubuntu jammy InRelease [18.1 kB]
Hit:14 Index of /zorinos/apps/ubuntu jammy InRelease
Hit:15 Index of /zorinos/drivers/ubuntu jammy InRelease
Hit:16 Index of /zorinos/patches/ubuntu jammy InRelease
Hit:17 Index of /zorinos/stable/ubuntu jammy InRelease
Hit:18 Index of /stable/ jammy InRelease
Hit:19 Index of /patches/ jammy InRelease
Get:20 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 Packages [2,696 B]
Get:21 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main i386 Packages [1,348 B]
Get:22 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main Translation-en [1,692 B]
Hit:23 Index of /apps/ jammy InRelease
Hit:24 Index of /drivers/ jammy InRelease
Fetched 4,105 kB in 4s (1,060 kB/s)
Reading package lists... Done
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (multiverse/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Skipping acquisition of configured file 'main/binary-i386/Packages', as repository 'https://packages.openvpn.net/openvpn3/debian jammy InRelease' does not seem to provide it (sources.list entry misspelt?)
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (multiverse/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
admin@user10-ThinkPad-P15-Gen-1:~$ sudo apt update && sudo apt install linux-generic-6.06
Hit:1 https://apt.syncthing.net syncthing InRelease
Hit:2 Index of /deb/stable/ jammy InRelease
Hit:3 Index of /ubuntu jammy InRelease
Hit:4 Index of /ubuntu jammy-updates InRelease
Hit:5 Index of /ubuntu jammy-backports InRelease
Hit:6 Index of /ubuntu jammy-security InRelease
Hit:7 Index of /linrunner/tlp/ubuntu jammy InRelease
Hit:8 Index of /tuxinvader/jammy-mainline/ubuntu jammy InRelease
Hit:9 Index of /zorinos/apps/ubuntu jammy InRelease
Hit:10 Index of /zorinos/drivers/ubuntu jammy InRelease
Hit:11 Index of /zorinos/patches/ubuntu jammy InRelease
Hit:12 Index of /zorinos/stable/ubuntu jammy InRelease
Hit:13 https://packages.openvpn.net/openvpn3/debian jammy InRelease
Hit:14 Index of /stable/ jammy InRelease
Hit:15 Index of /patches/ jammy InRelease
Hit:16 Index of /apps/ jammy InRelease
Hit:17 Index of /drivers/ jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (multiverse/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Skipping acquisition of configured file 'main/binary-i386/Packages', as repository 'https://packages.openvpn.net/openvpn3/debian jammy InRelease' does not seem to provide it (sources.list entry misspelt?)
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (multiverse/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list.d/archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list:4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
linux-headers-6.6.5-060605 linux-headers-6.6.5-060605-generic
linux-image-unsigned-6.6.5-060605-generic linux-modules-6.6.5-060605-generic
Suggested packages:
fdutils linux-doc | linux-source-6.6.5 linux-tools
linux-modules-extra-6.6.5-060605-generic
The following NEW packages will be installed
linux-generic-6.06 linux-headers-6.6.5-060605
linux-headers-6.6.5-060605-generic linux-image-unsigned-6.6.5-060605-generic
linux-modules-6.6.5-060605-generic
0 to upgrade, 5 to newly install, 0 to remove and 1 not to upgrade.
1 not fully installed or removed.
Need to get 203 MB of archives.
After this operation, 297 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 linux-headers-6.6.5-060605 all 6.6.5-060605.202312091251 [13.3 MB]
Get:2 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 linux-headers-6.6.5-060605-generic amd64 6.6.5-060605.202312091251 [3,396 kB]
Get:3 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 linux-modules-6.6.5-060605-generic amd64 6.6.5-060605.202312091251 [172 MB]
Get:4 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 linux-image-unsigned-6.6.5-060605-generic amd64 6.6.5-060605.202312091251 [14.3 MB]
Get:5 Index of /tuxinvader/jammy-mainline/ubuntu jammy/main amd64 linux-generic-6.06 amd64 6.6.5-0 [2,384 B]
Fetched 203 MB in 26s (7,739 kB/s)
Selecting previously unselected package linux-headers-6.6.5-060605.
(Reading database ... 283065 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.6.5-060605_6.6.5-060605.202312091251_all
.deb ...
Unpacking linux-headers-6.6.5-060605 (6.6.5-060605.202312091251) ...
Selecting previously unselected package linux-headers-6.6.5-060605-generic.
Preparing to unpack .../linux-headers-6.6.5-060605-generic_6.6.5-060605.20231209
1251_amd64.deb ...
Unpacking linux-headers-6.6.5-060605-generic (6.6.5-060605.202312091251) ...
Selecting previously unselected package linux-modules-6.6.5-060605-generic.
Preparing to unpack .../linux-modules-6.6.5-060605-generic_6.6.5-060605.20231209
1251_amd64.deb ...
Unpacking linux-modules-6.6.5-060605-generic (6.6.5-060605.202312091251) ...
Selecting previously unselected package linux-image-unsigned-6.6.5-060605-generi
c.
Preparing to unpack .../linux-image-unsigned-6.6.5-060605-generic_6.6.5-060605.2
02312091251_amd64.deb ...
Unpacking linux-image-unsigned-6.6.5-060605-generic (6.6.5-060605.202312091251)
...
Selecting previously unselected package linux-generic-6.06.
Preparing to unpack .../linux-generic-6.06_6.6.5-0_amd64.deb ...
Unpacking linux-generic-6.06 (6.6.5-0) ...
Setting up linux-headers-6.6.5-060605 (6.6.5-060605.202312091251) ...
Setting up tp-smapi-dkms (0.43-1ubuntu1) ...
Removing old tp_smapi-0.43 DKMS files...
Deleting module tp_smapi-0.43 completely from the DKMS tree.
Loading new tp_smapi-0.43 DKMS files...
Building for 6.5.0-26-generic 6.6.5-060605-generic
Building initial module for 6.5.0-26-generic
Error! Bad return status for module build on kernel: 6.5.0-26-generic (x86_64)
Consult /var/lib/dkms/tp_smapi/0.43/build/make.log for more information.
dpkg: error processing package tp-smapi-dkms (--configure):
installed tp-smapi-dkms package post-installation script subprocess returned er
ror exit status 10
Setting up linux-modules-6.6.5-060605-generic (6.6.5-060605.202312091251) ...
Setting up linux-headers-6.6.5-060605-generic (6.6.5-060605.202312091251) ...
/etc/kernel/header_postinst.d/dkms:

  • dkms: running auto installation service for kernel 6.6.5-060605-generic

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=6.6.5-060605-generic -C /lib/modules/6.6.5-060605-generi
c/build M=/var/lib/dkms/acpi-call/1.2.2/build...
Signing module:
Secure Boot not enabled on this system.
cleaning build area...

acpi_call.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/extra/

depmod...

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'ma
ke' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.6.5-060605-generic IGNORE_XE
N_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.6.5-060605-generic/build
LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules............
Signing module:
Secure Boot not enabled on this system.
cleaning build area...

nvidia.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/kernel/drivers/char/drm/

nvidia-modeset.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/kernel/drivers/char/drm/

nvidia-drm.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/kernel/drivers/char/drm/

nvidia-uvm.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/kernel/drivers/char/drm/

nvidia-peermem.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.6.5-060605-generic/kernel/drivers/char/drm/

depmod...

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=6.6.5-060605-generic -C /lib/modules/6.6.5-060605-generi
c/build M=/var/lib/dkms/tp_smapi/0.43/build HDAPS=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.5-060605-generic (x86_6
4)
Consult /var/lib/dkms/tp_smapi/0.43/build/make.log for more information.
...done.
Setting up linux-image-unsigned-6.6.5-060605-generic (6.6.5-060605.202312091251)
...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.5.0-26-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.5.0-26-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.6.5-060605-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.6.5-060605-generic
Setting up linux-generic-6.06 (6.6.5-0) ...
Processing triggers for linux-image-unsigned-6.6.5-060605-generic (6.6.5-060605.
202312091251) ...
/etc/kernel/postinst.d/dkms:

  • dkms: running auto installation service for kernel 6.6.5-060605-generic

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=6.6.5-060605-generic -C /lib/modules/6.6.5-060605-generi
c/build M=/var/lib/dkms/tp_smapi/0.43/build HDAPS=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.5-060605-generic (x86_6
4)
Consult /var/lib/dkms/tp_smapi/0.43/build/make.log for more information.
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.6.5-060605-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file /etc/default/grub' Sourcing file /etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-6.6.5-060605-generic
Found initrd image: /boot/initrd.img-6.6.5-060605-generic
Found linux image: /boot/vmlinuz-6.5.0-26-generic
Found initrd image: /boot/initrd.img-6.5.0-26-generic
Found linux image: /boot/vmlinuz-6.5.0-25-generic
Found initrd image: /boot/initrd.img-6.5.0-25-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Errors were encountered while processing:
tp-smapi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

and the kernal appears to be unchanged after I ran that uname -r command again

This warning can be resolved by removing duplicate entries in your sources.list:

This can be addressed with

sudo apt remove --purge tp-smapi-dkms

This package can be removed since it is returning a bad build status and is therefor, clearly not in use.
This package is for Lenovo ThinkPad notebooks and if in use can help provide some of the hardware settings for the notebook.

Ok, I've done the second one (sudo apt remove --purge tp-smapi-dkms) because it was easy.

Although it seems that it would be helpful to have that Lenovo package, is there a way to reinstall it correctly?

The Target packages one will take me some time as I have to study that article and try to understand it.

If both of these are resolved will that allow me to run the previous cmd again and upgrade the kernel?

Im working on the Target Packages configured multiple times error and have gotten stuck. The article says to remove any duplicate entries in the software list, but I appear to have many duplicate entries, in fact all of the software there is duplicated it seems, so am unsure if I should erase every second one or if there is something specific I should be looking for?

Anyway, looks like Jammy is the problem. Should I just remove all of the Jammys here and uninstall, reboot and reinstall?

You will notice that there are checkmarks next to each item. Some are checked, some are not.
The unchecked items will be the source code and that can be left as it is.

I am also seeing a lot of duplicates, however the GUI application is not providing any details as to which is which.
Let's instead turn to the file itself.
First, elevate to root:

sudo -i

Now elevated, launch the file manager from terminal with

nautilus

In the file manager, in the left pane, select "Other locations"
Next, in the right pane, select "Computer"
You will see all the Root directories. Double click etc then apt
There is another directory here: sources.list.d - We will get to this in a moment.
For now, right click on sources.list and choose to open with Text Editor from the context menu.
(If you double click it to open it, it will just launch Software & Updates gui application....)
In your text editor (should be Gedit), click the hamburger icon, then select the setting for "Show Line Numbers." You want them shown. I do not remember off the top of my head the exact placement of the setting but you should have no trouble finding it (I use Xed, not Gedit).

Now, when you run in terminal

sudo apt update

This checks the sources.list against APT for any new packages. So it will show if anything is configured multiple times and it will show the line number that contains the duplicate.
You can follow the terminal output to look for each line that it names.
You can post screenshots or text print of what you are seeing in order to cross-check and ensure no mistakes are made.
Below, I am posting a summary that can be expanded on click that shows the default sources.list for Zorin OS 17. You can use it as not only a reference, but save a copy in your home documents if you want to in case something goes wrong and you need to replace the contents of your existing sources.list with the default known good list.

Summary
#deb cdrom:[Zorin-OS 17 Core Beta 64bit]/ jammy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy universe
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Yes we can take a look at that once all packages are sorted out.

The sources.list.d directory contains any repositories that you manually added such as a different web browser or independent third party application. This directory is unlikely to be mentioned in the Warning about multiple configurations, but is worth familiarizing yourself with, even if you do not need to change anything within it at this time.