我正试图在Ubuntu环境中安装OpenTreeMap。 DigitalOcean是他们的“水滴”之一。 作为安装过程的一部分,我已经安装并configuration了Virtual Box和Vagrant来虚拟化环境。 我已经通过各种apt-get install进行了部分操作,每次我都从虚拟盒中断开连接。
[Unpacking libicu48 (from .../libicu48_4.8.1.1-3_i386.deb) ... [/*varies*/] Connection to 127.0.0.1 closed by remote host. Connection to 127.0.0.1 closed.
我执行使用:
vagrant up vagrant ssh
一旦虚拟化,连接在下载/安装软件包时被closures。 不总是相同的停止点,但它总是强制断开。 我仍然通过SSH连接到我的盒子,当我运行vagrant status我显示虚拟框为“中止”:
Current VM states: default aborted The VM is in an aborted state. This means that it was abruptly stopped without properly closing the session. Run `vagrant up` to resume this virtual machine. If any problems persist, you may have to destroy and restart the virtual machine.
更新:试了评论中的build议,我进一步通过了这个过程,并进一步接近,但它仍然通过正常使用vagrant强制断开连接。 这一次,在一个pip install命令。
任何线索,为什么这可能会发生?
这听起来像2件事情之一:
你的文章的这一部分:“我把虚拟盒子显示为”中止“:”这听起来像虚拟机是内核恐慌和closures。 如果是这种情况,虚拟机映像可能是坏的,或与虚拟框不兼容。 在运行更新之前,您可以尝试安装虚拟框工具。 ( https://forums.virtualbox.org/viewtopic.php?f=24&t=36752 )
SSH正在超时…:你也可以编辑你的sshconfiguration(〜/ .ssh / config在mac / linux上)并添加下面的文本。 这将尝试并保持您的SSH连接打开更长的时间。 您的里程将取决于您连接到的盒子上的sshdconfiguration。
主机*
ServerAliveInterval 25
serveralivecountmax 20
你也可以启动屏幕或tmux这样的东西来保持你的会话运行。 这将排除SSH超时。 如果您的更新要求您在某些提示中键入Y / N等,这可能是一个坏主意。