2014-07-22 73 views
0

我运行有关AWK程序,我得到错误:*无法找到对Linux操作系统Ubuntu NS2程序包GAWK

program 'gawk' is currently not installed. You can install it by typing: 
sudo apt-get install gawk 
You will have to enable the component called 'main' 

,当我写命令和apt-get安装GAWK命令,我得到这个

[sudo] password for sh: 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
E: Unable to locate package gawk 

我该如何解决它?

回答

1
You will have to enable the component called 'main' 

同样,您需要启用主存储库。只需运行以下命令即可启用main存储库。

sudo add-apt-repository main 
sudo apt-get update 

现在安装gawk包。

相关问题