Former, rain tree wind version of the problem of installing Samba under Ubuntu, now write to share.
[Email protected]:~# apt-get Install Samba
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
Some software packages cannot be installed. If you are using an unstable (unstable) release, this may be
Because the system is unable to achieve the state you requested. There may be some software that you need in this release
The packages have not been created or they are still in the new to (incoming) directory.
The following information may be helpful in resolving a problem:
The following packages have dependencies that are not met:
Samba: dependent: samba-common (= 2:3.4.0-3ubuntu5) But 2:3.4.0-3ubuntu5.3 is going to be installed
E: Packages that cannot be installed
This problem should be a source of software problems, the source version is relatively low, relying on the version number is lower than the version number that is being installed, resulting in the inability to install.
Just remove the original software source and replace it with a new one.
Practice See here: http://wiki.ubuntu.org.cn/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E6%8E%A8%E8%8D%90%E7%9A%84%E6%BA%90
sudo gedit/etc/apt/sources.list
Write the software source, then refresh, note must be refreshed, run:
sudo apt-get update
Finally done.
[Email protected]:~# apt-get Install Samba
Reading Package List ... Complete
Analyzing Dependency tree for Package
Reading status information ... Complete
The following packages are automatically installed and are no longer being used:
User-setup Localechooser-da
Ta
Use ' Apt-get autoremove ' to remove them
Recommended Packages to install:
openbsd-inetd Inet-superserver Smbldap-tools Ldb-tools
The following "new" packages will be installed:
Samba
A total of 0 packages were upgraded, 1 new packages were installed, 0 packages were uninstalled, 78 software was not upgraded.
You need to download the 6,241KB package.
After decompression, it consumes 17.1MB of extra space.
Get: 1 http://mirrors.163.com karmic-updates/main samba 2:3.4.0-3ubuntu5.3 [6,241kb]
Download 6,241kb, time 17 seconds (356KB/S)
Pre-Set Package ...
Select the package samba that was previously deselected.
(Reading Database ... The system currently has a total of 120,086 files and directories installed. )
Extracting Samba (from .../samba_2%3a3.4.0-3ubuntu5.3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for UFW ...
Processing triggers for sreadahead ...
Sreadahead'll be reprofiled on next reboot
Setting up Samba (2:3.4.0-3ubuntu5.3) ...
Update-alternatives: Use/USR/BIN/SMBSTATUS.SAMBA3 to provide/usr/bin/smbstatus (smbstatus) in automatic mode.
Generating/etc/default/samba ...
Installing Samba on Ubuntu does not install the problem, "the following packages have an unsatisfied dependency"