error processing archive (--unpack): unable to open '<FILE>.dpkg-new': Operation not permitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
dpkg has failed to install or upgrade certain packages recently, with the following (sample) output:
Unpacking linux-image-
Preparing to unpack .../linux-
Unpacking linux-image-
dpkg: error processing archive /var/cache/
unable to open '/lib/modules/
[1] 18746 segmentation fault sudo apt install -f
This problem appears seemingly at random, and has already occurred several times. apt will sometimes segfault, but other times report that dpkg errored. Repeatedly running the command results in a different file being shown every time, seemingly sequentially. Removing the whole directory tree and retrying does not solve the problem.
Ubuntu version: 17.10
What was supposed to happen: linux-image-
What happened instead: apt segfaulted after dpkg failed to write to a file
Status changed to 'Confirmed' because the bug affects multiple users.