ubuntu安裝Samba錯誤解決辦法

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

  1. 安裝aptitude工具:

root@ubuntu # sudo apt-get install aptitude
ubuntu安裝Samba錯誤解決辦法3d

提示已經安裝最新版本。orm

  1. 使用 aptitude安裝samba

root@ubuntu# sudo aptitude install sambablog

ubuntu安裝Samba錯誤解決辦法

輸入Y ,贊成接受,但沒有包更新。安裝應未成功。ci

  1. 檢查 並更新 source.list文件
    檢查系統版本:
    root@ubuntu:~# lsb_release -rc
    ubuntu安裝Samba錯誤解決辦法

修改source.list文件
root@ubuntu# vi /etc/apt/sources.list
ubuntu安裝Samba錯誤解決辦法get

  1. 更新source
    root@ubuntu:~# sudo apt-get updateit

  2. 再次安裝samba
    root@ubuntu:~o# apt-get install samba
    ubuntu安裝Samba錯誤解決辦法

  3. 檢查安裝成功。

備註:

  1. aptitude 與 apt-get 同樣,是 功能極其強大的包管理工具。與 apt-get 不一樣的是,aptitude 在處理依賴問題上更佳一些。舉例來講,aptitude 在刪除一個包時,會同時刪除自己所依賴的包。這樣,系統中不會殘留無用的包,整個系統更爲乾淨。

  2. 當仍是安裝不成功時,需檢查源安裝庫是否配置正確(更新源安裝庫時須要注意系統的版本)。
相關文章
相關標籤/搜索