2014-07-22 96 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包。

相關問題