添加源时出错

添加源时出错

我正在尝试安装 openFOAM,但安装要求我首先运行以下行:

VERS=$(lsb_release -cs) 
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list"

然后运行:

sudo apt-get update

然而,当我运行最后一行时,出现以下错误:

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://www.openfoam.org/download/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

我还没有看到其他人在安装 openFOAM 时抱怨这个问题,所以我不认为这是 openFOAM 的故障

答案1

根据OpenFOAM 下载页面,当前可用的版本不包含 Ubuntu Trusty Tahr:

OpenFOAM 和 Paraview 目前适用于以下版本的 Ubuntu:

  • 12.04 LTS,代号精确

  • 12.10,代号量子

  • 13.04,代号 raring

  • 13.10,代号 saucy

相关内容