Fails to install linux-headers-6.5.0-28-generic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When attempting to install linux-headers-
dpkg: error processing archive /var/cache/
error creating symbolic link './lib/
dpkg: error while cleaning up:
unable to remove newly-extracted version of '/lib/modules/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I went looking for the build directory referenced in the message, I found the following misspelling in the symlink. I am not sure if this is what is causing the problem or a happy accident, because the target directory /usr/src/
❯ ls -al /usr/lib/
lrwxrwxrwx 1 root root 38 Apr 8 04:03 /usr/lib/
System config:
❯ cat /proc/version_
Ubuntu 6.5.0-28.29-generic 6.5.13
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
❯ uname -a
Linux test-ws0 6.5.0-28-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: linux-headers-
ProcVersionSign
Uname: Linux 6.5.0-28-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon May 6 16:36:43 2024
InstallationDate: Installed on 2024-02-04 (93 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:b85b Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 003: ID 0573:1573 Zoran Co. Personal Media Division (Nogatech) USB Audio and HID
Bus 001 Device 002: ID 0b05:190e ASUSTek Computer, Inc. ASUS USB-BT500
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: {report[
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
ProcFB: 0 i915drmfb
ProcKernelCmdLine: snapd_recovery_
RelatedPackageV
linux-
linux-
linux-firmware N/A
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/21/2023
dmi.bios.release: 5.27
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: GMK_G3
dmi.board.
dmi.board.name: GMKtec
dmi.board.vendor: GMKtec
dmi.board.version: Default string
dmi.chassis.
dmi.chassis.type: 0
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: MINI
dmi.product.name: NucBox G3
dmi.product.sku: G3-001
dmi.product.
dmi.sys.vendor: GMKtec
Do you have anti-virus software installed? That misnamed link looks indeed funny but I have the smae packages installed here and all looks fine so don't believe it's a package problem. How did you install the header packages? Can you remove all header packages and try again?
$ apt purge linux-headers- 6.5.0-28 linux-headers- 6.5.0-28- generic linux-headers- generic generic
$ apt install linux-headers-