我无法删除需要删除才能更新系统的软件包

我无法删除需要删除才能更新系统的软件包

这导致我无法更新系统,也导致应用程序安装失败。软件包名称为 linux-image-5.15.0-25-generic。我使用的是 Kubuntu 22.04 LTS。

编辑:根据要求:

要查找内核版本(在网络上快速搜索控制台命令之后):

uname -r

5.15.0-27-generic

我开始更新后收到的消息是在打开的“发现”对话框中,显示“更新将删除以下软件包:linux-image-5.15.0-25-generic (5.15.0-25.25)”,其中显示“安装顺序:”,后面是一长串软件组件。我单击“继续”,它开始更新。过了一会儿,我收到一条消息,说更新失败,具体消息是“更新安装失败:安装软件包时出错:已安装的 linux-image-5.15.0-25-generic 软件包删除后脚本子进程返回错误退出状态 1”。

是的,我经常重新启动系统,并且重新启动后就会发生这种情况。

DF-H

Filesystem      Size  Used Avail Use% Mounted on
tmpfs           371M  1.7M  370M   1% /run
/dev/sda2       916G  206G  664G  24% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/sda1       511M  5.3M  506M   2% /boot/efi
tmpfs           371M   92K  371M   1% /run/user/1000

DF-我

Filesystem       Inodes  IUsed    IFree IUse% Mounted on
tmpfs            474473    997   473476    1% /run
/dev/sda2      61022208 444242 60577966    1% /
tmpfs            474473      1   474472    1% /dev/shm
tmpfs            474473      4   474469    1% /run/lock
/dev/sda1             0      0        0     - /boot/efi
tmpfs             94894    124    94770    1% /run/user/1000

sudo apt 更新

Hit:1 http://lb.archive.ubuntu.com/ubuntu jammy InRelease                                    
Get:2 http://lb.archive.ubuntu.com/ubuntu jammy-updates InRelease [109 kB]   
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://lb.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]                                                                                                                                                              
Get:5 http://lb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [277 kB]                                                                                                                                                       
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [11.4 kB]                                                                                                                                                
Get:7 http://lb.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [124 kB]                                                                                                                                                        
Get:8 http://lb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [73.3 kB]                                                                                                                                               
Get:9 http://lb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [116 kB]                                                                                                                                                   
Get:10 http://lb.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [46.3 kB]                                                                                                                                                  
Get:11 http://lb.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [91.8 kB]                                                                                                                                          
Get:12 http://lb.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [1,196 B]                                                                                                                                        
Fetched 1,060 kB in 17s (61.5 kB/s)                                                                                                                                                                                                        
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
62 packages can be upgraded. Run 'apt list --upgradable' to see them.

dpkg -l | egrep -v '^ii|rc'

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
+++-=============================================-===========================================-============-================================================================================
rH  linux-image-5.15.0-25-generic                 5.15.0-25.25                                amd64        Signed kernel image generic
iF  linux-image-5.15.0-30-generic                 5.15.0-30.31                                amd64        Signed kernel image generic
iF  linux-image-5.15.0-33-generic                 5.15.0-33.34                                amd64        Signed kernel image generic
iF  plymouth-theme-kubuntu-logo                   1:22.04.10                                  all          graphical boot animation and logger - kubuntu-logo theme

相关内容