The messages here are mostly in German, but I'll try to translate mist of it:
**dpkg:** Error when editing the package linux-image-6.9.7+bpo-amd64 (--configure): <<Installed posts installation script of the package linux-headers-6.9.7+bpo-amd64<<-subprocess returned error code 1 **dpgk:** dependency error hinders configuration of <that Linux header package>: linux-headers-6.9.7+bpo-amd64 depends on linux-image-6.9.7+bpo-amd64 (= 6.9.7-1~bpo12+1) | linux-image-6.9.7+bpo-amd64 -unsigned (= 6.9.7-1~bpo12+1); but: Package linux-image-6.9.7+bpo-amd64 is not configured yet. Package linux-image-6.9.7+bpo-amd64-unsigned is not installed. **dpgk:** Error while editing the Package linux-headers-6.9.7+bpo-amd64 (--configure): Dependency problem - remains unconfigured **dpkg:** Dependency problem hinder configuration of linux-headers-amd64: linux-headers-amd64 depends on linux-headers-6.9.7+bpo-amd64 (= 6.9.7-1~bpo12+1); but: Package linux-headers-6.9.7+bpo-amd64is not configured yet. **dpkg:** Errow while editing package linux-headers-amd64 (--configure): Dependency problem - remains in configured Errors occurred while editing these: linux-image-6.9.7+bpo-amd64 linux-headers-6.9.7+bpo-amd64 linux-headers-amd64
I really hope someone can help me out here..
EDIT: I kinda forgot to actually mention my problem. When booting nornall, I get stuck at a lonely white blinking cursor on a black screen, so startx seems to make some problems. I enter a TTY and run startx and this is what I get when running startx:
SOLUTION
- Uninstall your current nvidia driver (for example using sudo apt remove nvidia-driver on Debian)
- Install the headers for your kernel. your kernel you can check rather easily by running neofetch
- Install the headers required for your kernel. Do that by listing all packages with your kernel name in it. For example like this:
apt list *6.9.7+bpo*
- reboot, install your nvidia driver again and rovoot again. Should be done.
You speak of apt fix, what is that?
Your screenshot you posted first. The top command is:
That means you did something first and then found your way to that command
Fair. The first thing I did was yesterday where I tried to add testing, experimental and unstable packages to apt. That didn't quite work sonI reverted my changes my removing the .list files and recovering the previous default sources.list file. Then today In started up my PC and this was what I got, a black screen with a blinking white cursor. The apt-fix-broken is just something I picked up on during my many times I had to fix my distro... So that was one of the first things i tried after trying the startxcommand.
Oh. Wow.
Yeah, when asking for help start with what you did.
OK so when installing the the unsigned kernel, I get an error that the normal version isn't installed. But when I try to install the normal version, it complains that the unsigned version isn't installed...
I have now taken a look at the Xorg log files and they seem to be complaining about it not finding the nvidia kernel module, even though I just installed the nvidia-driver package. This is the complete file content
/var/logs/Xorg.0.log
You left out the NVIDIA card part. This is super important. So you have two kernels in a bad state and the NVIDIA driver is probably not building out.
You’ve got a chicken and egg issue.
This isn’t a technical answer but simply a generalization of what probably needs to happen.
I would start over on whatever kernel situation you have going.
First uninstall the NVIDIA driver.
Then remove that unsigned kernel and its headers. Use the force option if necessary.
Ensure dkms, the base kernel and its headers are installed.
Reboot using standard kernel and then install nvidia-dkms package. Reboot.
It’s tough to tell you exactly what needs to be done because I’m not really sure what kind of damage you did or what the full extent of the errors are. You might need some force options or whatever but generally that’s all that needs to happen. YOU do not have a NVIDIA driver built for whatever kernel you’re using.
You were entirely correct. Thank you very much for your response, I really was missing the header files for the kernel so the driver couldn't interact with the system (as far as I can tell). The nouveau driver automatically kicked in on first reboot after installing the header files and I'm now downloading the dkms package again (using Gnome).
Great!
If you do fix it, go ahead and update the post with the solution. Help out the next guy.
https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian
Fair. I was trying to install some latest versions if Dev packages because Debian seemed to lack behind (some gtk-4 package was out of date). I need it for building this FOSS VR software called "envision".
https://gitlab.com/gabmus/envision