擅长:python、mysql、java
<p>实际问题是两个方面的结合:在Arch中使用Python3的别名Python3(与Ubuntu中Python2的别名Python3相反),以及Ubuntu没有附带Python2(我们不需要它,我们使用Python3)。你知道吗</p>
<p>所以解决方案是同时检查<code>python</code>和<code>python3</code>:</p>
<pre><code>config.vm.provision "shell", inline: "if [ ! `which python`] && [ ! `which python3` ]; then sudo pacman noconfirm -S python; fi"
</code></pre>