我是 Ubuntu 的新用户,尝试在 Ubuntu 14.04.5 上安装 OpenFOAM CFD 软件。我输入命令后sudo apt-get update
,最后出现以下错误。
W: GPG error: http://dl.openfoam.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6C0DAC728B29D817
我尝试使用以下命令修复此错误:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6C0DAC728B29D817
但它不起作用并且我收到此错误:
gpg: requesting key 8B29D817 from hkp server keyserver.ubuntu.com
gpgkeys: key 6C0DAC728B29D817 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
我应该怎么办?
答案1
您是否运行了以下命令?
sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu