ubuntu - apt-get/dpkg总是默认安装一个软件且出错
高洛峰
高洛峰 2017-04-24 09:09:32
0
0
731

不管安装什么软件,都自动带上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:~# 
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

Antworte allen(0)
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage