G50:~$ sudo apt-get install software-center
sudo: unable to resolve host unknown-G50
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-center is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python-samba : Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.14.04.1) but 2:4.3.11+dfsg-0ubuntu0.14.04.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
请阅读错误日志。它说尝试
apt-get -f install
添加sudo
以管理员身份运行。这将解决问题。