apt-get/dpkg总是默认安装一个软件且出错
不管安装什么软件,都自动带上mosquitto
然后报错导致安装失败.
aptitude 和 apt-get 都会出一样的错误,觉得应该是dpkg的问题
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
root@ip-10-152-43-213:~# apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version.
The following packages will be upgraded:
mosquitto
1 upgraded, 0 newly installed, 0 to remove and 112 not upgraded.
197 not fully installed or removed.
Need to get 0 B/138 kB of archives.
After this operation, 34.8 kB of additional disk space will be used.
(Reading database ... 65715 files and directories currently installed.)
Preparing to replace mosquitto 1.3.4-0ppa2 (using .../mosquitto_1.4.9-0mosquitto1~nows1_amd64.deb) ...
invoke-rc.d: unknown initscript, /etc/init.d/mosquitto not found.
dpkg: warning: subprocess old pre-removal script returned error exit status 100
dpkg - trying script from the new package instead ...
invoke-rc.d: unknown initscript, /etc/init.d/mosquitto not found.
dpkg: error processing /var/cache/apt/archives/mosquitto_1.4.9-0mosquitto1~nows1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 100
invoke-rc.d: unknown initscript, /etc/init.d/mosquitto not found.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
/var/cache/apt/archives/mosquitto_1.4.9-0mosquitto1~nows1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ip-10-152-43-213:~#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论