this post was submitted on 23 Jul 2023
19 points (91.3% liked)

Linux

48214 readers
840 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Greetings. APT is completely broken and I have no idea why. Whenever I try install, remove, or upgrade a package (or packages) I receive this error:

Removing linux-image-6.2.0-23-generic (6.2.0-23.23) ... /etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting /boot/initrd.img-6.2.0-23-generic /etc/kernel/postrm.d/zz-update-grub: Sourcing file `/etc/default/grub' /usr/sbin/grub-mkconfig: 12: /etc/default/grub: i915.enable_psr=0: not found run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127 dpkg: error processing package linux-image-6.2.0-23-generic (--remove): installed linux-image-6.2.0-23-generic package post-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Errors were encountered while processing: linux-image-6.2.0-23-generic Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried researching my problem online but got nowhere. Any help would be appreciated it.

OS: Kubuntu 23.04

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 16 points 1 year ago* (last edited 1 year ago) (1 children)

Looks like you've edited /etc/default/grub with a kernel flag that may not be supported.

Try removing i915.enable_psr=0 from that file and trying again.

EDIT: Typos. I'm on mobile

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago)

/usr/sbin/grub-mkconfig: 12: /etc/default/grub: i915.enable_psr=0: not found

This. Your /etc/default/grub file is probably not formatted right. That i915.enable_psr=0 param is probably on its own line, it needs to go in the kernel boot params line

load more comments
view more: next ›