Ubuntu apt-get安裝軟體異常問題

來源:互聯網
上載者:User

Ubuntu apt-get安裝軟體異常問題 1、Ubuntu 出現apt-get: Package has no installation candidate問題 異常如下所示:#  apt-get install <packagename>Reading package lists... DoneBuilding dependency tree... DonePackage aptitude is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package <packagename> has no installation candidate解決方案如下:# apt-get update備忘:更新同步安裝列表。在這一步之前可能還需要添加新的源,比如vim /etc/apt/sources.list 我添加了2個deb http://mirrors.163.com/ubuntu/ hardy main universedeb http://tw.archive.ubuntu.com/ubuntu/ hardy main universe # apt-get upgrade【升級所有可升級的已安裝包?我沒做這一步,也可以】# apt-get install <packagename> 2、E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)異常原因是緩衝太小導致的。終端下 輸入命令 sudo gedit /etc/apt/apt.conf.d/70debconfgedit 是文本編輯軟體,也可以用emacs等軟體。在ubuntu10.04下,70debconf 是緩衝設定檔,在其他的一些linux系統中可能在./apt目錄下就有設定檔了。在開啟的檔案中添加一行 APT::Cache-Limit 33554432;包括最後的引號33554432是緩衝大小。 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.