向Ubuntu菜鸟道别之软件安装篇

来源:岁月联盟 编辑:exp 时间:2012-03-22
本文旨在整体上系统把握ubuntu下用apt-get 安装软件,解决安装软件中的一些烦恼, 如:JDK在新的repository中没有了怎么办?   安装一个新的软件时提示当前该软件已经存在,而且高于原来的版本怎么办?   无法卸载安装的软件怎么办?  记不住软件的名字怎么办? 会修改 repository (通常使用场合是官方不再提供xxx软件或官方不在维护yyyy库)备份先前的(sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak)修改当前的sudo apt-get updatesudo apt-get upgrade会删除软件 (通常是为了安装新的版本)sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak清除当前的sources.list内容sudo apt-get updatesudo apt-get upgradesudo apt-get remove yourSoftwaresudo cp /etc/apt/sources.list.bak /etc/apt/sources.list sudo apt-get updatesudo apt-get upgrade会安装软件 (通过海量查找的方式找到你要的软件然后进行安装)sudo apt-cache search 'parts of yourSoftware name'sudo apt-get install 'fullname of yourSoftware'   作者 Ihavegotyou