package linux-headers-5.11.0-34-generic (not installed) failed to install/upgrade: unable to open '/usr/src/linux-headers-5.11.0-34-generic/scripts/mod/empty.dwo.dpkg-new': Operation not permitted

Bug #1943092 reported by Curtis Schroeder
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-hwe-5.11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 20.04.3 LTS
Release: 20.04

\linux-headers-5.11.0-34-generic:
  Installed: (none)
  Candidate: 5.11.0-34.36~20.04.1
  Version table:
     5.11.0-34.36~20.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages

Install failed during latest kernel update.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-headers-5.11.0-34-generic (not installed)
ProcVersionSignature: Ubuntu 5.11.0-27.29~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Sep 8 20:26:11 2021
DuplicateSignature:
 package:linux-headers-5.11.0-34-generic:(not installed)
 Unpacking linux-hwe-5.11-headers-5.11.0-34 (5.11.0-34.36~20.04.1) ...
 dpkg: error processing archive /tmp/apt-dpkg-install-26WFDo/10-linux-hwe-5.11-headers-5.11.0-34_5.11.0-34.36~20.04.1_all.deb (--unpack):
  unable to create new file '/var/lib/dpkg/info/linux-hwe-5.11-headers-5.11.0-34.list-new': Operation not permitted
ErrorMessage: unable to open '/usr/src/linux-headers-5.11.0-34-generic/scripts/mod/empty.dwo.dpkg-new': Operation not permitted
InstallationDate: Installed on 2021-02-21 (199 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.6
SourcePackage: linux-hwe-5.11
Title: package linux-headers-5.11.0-34-generic (not installed) failed to install/upgrade: unable to open '/usr/src/linux-headers-5.11.0-34-generic/scripts/mod/empty.dwo.dpkg-new': Operation not permitted
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Curtis Schroeder (publicpanther) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Curtis Schroeder (publicpanther) wrote :

This is with the NVIDIA 460 driver. At present, I can't successfully switch to the 470 driver, because it tries to use the 5.11.0-34.36 kernel files as part of the install.

Revision history for this message
Curtis Schroeder (publicpanther) wrote :

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-headers-5.11.0-34-generic linux-hwe-5.11-headers-5.11.0-34
The following NEW packages will be installed:
  linux-headers-5.11.0-34-generic
The following packages will be upgraded:
  linux-hwe-5.11-headers-5.11.0-34
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
57 not fully installed or removed.
Need to get 0 B/13.1 MB of archives.
After this operation, 90.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libgcrypt20:amd64 (1.8.5-5ubuntu1.1) ...
Setting up libsystemd0:amd64 (245.4-4ubuntu3.13) ...
Setting up libgcrypt20:i386 (1.8.5-5ubuntu1.1) ...
Setting up systemd-timesyncd (245.4-4ubuntu3.13) ...
Setting up systemd (245.4-4ubuntu3.13) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved
...
(Reading database ... 263621 files and directories currently installed.)
Preparing to unpack .../linux-hwe-5.11-headers-5.11.0-34_5.11.0-34.36~20.04.1_al
l.deb ...
Unpacking linux-hwe-5.11-headers-5.11.0-34 (5.11.0-34.36~20.04.1) over (5.11.0-3
4.36~20.04.1) ...
Preparing to unpack .../linux-headers-5.11.0-34-generic_5.11.0-34.36~20.04.1_amd
64.deb ...
Unpacking linux-headers-5.11.0-34-generic (5.11.0-34.36~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-5.11.0-34-g
eneric_5.11.0-34.36~20.04.1_amd64.deb (--unpack):
 unable to open '/usr/src/linux-headers-5.11.0-34-generic/scripts/mod/empty.dwo.
dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-5.11.0-34-generic_5.11.0-34.36~20.04.1_am
d64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-hwe-5.11 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.