1、Ubuntu 出现apt-get: Package has no installation candidate问题异常如下所示:# apt-get install <packagename> Reading package lists... Done Building dependency tree... Done Package aptitude is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package <packagename> has no installation candidate 解决方法如下: # apt-get update 备注:更新同步安装列表。在这一步之前可能还需要添加新的源,比如 vim /etc/apt/sources.list 我添加了2个 deb http://mirrors.163.com/ubuntu/ hardy main universe deb http://tw.archive.ubuntu.com/ubuntu/ hardy main universe