Querying system Current Kernel
Querying the system for existing kernel files
Purging Redundant kernel files
As above, Error!
A total of three error:
- Child process Old Pre-removal script returns error status 1
- Child process New Pre-removal script returns error status 1
- Child process installed Post-Installation script returns error status 1
Workaround:
"Child process old Pre-removal script returned error status 1" issue:
Opened the status document, looking for the Linux kernel corresponding package, only found a linux-base package, deleted the corresponding description.
In fact, there are tens of thousands of lines of open files, it is not very good to find a string, and then you are not particularly familiar with the Linux command line.
I looked for it in the following way:
Input sudo vi/var/lib/dpkg/status
But the line number is not displayed,
Enter a colon set number and then enter to display line numbers:
Enter a slash, enter the string you want to find, and then return to the location of the string you want to find.
You can then find the line in the corresponding file.
Delete this section.
(Back to here:
Package:linux-base
Status:install OK installed
Priority:optional
Section:kernel
Installed-size:22
Maintainer:ubuntu Developers <ubuntu-devel-di[email protected]>
Architecture:all
Multi-arch:foreign
Version:4.0ubuntu1
Description:linux Image Base Package
This package contains files and the support scripts for all Linux
Images.
Original-maintainer:debian Kernel Team <[email protected]>
)
Ubuntu16.04 Update and download something error