invoke-rc.d: 未知的 initscript,未找到 /etc/init.d/modemmanager

invoke-rc.d: 未知的 initscript,未找到 /etc/init.d/modemmanager

我在我的 Android 平板电脑上启动了 Ubuntu 13.10,运行正常,但在安装了一些程序后,出现了这个错误

u0_a206@Android:/ $
u0_a206@Android:/ $ su
root@Android:/ # /data/data/com. Zpwebsites. Linuxonandroid/files/busybox chroot /data/local/mnt /root/init.sh
Config file loaded

New 'X' desktop is localhost: 0

Starting applications specified in /home/ubuntu/.vnc/xstartup
Log file is /home/ubuntu/.vnc/localhost:0.log


If you see the message 'New 'X' Desktop is localhost: 0' then you are ready to VNC into your Ubuntu OS.

If connection from a different machine on the same network as the Android device use the address below:
wlan0: error fetching interface information: Device not found

If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)
 * Starting OpenBSD Secure Shell server sshd                                                                                                             [ OK ] 
To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!

Root@localhost:/#
root@localhost:/# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up modemmanager (0.6.0.0.really-0ubuntu7) ...
invoke-rc.d: unknown initscript,/etc/init.d/modemmanager not found.
dpkg: error processing modemmanager (--configure):
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 modemmanager
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@localhost:/#'

我无法安装任何更新和升级,我尝试了这里和其他论坛上的一些答案,但没有用

答案1

这个问题很容易解决。

Invoke-rc.d(调用启动脚本)无法找到启动脚本/etc/init.d/modemmanager

invoke-rc.d: unknown initscript,/etc/init.d/modemmanager not found.

只需touch /etc/init.d/modemmanager创建它。

答案2

首先modemmanager通过运行下载软件包,

apt-get download modemmanager

然后modemmanager通过运行以下命令完全删除未配置的包,

sudo dpkg -P modemmanager

然后进行升级,

sudo apt-get upgrade

如果您在卸载 modemmanager 后无法连接到互联网,请不要担心,我们已经下载了 modemmanager 包。它将位于您的主目录中。通过运行安装它,

sudo dpkg -i filename.deb

相关内容