1.使用Ubuntu的apt-get安装软件时出现以下错误:
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
解决方案:输入以下命令
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get upgrade
2.安装软件时候出现以下错误:
unable to resolve host ****(**指你的hostName)
无法解析host.确保主机名与主机相同。如主机名是ubuntupc,主机是ubuntupc-pc必须是相同的。
解决方案:更改阿里云控制台配置如下
第一步:
第二步:
第三步:保存,重启.
参考链接:https://askubuntu.com/questions/59458/error-message-sudo-unable-to-resolve-host-user