ubuntu12.10下编译chrome时执行/src/build/install-build-deps.sh出错

这是因为脚本中限制了ubuntu的版本,把这一段注释掉就可以了。

ubuntu_versions="10\.04|10\.10|11\.04|11\.10|12\.04"

ubuntu_codenames="lucid|maverick|natty|oneiric|precise"


if ! egrep -q "Ubuntu ($ubuntu_versions|$ubuntu_codenames)" /etc/issue; then
  echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.04 (precise) are currently"\
      "supported" >&2
  exit 1

fi


注释后:

#if ! egrep -q "Ubuntu ($ubuntu_versions|$ubuntu_codenames)" /etc/issue; then
#  echo "ERROR: Only Ubuntu 10.04 (lucid) through 12.04 (precise) are currently"\
#      "supported" >&2
#  exit 1
#fi

你可能感兴趣的:(ubuntu12.10下编译chrome时执行/src/build/install-build-deps.sh出错)