ubuntu 安裝nginx, 出現 Unable to locate package


  今天在初始化一台新的ubuntu 服務器時,敲上了 sudo apt-get install nginx 來安裝nginx, 卻發現提示:

   Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        E: Unable to locate package nginx

      

      然后敲上: sudo apt-get update, 這命令作用是:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,這樣才能獲取到最新的軟件包。

 

 然后繼續 sudo apt-get install nginx. 安裝完成 瀏覽器打開

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM