vir*_*nux 8 aptitude debian dpkg
我有一个包管理问题:
在某些时候,我一定是中断了更新或什么的,因为 bluez 包坏了。我试过删除和/或重新安装,但除了错误之外什么也没有。只要这个包坏了,我就无法用 apt 执行任何操作。
我尝试删除包的输出
$ sudo aptitude remove bluez
The following packages will be REMOVED:
bluez
The following partially installed packages will be configured:
dictionaries-common dmsetup grub-pc ifupdown install-info rsyslog
0 packages upgraded, 0 newly installed, 1 to remove and 235 not upgraded.
Need to get 0 B of archives. After unpacking 1,737 kB will be freed.
dpkg: error processing bluez (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
configured to not write apport reports
Errors were encountered while processing:
bluez
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up install-info (4.13a.dfsg.1-8) ...
/var/lib/dpkg/info/install-info.postinst: 32: /var/lib/dpkg/info/install-info.postinst: update-info-dir: not found
dpkg: error processing install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up ifupdown (0.7~alpha5+really0.6.15) ...
/var/lib/dpkg/info/ifupdown.postinst: 122: /var/lib/dpkg/info/ifupdown.postinst: update-rc.d: not found
dpkg: error processing ifupdown (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up locales (2.13-18) ...
/var/lib/dpkg/info/locales.postinst: 64: /var/lib/dpkg/info/locales.postinst: locale-gen: not found
dpkg: error processing locales (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up dictionaries-common (1.11.6) ...
/var/lib/dpkg/info/dictionaries-common.postinst: 45: /var/lib/dpkg/info/dictionaries-common.postinst: update-dictcommon-aspell: not found
dpkg: error processing dictionaries-common (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up grub-pc (1.99-12) ...
/var/lib/dpkg/info/grub-pc.postinst: line 438: grub-mkdevicemap: command not found
/var/lib/dpkg/info/grub-pc.postinst: line 263: grub-probe: command not found
/var/lib/dpkg/info/grub-pc.postinst: line 263: grub-probe: command not found
/var/lib/dpkg/info/grub-pc.postinst: line 263: grub-probe: command not found
/var/lib/dpkg/info/grub-pc.postinst: line 559: grub-install: command not found
/var/lib/dpkg/info/grub-pc.postinst: line 669: update-grub: command not found
dpkg: error processing grub-pc (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up dmsetup (2:1.02.65-1) ...
/var/lib/dpkg/info/dmsetup.postinst: 8: /var/lib/dpkg/info/dmsetup.postinst: update-initramfs: not found
dpkg: error processing dmsetup (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up rsyslog (5.8.5-1) ...
/var/lib/dpkg/info/rsyslog.postinst: 45: /var/lib/dpkg/info/rsyslog.postinst: update-rc.d: not found
dpkg: error processing rsyslog (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
install-info
ifupdown
locales
dictionaries-common
grub-pc
dmsetup
rsyslog
Run Code Online (Sandbox Code Playgroud)
我正在运行 Debian 测试。这个问题实际上是这个特定的包,还是dpkg的问题?我需要做什么来修复我的包管理器?
我以前没有遇到过这个消息,所以我猜它是 bluez 特定的。您是否尝试过重新安装消息所提示的?
apt-get install --reinstall bluez
Run Code Online (Sandbox Code Playgroud)
您也可以尝试使用 dpkg 从 apt 缓存安装/配置 bluez 包。在 /var/cache/apt 中查找 bluez 包。像这样安装(以 root 身份):
dpkg -i <bluez debian package>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
33898 次 |
| 最近记录: |