1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| root@vps:~# apt-get install -fReading package lists... DoneBuilding dependency tree Reading state information... Done0 upgraded, 0 newly installed, 0 to remove and 349 not upgraded.3 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Setting up linux-image-3.19.0-76-generic (3.19.0-76.84) ...Running depmod.update-initramfs: deferring update (hook will be called later)The link /initrd.img is a dangling linkto /boot/initrd.img-3.19.0-76-genericvmlinuz(/boot/vmlinuz-3.19.0-76-generic) points to /boot/vmlinuz-3.19.0-76-generic (/boot/vmlinuz-3.19.0-76-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.19.0-76-generic.postinst line 491.Examining /etc/kernel/postinst.d.run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-76-generic /boot/vmlinuz-3.19.0-76-genericrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-76-generic /boot/vmlinuz-3.19.0-76-genericupdate-initramfs: Generating /boot/initrd.img-3.19.0-76-genericE: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.update-initramfs: failed for /boot/initrd.img-3.19.0-76-generic with 1.run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.19.0-76-generic.postinst line 1025.dpkg: error processing package linux-image-3.19.0-76-generic (--configure): subprocess installed post-installation script returned error exit status 2dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-76-generic: linux-image-extra-3.19.0-76-generic depends on linux-image-3.19.0-76-generic; however: Package linux-image-3.19.0-76-generic is not configured yet.dpkg: error processing package linux-image-extra-3.19.0-76-generic (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: linux-image-3.19.0-76-generic linux-image-extra-3.19.0-76-genericE: Sub-process /usr/bin/dpkg returned an error code (1) |
编辑 dpkg status 状态文件:
1
| sudo vim /var/lib/dpkg/status |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| Package: linux-image-3.19.0-76-genericStatus: install ok half-configuredPriority: optionalSection: kernelInstalled-Size: 47223Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>Architecture: amd64Source: linuxVersion: 3.19.0-76.84Provides: fuse-module, ivtv-modules, kvm-api-4, linux-image, linux-image-3.0, redhat-cluster-modules, virtualbox-guest-modulesDepends: initramfs-tools (>= 0.36ubuntu6) | linux-initramfs-tools, module-init-tools (>= 3.3-pre11-4ubuntu3)Pre-Depends: dpkg (>= 1.10.24)Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo (>= 19.1)Suggests: fdutils, linux-doc-3.19.0 | linux-source-3.19.0, linux-tools, linux-headers-3.19.0-76-genericConflicts: hotplug (<< 0.0.20040105-1)Description: Linux kernel image for version 3.19.0 on 64 bit x86 SMP This package contains the Linux kernel image for version 3.19.0 on 64 bit x86 SMP. . Also includes the corresponding System.map file, the modules built by the packager, and scripts that try to ensure that the system is not left in an unbootable state after an update. . Supports Generic processors. . Geared toward desktop and server systems. . You likely do not want to install this package directly. Instead, install the linux-generic meta-package, which will ensure that upgrades work correctly, and that supporting packages are also installed. |
1
| sudo apt-get install -f |
1
2
| rm -rf /lib/modules/3.19.0-76-generic/rm -rf /boot/*3.19.0-76* |
No comments:
Post a Comment