Errors installing samba

I tried to install samba using:
sudo apt update
sudo apt install samba

Giving:
Error! Bad return status for module build on kernel: 6.8.0-83-generic (x86_64)
Consult /var/lib/dkms/rtl8821cu/5.4.1~ppa/build/make.log for more information.
dpkg: error processing package rtl8821cu-dkms (--configure):
installed rtl8821cu-dkms package post-installation script subprocess returned e
rror exit status 10
Errors were encountered while processing:
rtl8821cu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I tried:

sudo apt update
sudo apt install samba cifs-utils

That gave:
Error! Bad return status for module build on kernel: 6.8.0-83-generic (x86_64)
Consult /var/lib/dkms/rtl8821cu/5.4.1~ppa/build/make.log for more information.
dpkg: error processing package rtl8821cu-dkms (--configure):
installed rtl8821cu-dkms package post-installation script subprocess returned e
rror exit status 10
Errors were encountered while processing:
rtl8821cu-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

I then tried:

sudo apt --fix-broken install
Followed by:
sudo apt update && sudo apt full-upgrade

But I am still getting the same errors.

Can you help please?

I am running Zorin OS 17.3 Core
On a Dell OptiPlex 390
Intel® Core™ i5-2400 CPU @ 3.10GHz × 4
8GB memory

Did You add any Third-Party Repo's? When You type in Terminal sudo apt update what Output do You get?

This seems to be a Problem. I guess this is a Driver Package. When You type sudo apt install rtl8821cu-dkms does it work?

1 Like

Hello and thanks for the reply.

sudo apt update

Gives:
Fetched 13.6 MB in 5s (2,936 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
14 packages can be upgraded. Run 'apt list --upgradable' to see them.

sudo apt install rtl8821cu-dkms

Gave:
installed rtl8821cu-dkms package post-installation script subprocess returned e
rror exit status 10
Errors were encountered while processing:
rtl8821cu-dkms

I don't know what rtl8821cu-dkms. I will search and be back.

DUH!! Just found it, it is the driver for my (now unused) USB WiFi adaprter. I Will try to remove it and report back.

Removed the drivers and now installs without error.

Many thanks

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.