<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[虚拟机安装OpenFOAM-v2012遇到问题（Unable to locate package）]]></title><description><![CDATA[<p dir="auto">虚拟机的信息是：</p>
<pre><code>LSB Version:	core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 20.10
Release:	20.10
Codename:	groovy
</code></pre>
<p dir="auto">按照<a href="%E9%93%BE%E6%8E%A5%E5%9C%B0%E5%9D%80">https://www.openfoam.com/download/openfoam-installation-from-source</a>的步骤来安装，首先需要按照<a href="%E9%93%BE%E6%8E%A5%E5%9C%B0%E5%9D%80">https://www.openfoam.com/documentation/system-requirements</a>安装一些系统软件，第一部分如下：</p>
<pre><code>sudo apt-get update
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev
</code></pre>
<p dir="auto">执行第三行命令时出现错误：</p>
<pre><code>Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libqt4-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package qt4-dev-tools
E: Package 'libqt4-dev' has no installation candidate
E: Unable to locate package libqt4-opengl-dev
E: Unable to locate package libqtwebkit-dev
</code></pre>
<p dir="auto">网上的说法是要换国内的源，所以按照<a href="%E9%93%BE%E6%8E%A5%E5%9C%B0%E5%9D%80">https://blog.csdn.net/qq_42824983/article/details/110236257</a>更换为阿里源，但是问题仍然存在，而且sudo apt-get upgrade后还有三百多个not upgraded，于是来论坛请教。<br />
还有个小问题，刚才那个教程里的get-apt update以及apt-get upgrade无法被执行，在前面加sudo就行了，不知道是作者漏写了还是其它原因？<br />
感谢各位老师和前辈！</p>
]]></description><link>https://cfd-china.com/topic/4969/虚拟机安装openfoam-v2012遇到问题-unable-to-locate-package</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 12:46:35 GMT</lastBuildDate><atom:link href="https://cfd-china.com/topic/4969.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Jun 2021 14:57:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 虚拟机安装OpenFOAM-v2012遇到问题（Unable to locate package） on Wed, 30 Jun 2021 01:17:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://cfd-china.com/uid/2048">@flyzx95</a>  嗯 所以你直接忽略就行 另外OpenFOAM-v2106发布了</p>
]]></description><link>https://cfd-china.com/post/26320</link><guid isPermaLink="true">https://cfd-china.com/post/26320</guid><dc:creator><![CDATA[李东岳]]></dc:creator><pubDate>Wed, 30 Jun 2021 01:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to 虚拟机安装OpenFOAM-v2012遇到问题（Unable to locate package） on Wed, 30 Jun 2021 00:41:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://cfd-china.com/uid/1">@李东岳</a> 谢谢李老师</p>
]]></description><link>https://cfd-china.com/post/26319</link><guid isPermaLink="true">https://cfd-china.com/post/26319</guid><dc:creator><![CDATA[flyzx95]]></dc:creator><pubDate>Wed, 30 Jun 2021 00:41:52 GMT</pubDate></item><item><title><![CDATA[Reply to 虚拟机安装OpenFOAM-v2012遇到问题（Unable to locate package） on Wed, 30 Jun 2021 00:05:44 GMT]]></title><description><![CDATA[<p dir="auto">第三行不需要执行 那个是后处理用的 先装openfoam再说</p>
]]></description><link>https://cfd-china.com/post/26317</link><guid isPermaLink="true">https://cfd-china.com/post/26317</guid><dc:creator><![CDATA[李东岳]]></dc:creator><pubDate>Wed, 30 Jun 2021 00:05:44 GMT</pubDate></item></channel></rss>