Error after sudo apt upgrade

Hi, after upgrading the system when i use sudo apt install he tell me this error:

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘bcmwl-kernel-sources’ for glob ‘bcmwl
Package ‘bcmwl-kernel-sources’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
alsa-tools libcmis-0.5-5v5 liblibreoffice-java libqrcodegencpp1 libunoloader-java ure-java
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up desktop-base (2:5.0+parrot2) …
update-alternatives: --install needs

Use ‘update-alternatives --help’ for program usage information.
dpkg: error processing package desktop-base (–configure):
installed desktop-base package post-installation script subprocess returned error exit status 2
Setting up realtek-rtl8188eus-dkms (5.3.9~git20210206.1e7145f-0kali2) …
Removing old realtek-rtl8188eus-5.3.9~git20210206.1e7145f DKMS files…


Deleting module version: 5.3.9~git20210206.1e7145f
completely from the DKMS tree.

Done.
Loading new realtek-rtl8188eus-5.3.9~git20210206.1e7145f DKMS files…
Building for 5.10.0-6parrot1-amd64 5.14.0-9parrot1-amd64
Building initial module for 5.10.0-6parrot1-amd64
Error! Bad return status for module build on kernel: 5.10.0-6parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/make.log for more information.
dpkg: error processing package realtek-rtl8188eus-dkms (–configure):
installed realtek-rtl8188eus-dkms package post-installation script subprocess returned error exit status 10
Setting up realtek-rtl8814au-dkms (5.8.5.1~git20210730.824d1d2-0parrot1) …
Removing old realtek-rtl8814au-5.8.5.1~git20210730.824d1d2 DKMS files…


Deleting module version: 5.8.5.1~git20210730.824d1d2
completely from the DKMS tree.

Done.
Loading new realtek-rtl8814au-5.8.5.1~git20210730.824d1d2 DKMS files…
Building for 5.10.0-6parrot1-amd64 5.14.0-9parrot1-amd64
Building initial module for 5.10.0-6parrot1-amd64
Error! Bad return status for module build on kernel: 5.10.0-6parrot1-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20210730.824d1d2/build/make.log for more information.
dpkg: error processing package realtek-rtl8814au-dkms (–configure):
installed realtek-rtl8814au-dkms package post-installation script subprocess returned error exit status 10
Setting up r8168-dkms (8.048.03-3) …
Removing old r8168-8.048.03 DKMS files…


Deleting module version: 8.048.03
completely from the DKMS tree.

Done.
Loading new r8168-8.048.03 DKMS files…
Building for 5.10.0-6parrot1-amd64 5.14.0-9parrot1-amd64
Building initial module for 5.10.0-6parrot1-amd64
Error! Bad return status for module build on kernel: 5.10.0-6parrot1-amd64 (x86_64)
Consult /var/lib/dkms/r8168/8.048.03/build/make.log for more information.
dpkg: error processing package r8168-dkms (–configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of realtek-rtl88xxau-dkms:
realtek-rtl88xxau-dkms depends on realtek-rtl8814au-dkms; however:
Package realtek-rtl8814au-dkms is not configured yet.

dpkg: error processing package realtek-rtl88xxau-dkms (–configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.140) …
update-initramfs: Generating /boot/initrd.img-5.14.0-9parrot1-amd64
Errors were encountered while processing:
desktop-base
realtek-rtl8188eus-dkms
realtek-rtl8814au-dkms
r8168-dkms
realtek-rtl88xxau-dkms
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Like

Already addressed!
please check other topics or search it before posting.

Please wait for sometime for the fixed update,
or refer other topics, get to know the fix and you can fix it yourself.

Addressed where and when?

i search, but only “have in telegram” results, and the link is broken

I guess the problem is the same, it has been solved, but we will have to wait a bit: Error during os update for the package realtek-rtl8188eus - #3 by Th3Director

I’m also having the same problem. How long are we supposed to wait??

Few days maybe…
Would have been fixed within few hours usually, but due to a vacation, he got busy and this was unexpected. Hence, when he’s back, the patch will be updated ASAP:)

2 Likes

What’s the current status of this fix, please?

FYI, jus in case it’d be of any help:

/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/os_dep/linux/recv_linux.c: In function ‘napi_recv’:
/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/os_dep/linux/recv_linux.c:357:55: error: ‘GRO_DROP’ undeclared (first use in this function)
  357 |    if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                       ^~~~~~~~
/var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/os_dep/linux/recv_linux.c:357:55: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/usr/src/linux-headers-5.14.0-9parrot1-common/scripts/Makefile.build:276: /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/os_dep/linux/recv_linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-5.14.0-9parrot1-common/Makefile:1882: /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build] Error 2
make[1]: *** [/usr/src/linux-headers-5.14.0-9parrot1-common/Makefile:232: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-9parrot1-amd64'
make: *** [Makefile:2059: modules] Error 2

Just ignore it, it’s won’t affect your usage.

The overall usability is not affected, that’s true, but every time something needs to be installed on top of the current setup, the OS attempts to build/compile the dependencies, which by frequent action is getting annoying and pretty much time consuming even on i7. Is there no way to solve it properly?

I came across this solution (see below) , but I’m not sure how this correlates to the issue initially reported. At the moment I’m not able go for GitHub - aircrack-ng/rtl8188eus: RealTek RTL8188eus WiFi driver with monitor mode & frame injection support respectively.

For 5.10 kernel use this git repository:
sudo apt update
sudo apt install -y dkms git bc
git clone -b v5.6.1 https://github.com/fastoe/RTL8812BU.git
cd RTL8812BU
make
sudo make install
sudo reboot

btw it is solved.
Run sudo parrot-upgrade
And sudo apt autoremove

1 Like

Hi @Th3Director , I still encounter the same problem.

I tried autoremove, update, upgrade, full-upgrade and parrot-upgrade multiple times. Nothing helped.

Attached the lines of code that i get:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 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 realtek-rtl8188eus-dkms (5.3.9~git20210206.1e7145f-0kali2) ...
Removing old realtek-rtl8188eus-5.3.9~git20210206.1e7145f DKMS files...

------------------------------
Deleting module version: 5.3.9~git20210206.1e7145f
completely from the DKMS tree.
------------------------------
Done.
Loading new realtek-rtl8188eus-5.3.9~git20210206.1e7145f DKMS files...
Building for 5.14.0-9parrot1-amd64
Building initial module for 5.14.0-9parrot1-amd64
Error! Bad return status for module build on kernel: 5.14.0-9parrot1-amd64 (x86_
64)
Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20210206.1e7145f/build/make.lo
g for more information.
dpkg: error processing package realtek-rtl8188eus-dkms (--configure):
 installed realtek-rtl8188eus-dkms package post-installation script subprocess r
eturned error exit status 10
Errors were encountered while processing:
 realtek-rtl8188eus-dkms
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestion? Thank you

1 Like

i believe you got this issue fixed??? i encountered the same problem…thoughts ive done something wrong

run parrot-upgrade and then apt autoremove
and on next parrot-upgrade you wouldn’t get it.

hi, i just have like this problems and i send parrot facebook page, the told me they are work to fix thiss error at days. just wait. and happy nice day.

no, this problem come with new os downloded.

With apt purge realtek-rtl8188eus-dkms I solved mine.

Credit to @diunisu for providing the solution.

1 Like

then after you purge the package , do yu have to install it back? or parrot-upgrade next?