apt-get/dpkg总是默认安装一个软件且出错

发布于 2022-09-03 08:22:34 字数 1689 浏览 22 评论 0

不管安装什么软件,都自动带上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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文