ubuntu安裝samba提示以下錯誤:ubuntu
root@ubuntu# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:ide
The following packages have unmet dependencies:
samba : Depends: update-inetd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.工具
解決辦法:ui
root@ubuntu # sudo apt-get install aptitude
3d
提示已經安裝最新版本。orm
root@ubuntu# sudo aptitude install sambablog
輸入Y ,贊成接受,但沒有包更新。安裝應未成功。ci
修改source.list文件
root@ubuntu# vi /etc/apt/sources.list
get
更新source
root@ubuntu:~# sudo apt-get updateit
再次安裝samba
root@ubuntu:~o# apt-get install samba
備註:
aptitude 與 apt-get 同樣,是 功能極其強大的包管理工具。與 apt-get 不一樣的是,aptitude 在處理依賴問題上更佳一些。舉例來講,aptitude 在刪除一個包時,會同時刪除自己所依賴的包。這樣,系統中不會殘留無用的包,整個系統更爲乾淨。