Zorin Help Teamviewer installation instructions - shows error on 17 Pro

Hi there
Following the steps in the 'Zorin Help' section to install teamviewer @ Install TeamViewer - Zorin Help

I get the below error.

Error while installing package: installed v4l2loopback-dkms package post-installation script subprocess returned error exit status 10

Ideas anyone!
cheers CD

Hi there
Mr. Google reckons it's to do with "dkms".!?

here is the report in the v4l2loopback make.log


DKMS make.log for v4l2loopback-0.12.7 for kernel 6.8.0-85-generic (x86_64)
Sat 11 Oct 2025 14:44:48 NZDT
Building v4l2-loopback driver...
make -C /lib/modules/6.8.0-85-generic/build M=/var/lib/dkms/v4l2loopback/0.12.7/build modules CC=x86_64-linux-gnu-gcc-12
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-85-generic'
CC [M] /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o
/var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c: In function ‘vidioc_querycap’:
/var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c:727:9: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
727 | strlcpy(cap->driver, "v4l2 loopback", sizeof(cap->driver));
| ^~~~~~~
| strscpy
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-85-generic/Makefile:1927: /var/lib/dkms/v4l2loopback/0.12.7/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-85-generic'
make: *** [Makefile:43: v4l2loopback.ko] Error 2

I know nothing about this stuff, anyone have an idea of what to do?
cheers CD

Seems to be an Error with a Dependency. When You have downloaded the .deb file, You couls use Gdebi to install it. It is a graphical Tool for installing .deb Files which shows the Process and what Dependencies get installed. You can install it with sudo apt install gdebi

Another Thing what you could Try: Install the Package from the Error Message directly with sudo apt install 4l2loopback-dkms

Hi there, thanks for your reply.
The teamviewer .deb was downloaded on that same day.

I have the same error with Gparted as well (v17 pro).

which I thought was part of the standard full 'Pro' installation.

I first noticed this error about a subprocess error after following instructions for the 'Pro' help people, aimed at getting the system to recognise the Nvidia GFX card as a hardware NVENC encoder. Which was successful.

I'm confused.
cheers CD

EDIT - install through the terminal also fails with the same error

$ sudo apt install gparted
[sudo] password for z4cdadmin:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gparted is already the newest version (1.3.1-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Removing old v4l2loopback-0.12.7 DKMS files...
Deleting module v4l2loopback-0.12.7 completely from the DKMS tree.
Loading new v4l2loopback-0.12.7 DKMS files...
Building for 6.8.0-85-generic
Building initial module for 6.8.0-85-generic
Error! Bad return status for module build on kernel: 6.8.0-85-generic (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
dpkg: error processing package v4l2loopback-dkms (--configure):
installed v4l2loopback-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
v4l2loopback-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

In the ppa you added

jammy (= ubuntu 22.04) is not listed, so you can't use it safely in Zorin 17.3. I would recommend to remove it.

sudo add-apt-repository --remove ppa:jonathonf/ffmpeg-4
sudo apt update

It would be the best also to remove the installed ffmpeg package before you remove the ppa.

sudo apt remove ffmpeg

When you add a ppa make sure that it is suitable for jammy. You can check this at "published in", then search for jammy there. This one is only for bionic and xenial. I don't know why the Zorin team has recommended to add it...

1 Like

Hi there, thanks for your reply.
Please note my comment about the instructions which I followed were from the Zorin Pro help team.

I run the commands, which went through as all 'done', with the last line showing:
"30 packages can be upgraded. Run 'apt list --upgradable' to see them."
Should I run that too?

BTW - I am not able to uninstall any apps either, I tried to remove OBS Studio, but got the same error.


cheers CD

If you want to see them, you can run it, but you don't need to. But you can run

sudo apt upgrade

to upgrade the packages.

"The issue of being unable to uninstall applications due to v4l2loopback-dkms likely stems from the kernel module being loaded or the package not being fully removed. To resolve this, first ensure the module is unloaded. Use lsmod | grep v4l2loopback to check if it is currently loaded, and if so, attempt to unload it with sudo modprobe -r v4l2loopback . If the module is built into the kernel (indicated by "builtin"), it cannot be removed via standard package management tools.

For the v4l2loopback-dkms package itself, use the appropriate package manager command based on your distribution. On Debian-based systems like Ubuntu or Kali Linux, run sudo apt-get remove --auto-remove v4l2loopback-dkms to remove the package and its unused dependencies. To also remove configuration files, use sudo apt-get purge --auto-remove v4l2loopback-dkms . On Arch Linux, the pacman -R command removes the package but may not remove the built kernel module; in such cases, use dkms uninstall to remove the module for specific kernels. For example, dkms uninstall v4l2loopback/0.12.5 -k --all can be used to remove the module from all kernels.

If the package is uninstalled but the module persists, manually check and remove any leftover files in /usr/lib/modules/ and /var/lib/dkms/ for the v4l2loopback package. Additionally, ensure that no configuration files in /etc/modules-load.d/ or similar directories are still loading the module at boot.

AI-generated answer. Please verify critical facts."

Hi there, thanks for the reply.
Seems that I restart did the trick, I can now install Gparted, and uninstall OBS.

But the below line still shows after any command:

"Errors were encountered while processing:
v4l2loopback-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)"

what to do?
cheers CD

Did you also remove the ffmpeg package which was installed with the ppa that does not fit to your system?

Hi there
Yes and I restarted again, same result.

Is it possible to remove "v4l2loopback"? whatever that is!

cheers CD

You can try to run

sudo apt install -f

but I'm not sure how to solve this. Swarfendor has posted some commands from KI.

Hi there, thanks 'AI' for that, here is the result from the first two commands.

$ lsmod | grep v4l2loopback
$ sudo modprobe -r v4l2loopback
$
there is no responce and no mention of "builtin"

Do I now continue with the other suggested commands?
cheers CD

Hi there
terminal responce to "remove v4l2loopback"

$ sudo apt-get remove --auto-remove v4l2loopback-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
dctrl-tools dkms v4l2loopback-dkms
0 upgraded, 0 newly installed, 3 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 714 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 300573 files and directories currently installed.)
Removing v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Deleting module v4l2loopback-0.12.7 completely from the DKMS tree.
Removing dkms (2.8.7-2ubuntu2.2) ...
Removing dctrl-tools (2.24-3build2) ...
Processing triggers for man-db (2.10.2-1) ...

