Ubuntu14.10安装虚拟机后安装package失败

#  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

原因:14.10(utopic) 已经停止支持和线上更新,软件源已经没有 utopic 目录

短期内不想重装的话可以把源换成 http://old-releases.ubuntu.com/ubuntu/ 
不过不会再有软件更新,而且服务器在英国,比较慢

参考:https://wiki.ubuntu.com/Releases

换源后

sudo apt-get update

sudo apt-get upgrade

sudo spt-get install <packagename>


你可能感兴趣的:(ubuntu)