|
|
系统:debian etch
kernel-2.6.16.33-xen0
现在的情况是这样的,无论安装什么软件包,都会出现类似下面的信息。
install-server:/var/lib/dpkg# aptitude install squid-cgi
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
apache apache-common apache2-utils
[color="red"]The following packages have been kept back:
tftpd-hpa
The following NEW packages will be installed:
apache apache-common apache2-utils squid-cgi
0 packages upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 4723kB will be used.
Do you want to continue? [Y/n/?] y
[color="red"]Writing extended state information... Error!
E: I wasn't able to locate file for the tftpd-hpa package. This might mean you need to manually fix this package.
E: Couldn't lock list directory..are you root?
install-server:/var/lib/dpkg# dpkg --purge remove tftpd-hpa
dpkg - warning: ignoring request to remove remove which isn't installed.
dpkg: error processing tftpd-hpa (--purge):
[color="red"] Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
tftpd-hpa install-server:/var/lib/dpkg# apt-get install --reinstall tftpd-hpa
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
[color="red"]tftpd-hpa
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/33.1kB of archives.
After unpacking 61.4kB disk space will be freed.
Preconfiguring packages ...
Selecting previously deselected package tftpd-hpa.
(Reading database ... 38495 files and directories currently installed.)
Preparing to replace tftpd-hpa 0.43-1 (using .../tftpd-hpa_0.43-1.1_i386.deb) ...
Stopping HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/tftpd-hpa_0.43-1.1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Starting HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 71
Errors were encountered while processing:
/var/cache/apt/archives/tftpd-hpa_0.43-1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
请问有朋友知道如何解决么?
谢谢` |
|