安装挂起时如何排除 aptitude / dpkg 故障

安装挂起时如何排除 aptitude / dpkg 故障

我正在尝试使用设置服务器LXD 容器Ubuntu/Debian 映像,但经常遇到安装问题资质。在此示例中,我想设置一个舒适的服务器

Setting up <package> (version) ...例如,Aptitude 完全符合该标准

Setting up rsync (3.1.1-3) ... 
Failed to execute operation: Connection timed out

dpkg --configure --all当我中止它并重新启动安装时,它告诉我由于安装中止而运行。这很有道理。但是该命令再次导致相同的问题。取消进程 dpkg 然后打印

Errors were encountered while processing:
rsync
supervisor
nginx-full
(and many more ...)

然后我想尝试单独安装/配置软件包,这样我就可以解决问题。我输入apt-get --configure supervisor

dpkg --configure supervisor
Setting up supervisor (3.0r1-1) ...
Failed to get D-Bus connection: No such file or directory
Failed to get D-Bus connection: No such file or directory
Failed to get D-Bus connection: No such file or directory
invoke-rc.d: initscript supervisor, action "start" failed.
dpkg: error processing package supervisor (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 supervisor

从现在起我该如何排除故障?我该如何找出配置失败的原因?据我所知,有些初始化失败了。我真的被困在这里了。

相关内容