Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(not pi-apps) Need help with installing dkms package #2626

Closed
3 tasks done
Dizzy-Pi opened this issue Jul 26, 2024 · 6 comments
Closed
3 tasks done

(not pi-apps) Need help with installing dkms package #2626

Dizzy-Pi opened this issue Jul 26, 2024 · 6 comments
Labels
User Error Issue is due to user error and not a bug with pi-apps

Comments

@Dizzy-Pi
Copy link

Confirmations

What happened?

trying to install wine which is failing due to a package on my system is causing an error

Description

im trying to get more info about how to find the conflicting package that is preventing the installation

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 07/26/2024
Latest Pi-Apps version: 07/26/2024
Kernel: aarch64 6.6.31+rpt-rpi-v8
Device model: Raspberry Pi 4 Model B Rev 1.5
SOC identifier: bcm2711
Cpu name: Cortex-A72
Ram size: 7.81 GB
Raspberry Pi OS image version: 2024-07-04
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

Installing Wine (x64)...

Will install these packages: cabextract p7zip-full 
Creating an empty apt-package to install the necessary apt packages...
It will be named: pi-apps-112b87c1
Depends: cabextract, p7zip-full
Running sudo apt update...
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://Pi-Apps-Coders.github.io/box64-debs/debian ./ InRelease
Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease
All packages are up to date.
apt update complete.
Installing the pi-apps-112b87c1 package...
The following additional packages will be installed:
  cabextract libmspack0
The following NEW packages will be installed:
  cabextract libmspack0 pi-apps-112b87c1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 240 kB of additional disk space will be used.
Get:1 /tmp/pi-apps-112b87c1.deb pi-apps-112b87c1 all 1.0 [756 B]
(Reading database ... 192593 files and directories currently installed.)
Unpacking libmspack0:arm64 (0.11-1) ...
Unpacking cabextract (1.9-3) ...
Unpacking pi-apps-112b87c1 (1.0) ...
Removing old xtrx-0.0.1+git20190320.5ae3a3e-3.2 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Deleting module xtrx-0.0.1+git20190320.5ae3a3e-3.2 completely from the DKMS tree.
Loading new xtrx-0.0.1+git20190320.5ae3a3e-3.2 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building for 6.6.31+rpt-rpi-v8
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building initial module for 6.6.31+rpt-rpi-v8
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log for more information.
dpkg: error processing package xtrx-dkms (--configure):
 installed xtrx-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 xtrx-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
                                                       Apt finished.
Failed to install the packages!
APT reported these errors:
E: Sub-process /usr/bin/dpkg returned an error code (1)
The following additional packages will be installed:
  cabextract libmspack0
The following NEW packages will be installed:
  cabextract libmspack0 pi-apps-112b87c1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 240 kB of additional disk space will be used.
Get:1 /tmp/pi-apps-112b87c1.deb pi-apps-112b87c1 all 1.0 [756 B]
(Reading database ... 192593 files and directories currently installed.)
Unpacking libmspack0:arm64 (0.11-1) ...
Unpacking cabextract (1.9-3) ...
Unpacking pi-apps-112b87c1 (1.0) ...
Removing old xtrx-0.0.1+git20190320.5ae3a3e-3.2 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Deleting module xtrx-0.0.1+git20190320.5ae3a3e-3.2 completely from the DKMS tree.
Loading new xtrx-0.0.1+git20190320.5ae3a3e-3.2 DKMS files...
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building for 6.6.31+rpt-rpi-v8
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Building initial module for 6.6.31+rpt-rpi-v8
/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Error! Bad return status for module build on kernel: 6.6.31+rpt-rpi-v8 (aarch64)
Consult /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2/build/make.log for more information.
dpkg: error processing package xtrx-dkms (--configure):
 installed xtrx-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 xtrx-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Failed to install Wine (x64)!
◢◣Need help? Copy the ENTIRE terminal output or take a screenshot.
Please ask on Github: https://github.com/Botspot/pi-apps/issues/new/choose
Or on Discord: https://discord.gg/RXSTvaUvuu
Opening in existing browser session.
@Dizzy-Pi Dizzy-Pi added the bug Something isn't working label Jul 26, 2024
Copy link
Contributor

Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.

Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.

@Botspot
Copy link
Owner

Botspot commented Jul 26, 2024

Thanks for reaching out. While The conflicting package is unrelated to pi-apps, we here can try to help you, or at least point you in the right direction. :)

After a quick google search somebody else had this issue. See: https://askubuntu.com/questions/1469881/getting-an-error-every-time-i-install-something-with-apt
Can you see what happens when you run sudo apt remove xtrx-dkms?
Before you confirm yes, does that command ask if you really want to uninstall a bunch of stuff, or only that package?

@theofficialgman theofficialgman added User Error Issue is due to user error and not a bug with pi-apps and removed bug Something isn't working labels Jul 26, 2024
@theofficialgman theofficialgman changed the title wine (64) failed to install because pi-apps encountered a package error. (not pi-apps) Need help with installing dkms package Jul 26, 2024
@theofficialgman
Copy link
Collaborator

/usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Deleting module xtrx-0.0.1+git20190320.5ae3a3e-3.2 completely from the DKMS tree.

this output indicates to me that the script /usr/sbin/dkms itself is bugged
this line corresponds to

# The <(cmd) idiom does not work if /proc is not mounted
if [ ! -e <(echo) ]; then
    warn $"dkms will not function properly if /proc is not mounted."
fi

in the dkms script

this issue is reported by others on debian forums, stackexchange, launchpad bugs, and many other places
https://forums.debian.net/viewtopic.php?t=157714
https://serverfault.com/questions/1130906/debian-update-fails-on-buildine-new-kernel
https://www.antixforum.com/forums/topic/problem-upgrading-after-installing-antix-23/
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1125595
https://forum.proxmox.com/threads/upgrade-from-7-to-8-failed-due-to-custom-kernel.142277/
https://groups.google.com/g/linux.debian.kernel/c/I1WFZQo6XtU
https://bugs.archlinux.org/task/49816

I am going to close this issue as not our issue. Please uninstall the problematic package (as @Botspot instructed above) and raise an issue or comment on an existing one with Debian

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@Dizzy-Pi
Copy link
Author

sudo apt remove xtrx-dkms worked! Thank you for your assistance on a non Pi-Apps issue to get me up and running.

@Botspot
Copy link
Owner

Botspot commented Jul 27, 2024

sudo apt remove xtrx-dkms worked! Thank you for your assistance on a non Pi-Apps issue to get me up and running.

Awesome! Good to see it was that easy. Do you happen to remember why you had that installed to begin with?

@theofficialgman
Copy link
Collaborator

More information on why this error is showing up now (caused by piOS kernel upgrade beyond 6.1)
https://forums.raspberrypi.com/viewtopic.php?p=2241235#p2241234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Error Issue is due to user error and not a bug with pi-apps
Projects
None yet
Development

No branches or pull requests

3 participants