Ubuntu删除旧内核

时间:2018-10-24 08:13:26

标签: ubuntu kernel

我在安装smartmontools应用程序时遇到麻烦。 写道,有不满意的依赖关系。 我检查了bootloader文件夹并意识到它已满。 现在,我试图从旧内核中清除它。 为此,我想使用-s选项运行autoremove,它将显示其删除的内容。 但是根据我所看到的,新内核linux-image-extra-4.4.0-65-generic- 未安装。恐怕要取下芯子,而要保持芯子不动。 请告知决定。

user@ubuntu:~# sudo apt-get install smartmontools                                                    
Reading package lists... Done                                                                         
Building dependency tree                                                                              
Reading state information... Done                                                                     
You might want to run 'apt-get -f install' to correct these:                                          
The following packages have unmet dependencies:                                                       
linux-image-extra-4.4.0-65-generic : Depends: linux-image-4.4.0-65-generic but it is not installable
linux-signed-image-4.4.0-65-generic : Depends: linux-image-4.4.0-65-generic (= 4.4.0-65.86) but it is  not installable 
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

user@ubuntu:~$ df -h
/dev/sdd2       454M  445M     0 100% /boot 

user@ubuntu:~$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'                                 resources: irq:19 ioport:f700(size=8) ioport:f600(size=4) ioport:f500(size=8) ioport:f400(size
rc  linux-image-4.4.0-31-generic        4.4.0-31.50 amd64 Linux kernel ioport:f300(size=16) ioport:f200(size=16) 
image for version 4.4.0 on 64 bit x86 SMP *-scsi
ii  linux-image-4.4.0-47-generic        4.4.0-47.68 amd64 Linux kernel physical id: 2
image for version 4.4.0 on 64 bit x86SMP  logical name: scsi3
ii  linux-image-4.4.0-51-generic        4.4.0-51.72 amd64 Linux kernel capabilities: emulated
image for version 4.4.0 on 64 bit x86 SMP *-cdrom
ii  linux-image-4.4.0-53-generic        4.4.0-53.74 amd64 Linux kernel description: DVD writer
image for version 4.4.0 on 64 bit x86 SMP product: DVD RW AD-5280S
ii  linux-image-4.4.0-57-generic        4.4.0-57.78 amd64        Linux kernel vendor: Optiarc
image for version 4.4.0 on 64 bit x86 SMP physical id: 0.0.0
ii  linux-image-4.4.0-59-generic        4.4.0-59.80                         amd64        Linux kernel bus info: scsi@3:0.0.0
image for version 4.4.0 on 64 bit x86 SMP logical name: /dev/cdrom
ii  linux-image-4.4.0-62-generic        4.4.0-62.83                         amd64        Linux kernel logical name: /dev/cdrw
image for version 4.4.0 on 64 bit x86 SMP logical name: /dev/dvd
ii  linux-image-4.4.0-63-generic        4.4.0-63.84                         amd64        Linux kernel logical name: /dev/dvdrw
image for version 4.4.0 on 64 bit x86 SMP logical name: /dev/sr0
ii  linux-image-4.4.0-64-generic        4.4.0-64.85                         amd64        Linux kernel version: 1.01
image for version 4.4.0 on 64 bit x86 SMP  capabilities: removable audio cd-r cd-rw dvd dvd-r

user@ubuntu:~$ uname -r                                                                            configuration: ansiversion=5 status=nodisc
4.4.0-64-generic 

user@ubuntu:~$ sudo apt-get -s autoremove
The following packages have unmet dependencies:
linux-image-extra-4.4.0-65-generic : Depends: linux-image-4.4.0-65-generic but it is not installable  linux-signed-image-4.4.0-65-generic : Depends: linux-image-4.4.0-65-generic (= 4.4.0-65.86) but it is not  installable               
E: Unmet dependencies. Try using -f.

0 个答案:

没有答案