不管安裝什麼軟件,都自動帶上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:~#