尝试学习如何使用 Virtualbox 运行 Ubuntu 服务器(具体来说,尝试按照 ArsTechnica 上的视频和 Linode 指南设置 Prosody)。我已经启动并运行了它,一切似乎都正常,直到我尝试更新。然后我收到了几个由于哈希总和而导致的“无法获取”警告?(会发布终端输出,但我无法发布声誉低于 10 的链接!)
“获取失败”位看起来很糟糕,这很糟糕吗?
此外,按照 linode 指南操作,添加 prosody 键可以正常工作,但再次尝试更新时仍会发生相同的情况。Apt-get upgrade 似乎工作正常,不会引发任何警告或错误。
接下来,在尝试安装 Prosody 本身时,我遇到了另一个问题:
root@Tserver:~# apt-get install prosody liblua5.1-sec0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:
The following packages have unmet dependencies:
prosody : Depends: lua-expat but it is not installable or
liblua5.1-expat0 but it is not installable
Depends: lua-filesystem but it is not installable or
liblua5.1-filesystem0 but it is not installable
E: Unable to correct problems, you have held broken packages.
*****
我似乎也无法自行安装任何依赖项。
我承认,在这些事情上我完全是个菜鸟——我是不是忽略了什么?
答案1
通过将服务器升级到 14.04LTS 来修复。不知道为什么 12.04LTS 会出现这个问题,但现在一切都正常运转了。