No antivirus. Installed using "apt install linux-headers-generic". Here's what happened when I tried to purge and reinstall:
❯ apt purge linux-headers-6.5.0-28 linux-headers-6.5.0-28-generic linux-headers-generic Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: linux-headers-6.5.0-28* linux-headers-6.5.0-28-generic* linux-headers-generic* 0 upgraded, 0 newly installed, 3 to remove and 3 not upgraded. 2 not fully installed or removed. After this operation, 84.1 MB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 297231 files and directories currently installed.) Removing linux-headers-generic (6.5.0.28.28) ... dpkg: error processing package linux-headers-6.5.0-28-generic (--remove): package is in a very bad inconsistent state; you should reinstall it before attempting a removal dpkg: too many errors, stopping Errors were encountered while processing: linux-headers-6.5.0-28-generic Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) ❯ apt install linux-headers-generic Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: linux-headers-6.5.0-28-generic The following NEW packages will be installed: linux-headers-generic The following packages will be upgraded: linux-headers-6.5.0-28-generic 1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed. Need to get 9,124 B/3,831 kB of archives. After this operation, 29.0 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://archive.ubuntu.com/ubuntu mantic-updates/main amd64 linux-headers-generic amd64 6.5.0.28.28 [9,124 B] Fetched 9,124 B in 0s (113 kB/s) (Reading database ... 297228 files and directories currently installed.) Preparing to unpack .../linux-headers-6.5.0-28-generic_6.5.0-28.29_amd64.deb ... Unpacking linux-headers-6.5.0-28-generic (6.5.0-28.29) over (6.5.0-28.29) ... dpkg: error processing archive /var/cache/apt/archives/linux-headers-6.5.0-28-generic_6.5.0-28.29_amd64.deb (--unpack): error creating symbolic link './lib/modules/6.5.0-28-generic/build': Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of '/lib/modules/6.5.0-28-generic/build': Read-only file system Selecting previously unselected package linux-headers-generic. Preparing to unpack .../linux-headers-generic_6.5.0.28.28_amd64.deb ... Unpacking linux-headers-generic (6.5.0.28.28) ... Errors were encountered while processing: /var/cache/apt/archives/linux-headers-6.5.0-28-generic_6.5.0-28.29_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2064961 Title: Fails to install linux-headers-6.5.0-28-generic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2064961/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs