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 | user5@system:/var/cache/apt/archives$ ls
emacs24_24.5+1-6ubuntu1.1_amd64.deb
libsmbclient_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
libtcltk-ruby_1%3a2.3.0+1_all.deb
libwbclient0_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
linux-generic_4.4.0.93.98_amd64.deb
linux-headers-4.4.0-93_4.4.0-93.116_all.deb
linux-headers-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-headers-generic_4.4.0.93.98_amd64.deb
linux-image-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-image-extra-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-image-extra-virtual_4.4.0.93.98_amd64.deb
linux-image-generic_4.4.0.93.98_amd64.deb
linux-libc-dev_4.4.0-93.116_amd64.deb
linux-signed-generic_4.4.0.93.98_amd64.deb
linux-signed-image-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-signed-image-generic_4.4.0.93.98_amd64.deb
linux-tools-4.4.0-93_4.4.0-93.116_amd64.deb
linux-tools-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-tools-common_4.4.0-93.116_all.deb
linux-tools-virtual_4.4.0.93.98_amd64.deb
lock
partial
ri_1%3a2.3.0+1_all.deb
ruby2.3-dev_2.3.1-2~16.04.2_amd64.deb
ruby2.3-doc_2.3.1-2~16.04.2_all.deb
ruby2.3-tcltk_2.3.1-2~16.04.2_amd64.deb
ruby-dev_1%3a2.3.0+1_amd64.deb
ruby-full_1%3a2.3.0+1_all.deb
samba-libs_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
user5@system:/var/cache/apt/archives$ sudo rm emacs24_24.5+1-6ubuntu1.1_amd64.deb
user5@system:/var/cache/apt/archives$ ls
libsmbclient_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
libtcltk-ruby_1%3a2.3.0+1_all.deb
libwbclient0_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
linux-generic_4.4.0.93.98_amd64.deb
linux-headers-4.4.0-93_4.4.0-93.116_all.deb
linux-headers-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-headers-generic_4.4.0.93.98_amd64.deb
linux-image-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-image-extra-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-image-extra-virtual_4.4.0.93.98_amd64.deb
linux-image-generic_4.4.0.93.98_amd64.deb
linux-libc-dev_4.4.0-93.116_amd64.deb
linux-signed-generic_4.4.0.93.98_amd64.deb
linux-signed-image-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-signed-image-generic_4.4.0.93.98_amd64.deb
linux-tools-4.4.0-93_4.4.0-93.116_amd64.deb
linux-tools-4.4.0-93-generic_4.4.0-93.116_amd64.deb
linux-tools-common_4.4.0-93.116_all.deb
linux-tools-virtual_4.4.0.93.98_amd64.deb
lock
partial
ri_1%3a2.3.0+1_all.deb
ruby2.3-dev_2.3.1-2~16.04.2_amd64.deb
ruby2.3-doc_2.3.1-2~16.04.2_all.deb
ruby2.3-tcltk_2.3.1-2~16.04.2_amd64.deb
ruby-dev_1%3a2.3.0+1_amd64.deb
ruby-full_1%3a2.3.0+1_all.deb
samba-libs_2%3a4.3.11+dfsg-0ubuntu0.16.04.11_amd64.deb
user5@system:/var/cache/apt/archives$ sudo dpkg -P emacs24-bin-common emacs24
dpkg: error processing package emacs24 (--purge):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: dependency problems prevent removal of emacs24-bin-common:
emacs24 depends on emacs24-bin-common (= 24.5+1-6ubuntu1).
dpkg: error processing package emacs24-bin-common (--purge):
dependency problems - not removing
Errors were encountered while processing:
emacs24
emacs24-bin-common
user5@system:/var/cache/apt/archives$ sudo apt-get install --reinstall emacs24
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
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.
The following packages will be upgraded:
emacs24
1 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
1 not fully installed or removed.
Need to get 3,352 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 emacs24 amd64 24.5+1-6ubuntu1.1 [3,352 kB]
Fetched 3,352 kB in 0s (3,584 kB/s)
Selecting previously unselected package emacs24.
(Reading database ... 372070 files and directories currently installed.)
Preparing to unpack .../emacs24_24.5+1-6ubuntu1.1_amd64.deb ...
/var/lib/dpkg/info/emacs24.prerm: 16: /var/lib/dpkg/info/emacs24.prerm: /usr/lib/emacsen-common/emacs-remove: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 16: /var/lib/dpkg/tmp.ci/prerm: /usr/lib/emacsen-common/emacs-remove: not found
dpkg: error processing archive /var/cache/apt/archives/emacs24_24.5+1-6ubuntu1.1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
update-alternatives: error: alternative path /usr/bin/emacs24-x doesn't exist
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/emacs24_24.5+1-6ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
user5@system:/var/cache/apt/archives$ SAME DAMN ERROR IN /VAR/CACHE/APT/ARCHIVE!!
|