this post was submitted on 23 Jul 2023
20 points (95.5% liked)

Linux

48184 readers
1565 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

you are viewing a single comment's thread
view the rest of the comments
[–] lungdart@lemmy.ca 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

[–] Ocelot@lemmies.world 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