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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122 | user5@system:/var/lib/dpkg/info$ sudo mv /var/lib/dpkg/info/emacs* /tmp/
user5@system:/var/lib/dpkg/info$ sudo dpkg --remove --force-remove-reinstreq emacs24*
dpkg: error: --remove needs a valid package name but 'emacs24*' is not: illegal package name in specifier 'emacs24*': character '*' not allowed (only letters, digits and characters '-+._')
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
user5@system:/var/lib/dpkg/info$ sudo dpkg --remove --force-remove-reinstreq emacs24
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: warning: files list file for package 'emacs24-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-el' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacsen-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-common-non-dfsg' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-bin-common' missing; assuming package has no files currently installed
(Reading database ... 368039 files and directories currently installed.)
Removing emacs24 (24.5+1-6ubuntu1) ...
user5@system:/var/lib/dpkg/info$ sudo apt-get remove emacs24
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'emacs24' is not installed, so not removed
The following packages were automatically installed and are no longer required:
emacs24-bin-common emacs24-common emacs24-common-non-dfsg emacs24-el linux-headers-4.4.0-92
linux-headers-4.4.0-92-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic
linux-signed-image-4.4.0-92-generic linux-tools-4.4.0-92 linux-tools-4.4.0-92-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
user5@system:/var/lib/dpkg/info$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
emacs24-bin-common emacs24-common emacs24-common-non-dfsg emacs24-el linux-headers-4.4.0-92
linux-headers-4.4.0-92-generic linux-image-4.4.0-92-generic linux-image-extra-4.4.0-92-generic
linux-signed-image-4.4.0-92-generic linux-tools-4.4.0-92 linux-tools-4.4.0-92-generic
0 upgraded, 0 newly installed, 11 to remove and 86 not upgraded.
After this operation, 386 MB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'emacs24-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-el' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacsen-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-common-non-dfsg' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'emacs24-bin-common' missing; assuming package has no files currently installed
(Reading database ... 368039 files and directories currently installed.)
Removing emacs24-bin-common (24.5+1-6ubuntu1.1) ...
Removing emacs24-el (24.5+1-6ubuntu1.1) ...
Removing emacs24-common (24.5+1-6ubuntu1.1) ...
Removing emacs24-common-non-dfsg (24.4+1-2) ...
Removing linux-headers-4.4.0-92-generic (4.4.0-92.115) ...
Removing linux-headers-4.4.0-92 (4.4.0-92.115) ...
Removing linux-signed-image-4.4.0-92-generic (4.4.0-92.115) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-96-generic
Found initrd image: /boot/initrd.img-4.4.0-96-generic
Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-92-generic
Found initrd image: /boot/initrd.img-4.4.0-92-generic
Found linux image: /boot/vmlinuz-4.4.0-34-generic
Found initrd image: /boot/initrd.img-4.4.0-34-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-extra-4.4.0-92-generic (4.4.0-92.115) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
Error! Could not locate dkms.conf file.
File: does not exist.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-96-generic
Found initrd image: /boot/initrd.img-4.4.0-96-generic
Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-92-generic
Found initrd image: /boot/initrd.img-4.4.0-92-generic
Found linux image: /boot/vmlinuz-4.4.0-34-generic
Found initrd image: /boot/initrd.img-4.4.0-34-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-image-4.4.0-92-generic (4.4.0-92.115) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-92-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-96-generic
Found initrd image: /boot/initrd.img-4.4.0-96-generic
Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-34-generic
Found initrd image: /boot/initrd.img-4.4.0-34-generic
Adding boot menu entry for EFI firmware configuration
done
Removing linux-tools-4.4.0-92-generic (4.4.0-92.115) ...
Removing linux-tools-4.4.0-92 (4.4.0-92.115) ...
user5@system:/var/lib/dpkg/info$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Del linux-image-generic 4.4.0.93.98 [2,286 B]
Del linux-tools-virtual 4.4.0.93.98 [2,282 B]
Del linux-signed-image-generic 4.4.0.93.98 [2,336 B]
Del linux-headers-generic 4.4.0.93.98 [2,268 B]
Del linux-libc-dev 4.4.0-93.116 [836 kB]
Del linux-signed-generic 4.4.0.93.98 [1,822 B]
Del linux-generic 4.4.0.93.98 [1,790 B]
Del linux-image-extra-virtual 4.4.0.93.98 [1,768 B]
user5@system:/var/lib/dpkg/info$ sudo apt-get update && sudo apt-get upgrade
|