apt broken by unattended upgrade in Ubuntu 19.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I've got this issue on a fresh (last week) Ubuntu-server 19.10 install, with gnome-session installed on top.
From history.log:
Start-Date: 2019-12-04 06:24:37
Commandline: /usr/bin/
Install: linux-image-
Upgrade: linux-headers-
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-12-04 06:25:04 get this error
From term.log:
Log started: 2019-12-04 06:24:37
Selecting previously unselected package linux-modules-
(Reading database ... 162957 files and directories currently installed.)
Preparing to unpack .../0-linux-
Unpacking linux-modules-
dpkg: error processing archive /tmp/apt-
unable to create new file '/var/lib/
dpkg (subprocess): unable to execute rm command for cleanup (rm): Operation not permitted
dpkg: error while cleaning up:
rm command for cleanup subprocess returned error exit status 2
Selecting previously unselected package linux-image-
Preparing to unpack .../1-linux-
Unpacking linux-image-
Selecting previously unselected package linux-modules-
Preparing to unpack .../2-linux-
Unpacking linux-modules-
dpkg: error processing archive /tmp/apt-
unable to open '/lib/modules/
Preparing to unpack .../3-linux-
Unpacking linux-generic (5.3.0.24.28) over (5.3.0.23.27) ...
Preparing to unpack .../4-linux-
Unpacking linux-image-generic (5.3.0.24.28) over (5.3.0.23.27) ...
Selecting previously unselected package linux-headers-
Preparing to unpack .../5-linux-
Unpacking linux-headers-
dpkg: error processing archive /tmp/apt-
unable to create new file '/var/lib/
Selecting previously unselected package linux-headers-
Preparing to unpack .../6-linux-
Unpacking linux-headers-
Preparing to unpack .../7-linux-
Unpacking linux-headers-
Errors were encountered while processing:
/tmp/apt-
/tmp/apt-
/tmp/apt-
Log ended: 2019-12-04 06:25:04
Try to fix it, following apt instructions. From term.log:
Start-Date: 2019-12-04 23:32:41
Commandline: apt --fix-broken install
Requested-By: ### (1000)
Install: linux-modules-
Upgrade: linux-headers-
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2019-12-04 23:33:01
From history.log:
Log started: 2019-12-04 23:32:41
(Reading database ... 174863 files and directories currently installed.)
Preparing to unpack .../linux-
Unpacking linux-modules-
Preparing to unpack .../linux-
Unpacking linux-modules-
dpkg: error processing archive /var/cache/
unable to open '/lib/modules/
Preparing to unpack .../linux-
Unpacking linux-headers-
Errors were encountered while processing:
/var/cache/
Log ended: 2019-12-04 23:33:01
Fails. Tried apt clean, apt autoclean, to no avail. apt is now broken.
For info, when I run "sudo apt --fix-broken install" it sometimes fails with a segmentation fault. Also, it seems to report "Operation not permitted" errors on a different drivers each time I run it. It's not repeatable.
Is there a way that I can uninstall the 5.3.0-24 kernel (apt purge doesn't work) and then blacklist it to prevent automatically upgrading to it again, so that I can continue to use apt until this issue has been fixed?