No more mention of subprocesses.
Is that all I need to do? Or should I continue with the other suggestions?
cheers CD

Sorry, I don't know. Wait until a moderator can help you.

NO probs.
cheers CD

I also wonder if I will now loose the nvenc hardware encoder?
cheers CD

You highlighted that you have one package not fully removed/installed. Can you open a terminal and enter:

sudo apt update --fix-missing
sudo dpkg --configure -a
1 Like

I ran those two commands for completeness. Looks to me like the way to stop the sub-process error line appearing is to remove the v4l2loopback thing, with this command:

"sudo apt remove v4l2loopback-dkms"

Here is the terminal output:

sudo apt update --fix-missing
[sudo] password for z4cdadmin:
Hit:1 http://nz.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://nz.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://nz.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:5 https://linux.teamviewer.com/deb stable InRelease
Ign:6 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Hit:7 Index of /ubuntu jammy-security InRelease
Hit:8 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:9 https://packages.mozilla.org/apt mozilla InRelease
Hit:10 Index of /stable/ jammy InRelease
Hit:12 Index of /patches/ jammy InRelease
Hit:13 Index of /apps/ jammy InRelease
Hit:14 Index of /drivers/ jammy InRelease
Hit:15 Index of /zorinos/apps/ubuntu jammy InRelease
Hit:16 Zorin OS Pro - Zorin OS jammy InRelease
Hit:17 Index of /zorinos/drivers/ubuntu jammy InRelease
Hit:18 Index of /zorinos/patches/ubuntu jammy InRelease
Hit:19 Index of /zorinos/stable/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
12 packages can be upgraded. Run 'apt list --upgradable' to see them.

z4cdadmin@z4cdadmin-HP-Z4-G4-Workstation:~$ sudo dpkg --configure -a
Setting up v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Removing old v4l2loopback-0.12.7 DKMS files...
Deleting module v4l2loopback-0.12.7 completely from the DKMS tree.
Loading new v4l2loopback-0.12.7 DKMS files...
Building for 6.8.0-85-generic
Building initial module for 6.8.0-85-generic
Error! Bad return status for module build on kernel: 6.8.0-85-generic (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
dpkg: error processing package v4l2loopback-dkms (--configure):
installed v4l2loopback-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
v4l2loopback-dkms


cheers

"The error "Errors were encountered while processing: v4l2loopback-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)" occurs when the v4l2loopback-dkms package fails to configure during an upgrade, specifically due to a compilation failure for the kernel module on version 6.8.0-40-generic. The root cause is a build error in the kernel module's source code, where the function strlcpy is implicitly declared, which is treated as an error due to strict compilation settings. This prevents the package from being properly installed or configured, leading to the dpkg error.

To resolve this issue, the package must be rebuilt for the new kernel. The recommended steps are to first ensure the system is updated and then attempt to reinstall the package, which will trigger a fresh build of the DKMS module:

sudo apt update
sudo apt install --reinstall v4l2loopback-dkms

If the problem persists, it may be due to a known bug in the v4l2loopback-dkms package version 0.12.7-2ubuntu2~22.04.1 for Ubuntu 22.04, which has been reported and is under review. In such cases, users should monitor the bug report for updates or patches from the Ubuntu development team. As a temporary workaround, users can consider downgrading to a previous kernel version or waiting for an updated package version that resolves the compilation issue.

AI-generated answer. Please verify critical facts."

I suspect you might do better if you backup all your data then install Zorin 18 when it comes out next week.