问题1
在ubuntu上通过apt-get install
安装包的时候会出现 unmet dependency的问题,根据提示使用 sudo apt-get -f install
也没有用
解决方案
sudo dpkg -i --force-overwrite /var/cache/apt/archives/XXX.deb
sudo apt-get -f install
问题2
sudo apt-get update
更新服务器出现如下错误:
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
修改
/etc/resolv.conf
追加
nameserver 8.8.8.8
或
nameserver 114.114.114.114
重启网络
sudo /etc/init.d/networking restart