
Originally Posted by
sp000k3y
Hello,
I am trying to install samba, I never faced this problem with other backtrack distro's but on the new BT5 R2 when running the command
apt-get update
apt-get install samba
I get the following error
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:
The following packages have unmet dependencies:
samba: Depends: samba-common (= 2:3.4.7~dfsg-1ubuntu3.6) but 2:3.4.7~dfsg-1ubuntu3.8 is to be installed
Depends: libwbclient0 (= 2:3.4.7~dfsg-1ubuntu3.6) but 2:3.4.7~dfsg-1ubuntu3.8 is to be installed
E: Broken packages
Does this really mean that I have requested an impossible situation? anybody know how to fix this? I need samba for the nmbd and smbd services
The solution for me was to use aptitude with the following command:
aptitude install samba
Code:
aptitude install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
samba
0 packages upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 6,278kB of archives. After unpacking 17.2MB will be used.
The following packages have unmet dependencies:
samba: Depends: samba-common (= 2:3.4.7~dfsg-1ubuntu3.6) but 2:3.4.7~dfsg-1ubuntu3.10 is installed.
Depends: libwbclient0 (= 2:3.4.7~dfsg-1ubuntu3.6) but 2:3.4.7~dfsg-1ubuntu3.10 is installed.
The following actions will resolve these dependencies:
Downgrade the following packages:
libwbclient0 [2:3.4.7~dfsg-1ubuntu3.10 (now) -> 2:3.4.7~dfsg-1ubuntu3.6 (stable)]
samba-common [2:3.4.7~dfsg-1ubuntu3.10 (now) -> 2:3.4.7~dfsg-1ubuntu3.6 (stable)]
smbclient [2:3.4.7~dfsg-1ubuntu3.10 (now) -> 2:3.4.7~dfsg-1ubuntu3.6 (stable)]
smbfs [2:3.4.7~dfsg-1ubuntu3.10 (now) -> 2:3.4.7~dfsg-1ubuntu3.6 (stable)]
winbind [2:3.4.7~dfsg-1ubuntu3.10 (now) -> 2:3.4.7~dfsg-1ubuntu3.6 (stable)]
Score is 140
Accept this solution? [Y/n/q/?] Y
The following packages will be DOWNGRADED:
libwbclient0 samba-common smbclient smbfs winbind
The following NEW packages will be installed:
samba
0 packages upgraded, 1 newly installed, 5 downgraded, 0 to remove and 7 not upgraded.
Need to get 24.5MB of archives. After unpacking 17.5MB will be used.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Get:1 http://all.repository.backtrack-linux.org/ revolution/main samba-common 2:3.4.7~dfsg-1ubuntu3.6 [397kB]
Get:2 http://32.repository.backtrack-linux.org/ revolution/main smbclient 2:3.4.7~dfsg-1ubuntu3.6 [11.5MB]
Get:3 http://32.repository.backtrack-linux.org/ revolution/main smbfs 2:3.4.7~dfsg-1ubuntu3.6 [1,857kB]
Get:4 http://32.repository.backtrack-linux.org/ revolution/main winbind 2:3.4.7~dfsg-1ubuntu3.6 [4,408kB]
Get:5 http://32.repository.backtrack-linux.org/ revolution/main libwbclient0 2:3.4.7~dfsg-1ubuntu3.6 [107kB]
Get:6 http://32.repository.backtrack-linux.org/ revolution/main samba 2:3.4.7~dfsg-1ubuntu3.6 [6,278kB]
Fetched 24.5MB in 54s (450kB/s)
Preconfiguring packages ...
dpkg: warning: downgrading smbclient from 2:3.4.7~dfsg-1ubuntu3.10 to 2:3.4.7~dfsg-1ubuntu3.6.
(Reading database ... 259389 files and directories currently installed.)
Preparing to replace smbclient 2:3.4.7~dfsg-1ubuntu3.10 (using .../smbclient_2%3a3.4.7~dfsg-1ubuntu3.6_i386.deb) ...
Unpacking replacement smbclient ...
dpkg: warning: downgrading smbfs from 2:3.4.7~dfsg-1ubuntu3.10 to 2:3.4.7~dfsg-1ubuntu3.6.
Preparing to replace smbfs 2:3.4.7~dfsg-1ubuntu3.10 (using .../smbfs_2%3a3.4.7~dfsg-1ubuntu3.6_i386.deb) ...
Unpacking replacement smbfs ...
dpkg: warning: downgrading winbind from 2:3.4.7~dfsg-1ubuntu3.10 to 2:3.4.7~dfsg-1ubuntu3.6.
Preparing to replace winbind 2:3.4.7~dfsg-1ubuntu3.10 (using .../winbind_2%3a3.4.7~dfsg-1ubuntu3.6_i386.deb) ...
* Stopping the Winbind daemon winbind [ OK ]
Unpacking replacement winbind ...
dpkg: warning: downgrading samba-common from 2:3.4.7~dfsg-1ubuntu3.10 to 2:3.4.7~dfsg-1ubuntu3.6.
Preparing to replace samba-common 2:3.4.7~dfsg-1ubuntu3.10 (using .../samba-common_2%3a3.4.7~dfsg-1ubuntu3.6_all.deb) ...
Unpacking replacement samba-common ...
dpkg: warning: downgrading libwbclient0 from 2:3.4.7~dfsg-1ubuntu3.10 to 2:3.4.7~dfsg-1ubuntu3.6.
Preparing to replace libwbclient0 2:3.4.7~dfsg-1ubuntu3.10 (using .../libwbclient0_2%3a3.4.7~dfsg-1ubuntu3.6_i386.deb) ...
Unpacking replacement libwbclient0 ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_2%3a3.4.7~dfsg-1ubuntu3.6_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.6) ...
Setting up libwbclient0 (2:3.4.7~dfsg-1ubuntu3.6) ...
Setting up smbclient (2:3.4.7~dfsg-1ubuntu3.6) ...
Setting up smbfs (2:3.4.7~dfsg-1ubuntu3.6) ...
Setting up winbind (2:3.4.7~dfsg-1ubuntu3.6) ...
* Starting the Winbind daemon winbind [ OK ]
Setting up samba (2:3.4.7~dfsg-1ubuntu3.6) ...
Generating /etc/default/samba...
Importing account for nobody...ok
Importing account for postgres...ok
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
smbd start/running, process 10132
nmbd start/running, process 10142
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done