在Ubuntu 10.4中安装flex时出错

时间:2013-07-26 15:13:35

标签: linux ubuntu

当我在Ubuntu 10.4 LTS中的终端中键入sudo apt-get install flex时,会显示以下消息并且该过程终止:

reading package lists...done

building dependency tree 

reading state information..done

package flex is not available ....but is referred to by another package

this may mean that package flex is missing, has been obsoleted or is only available from another source
E: package flex has no installation candidate

1 个答案:

答案 0 :(得分:0)

您的软件包可能不是最新的,因此只需运行:

sudo apt-get update

执行此命令后,再次运行命令。这对我有用。