You are not logged in.

#1 2016-04-16 11:10

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

samba updates unmet dependencies

I installed updates today (samba) and they failed as samba files in use already, now apt tells me I have unmet dependencies and using "sudo apt-get -f install" will not install them. I do not need samba as I don't use windows shares at all, but am now stuck with errors in apt and cannot remove samba, or install/remove anything else sad

EDIT: I just booted into another installation and tried to remove samba, but it appears to be integrated into the core system, Is there a way to remove it?

Last edited by Dai_trying (2016-04-16 11:15)

Offline

#2 2016-04-16 11:22

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,502
Website

Re: samba updates unmet dependencies

First put output of terminal command here to analyze:
$ apt-get -s remove samba

Try this http://www.q4os.org/dqa011.html#system.1 and put output here too.

Samba package is not integrated into the core system, it shouldn't remove any of essential packages.

Offline

#3 2016-04-16 11:29

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,502
Website

Re: samba updates unmet dependencies

You could try one more command to reinstall samba:
$ sudo apt-get --reinstall install samba

Offline

#4 2016-04-16 11:35

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

Re: samba updates unmet dependencies

dai@q4osamd64:~$ sudo apt-get -s remove samba
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is to be installed
 samba-common-bin : Depends: samba-common (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is to be installed
                    Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is to be installed
 samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is to be installed
 samba-libs : Depends: samba (= 2:4.2.10+dfsg-0+deb8u1) but it is not going to be installed
 samba-vfs-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I also tried the -f install which returned

... ... ...
(Reading database ... 178130 files and directories currently installed.)
Preparing to unpack .../samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u2) over (2:4.2.10+dfsg-0+deb8u1) ...
dpkg: error processing archive /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0', which is also in package samba 2:4.2.10+dfsg-0+deb8u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have already tried the qapt_fix.sh script which failed to clean up too. sad

tried to --reinstall samba and recieved the same output as first code box.

Offline

#5 2016-04-16 11:42

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

Re: samba updates unmet dependencies

sudo sh /usr/share/apps/q4os_system/bin/qapt_fix.sh returned this

dai@q4osamd64:~$ sudo sh /usr/share/apps/q4os_system/bin/qapt_fix.sh
[sudo] password for dai: 
Waiting for package system to be released ..
Seems ready, will be checked once more.
Now safe ready.
Done.
Checking package system ..
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba : Depends: samba-common-bin (= 2:4.2.10+dfsg-0+deb8u1) but 2:4.2.10+dfsg-0+deb8u2 is installed
 samba-common-bin : Depends: samba-common (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
                    Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-vfs-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
E: Unmet dependencies. Try using -f.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 python-samba         Python bindings for Samba
 samba-common-bin     Samba common files used by both the server and the client
 samba-dsdb-modules   Samba Directory Services Database
 samba-vfs-modules    Samba Virtual FileSystem plugins

Package system inconsistent, recovering ...
dpkg: dependency problems prevent configuration of samba-vfs-modules:
 samba-vfs-modules depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-vfs-modules (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-samba:
 python-samba depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package python-samba (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on python-samba; however:
  Package python-samba is not configured yet.
 samba-common-bin depends on samba-common (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-common on system is 2:4.2.10+dfsg-0+deb8u1.
 samba-common-bin depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-dsdb-modules:
 samba-dsdb-modules depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-dsdb-modules (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-vfs-modules
 python-samba
 samba-common-bin
 samba-dsdb-modules
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  liballegro4.4 libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsmbclient samba samba-common samba-libs
Suggested packages:
  bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind
The following packages will be upgraded:
  libsmbclient samba samba-common samba-libs
4 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
4 not fully installed or removed.
Need to get 0 B/6,506 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 178130 files and directories currently installed.)
Preparing to unpack .../samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u2) over (2:4.2.10+dfsg-0+deb8u1) ...
dpkg: error processing archive /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0', which is also in package samba 2:4.2.10+dfsg-0+deb8u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba : Depends: samba-common-bin (= 2:4.2.10+dfsg-0+deb8u1) but 2:4.2.10+dfsg-0+deb8u2 is installed
 samba-common-bin : Depends: samba-common (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
                    Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-vfs-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
E: Unmet dependencies. Try using -f.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 python-samba         Python bindings for Samba
 samba-common-bin     Samba common files used by both the server and the client
 samba-dsdb-modules   Samba Directory Services Database
 samba-vfs-modules    Samba Virtual FileSystem plugins

Package system still inconsistent, recovering ...
Ign http://ftp.debian.org jessie InRelease
Ign http://mozilla.debian.net jessie-backports InRelease                                                                 
Hit http://ftp.debian.org jessie-updates InRelease                                                                        
Hit http://q4os.org q4os-1-0-cn InRelease                                                                                 
Hit http://ftp.debian.org jessie-backports InRelease                                                                      
Hit http://mozilla.debian.net jessie-backports Release.gpg                                                                
Hit http://q4os.org jessie InRelease                                                                                                                                    
Hit http://ftp.debian.org jessie Release.gpg                                                                                                                            
Hit http://mozilla.debian.net jessie-backports Release                                                                                            
Hit http://ftp.debian.org jessie Release                                                                                    
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [1,996 B]                                                                
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages                                                                                   
Hit http://q4os.org q4os-1-0-cn/main amd64 Packages                                                                       
Get:2 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]                                      
Get:3 http://ftp.debian.org jessie-updates/main i386 Packages/DiffIndex [1,996 B]                                                                 
Hit http://ftp.debian.org jessie-updates/contrib i386 Packages                                                                                                         
Hit http://mozilla.debian.net jessie-backports/firefox-release amd64 Packages                                                                                                  
Hit http://q4os.org q4os-1-0-cn/main i386 Packages                                                                                               
Get:4 http://ftp.debian.org jessie-updates/non-free i386 Packages/DiffIndex [736 B]                                        
Hit http://mozilla.debian.net jessie-backports/firefox-release i386 Packages                                                                             
Hit http://ftp.debian.org jessie-updates/contrib Translation-en                                                                                                 
Get:5 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [1,228 B]                                                               
Get:6 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]                                                                               
Get:7 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]                                                                           
Hit http://q4os.org jessie/main amd64 Packages                                                                                                            
Get:8 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [6,544 B]                                                          
Get:9 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [6,622 B]                                                                        
Get:10 http://ftp.debian.org jessie-backports/main i386 Packages/DiffIndex [27.8 kB]                                                                                           
Hit http://q4os.org jessie/main i386 Packages                                                                                                              
Get:11 http://ftp.debian.org jessie-backports/contrib i386 Packages/DiffIndex [7,036 B]                                                                       
Get:12 http://ftp.debian.org jessie-backports/non-free i386 Packages/DiffIndex [5,992 B]                                   
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en_GB                                                                             
Ign http://mozilla.debian.net jessie-backports/firefox-release Translation-en                                              
Get:13 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [3,532 B]                                   
Get:14 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]                                                        
Get:15 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [6,346 B]                                                  
Hit http://ftp.debian.org jessie/main amd64 Packages                                                                                         
Hit http://ftp.debian.org jessie/contrib amd64 Packages                                                                                   
Hit http://ftp.debian.org jessie/non-free amd64 Packages                                                                                  
Hit http://ftp.debian.org jessie/main i386 Packages                                                                                       
Hit http://ftp.debian.org jessie/contrib i386 Packages                                                                                    
Hit http://ftp.debian.org jessie/non-free i386 Packages                                                                                       
Hit http://ftp.debian.org jessie/contrib Translation-en                                                                                       
Hit http://ftp.debian.org jessie/main Translation-en                                                                                          
Hit http://ftp.debian.org jessie/non-free Translation-en                                                                                      
Ign http://q4os.org q4os-1-0-cn/main Translation-en_GB                                                                                        
Ign http://q4os.org q4os-1-0-cn/main Translation-en                                                                     
Ign http://q4os.org jessie/main Translation-en_GB                                                                       
Ign http://q4os.org jessie/main Translation-en                                                                          
Hit http://www.deb-multimedia.org jessie InRelease                                                                  
Hit http://security.debian.org jessie/updates InRelease                        
Hit http://www.deb-multimedia.org jessie/main amd64 Packages
Hit http://www.deb-multimedia.org jessie/non-free amd64 Packages
Hit http://www.deb-multimedia.org jessie/main i386 Packages    
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://www.deb-multimedia.org jessie/non-free i386 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/main i386 Packages
Hit http://security.debian.org jessie/updates/contrib i386 Packages
Hit http://security.debian.org jessie/updates/non-free i386 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en   
Ign http://www.deb-multimedia.org jessie/main Translation-en_GB
Ign http://www.deb-multimedia.org jessie/main Translation-en
Ign http://www.deb-multimedia.org jessie/non-free Translation-en_GB
Ign http://www.deb-multimedia.org jessie/non-free Translation-en
Fetched 127 kB in 5s (22.7 kB/s)
Reading package lists... Done
dpkg: dependency problems prevent configuration of samba-vfs-modules:
 samba-vfs-modules depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-vfs-modules (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-samba:
 python-samba depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package python-samba (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on python-samba; however:
  Package python-samba is not configured yet.
 samba-common-bin depends on samba-common (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-common on system is 2:4.2.10+dfsg-0+deb8u1.
 samba-common-bin depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-dsdb-modules:
 samba-dsdb-modules depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Version of samba-libs:amd64 on system is 2:4.2.10+dfsg-0+deb8u1.

dpkg: error processing package samba-dsdb-modules (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-vfs-modules
 python-samba
 samba-common-bin
 samba-dsdb-modules
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  liballegro4.4 libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsmbclient samba samba-common samba-libs
Suggested packages:
  bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind
The following packages will be upgraded:
  libsmbclient samba samba-common samba-libs
4 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
4 not fully installed or removed.
Need to get 0 B/6,506 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 178130 files and directories currently installed.)
Preparing to unpack .../samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u2) over (2:4.2.10+dfsg-0+deb8u1) ...
dpkg: error processing archive /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0', which is also in package samba 2:4.2.10+dfsg-0+deb8u1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba : Depends: samba-common-bin (= 2:4.2.10+dfsg-0+deb8u1) but 2:4.2.10+dfsg-0+deb8u2 is installed
 samba-common-bin : Depends: samba-common (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
                    Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-vfs-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
E: Unmet dependencies. Try using -f.
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 python-samba         Python bindings for Samba
 samba-common-bin     Samba common files used by both the server and the client
 samba-dsdb-modules   Samba Directory Services Database
 samba-vfs-modules    Samba Virtual FileSystem plugins

Package system is in non consistent state, it has to be recovered manually.

sudo apt-get update worked correctly as demonstrated above
sudo apt-get dist-upgrade produced this

dai@q4osamd64:~$ sudo apt-get dist-upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba : Depends: samba-common-bin (= 2:4.2.10+dfsg-0+deb8u1) but 2:4.2.10+dfsg-0+deb8u2 is installed
 samba-common-bin : Depends: samba-common (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
                    Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
 samba-vfs-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.2.10+dfsg-0+deb8u1 is installed
E: Unmet dependencies. Try using -f.

Offline

#6 2016-04-16 11:44

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,502
Website

Re: samba updates unmet dependencies

Run the following;
$ sudo apt-get update
$ sudo dpkg -r --force-all samba
$ sudo dpkg -r --force-all samba-libs
$ sudo dpkg -r --force-all samba-common-bin
$ sudo dpkg -r --force-all python-samba
$ sudo apt-get install -f
$ sudo sh /usr/share/apps/q4os_system/bin/qapt_fix.sh

Offline

#7 2016-04-16 12:02

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

Re: samba updates unmet dependencies

sudo apt-get update worked (code not pasted as nothing unusual)
sudo dpkg -r --force-all samba produced

dai@q4osamd64:~$ sudo dpkg -r --force-all samba
dpkg: samba: dependency problems, but removing anyway as you requested:
 samba-libs:amd64 depends on samba (= 2:4.2.10+dfsg-0+deb8u1).

(Reading database ... 178129 files and directories currently installed.)
Removing samba (2:4.2.10+dfsg-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...

sudo dpkg -r --force-all samba-libs produced

dai@q4osamd64:~$ sudo dpkg -r --force-all samba-libs
dpkg: samba-libs:amd64: dependency problems, but removing anyway as you requested:
 samba-common-bin depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2); however:
  Package samba-libs:amd64 is to be removed.
 libsmbclient:amd64 depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u1).
 python-samba depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2).
 samba-vfs-modules depends on samba-libs (= 2:4.2.10+dfsg-0+deb8u2).

(Reading database ... 177944 files and directories currently installed.)
Removing samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...

sudo dpkg -r --force-all samba-common-bin Produced

dai@q4osamd64:~$ sudo dpkg -r --force-all samba-common-bin
(Reading database ... 177790 files and directories currently installed.)
Removing samba-common-bin (2:4.2.10+dfsg-0+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...

sudo dpkg -r --force-all python-samba Produced

dai@q4osamd64:~$ sudo dpkg -r --force-all python-samba
(Reading database ... 177761 files and directories currently installed.)
Removing python-samba (2:4.2.10+dfsg-0+deb8u2) ...
dpkg: warning: while removing python-samba, directory '/usr/lib/python2.7/dist-packages/samba/netcmd' not empty so not removed
dpkg: warning: while removing python-samba, directory '/usr/lib/python2.7/dist-packages/samba/provision' not empty so not removed
dpkg: warning: while removing python-samba, directory '/usr/lib/python2.7/dist-packages/samba/samba3' not empty so not removed
dpkg: warning: while removing python-samba, directory '/usr/lib/python2.7/dist-packages/samba/dcerpc' not empty so not removed

sudo apt-get install -f Produced

dai@q4osamd64:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  attr liballegro4.4 libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libhdb9-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkdc2-heimdal libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal python-dnspython python-ldb python-ntdb python-tdb tdb-tools
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsmbclient samba-libs
The following NEW packages will be installed:
  samba-libs
The following packages will be upgraded:
  libsmbclient
1 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,243 kB of archives.
After this operation, 22.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package samba-libs:amd64.
(Reading database ... 177588 files and directories currently installed.)
Preparing to unpack .../samba-libs_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up samba-libs:amd64 (2:4.2.10+dfsg-0+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
(Reading database ... 177748 files and directories currently installed.)
Preparing to unpack .../libsmbclient_2%3a4.2.10+dfsg-0+deb8u2_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.2.10+dfsg-0+deb8u2) over (2:4.2.10+dfsg-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libsmbclient:amd64 (2:4.2.10+dfsg-0+deb8u2) ...
Setting up samba-dsdb-modules (2:4.2.10+dfsg-0+deb8u2) ...
Setting up samba-vfs-modules (2:4.2.10+dfsg-0+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...

sudo sh /usr/share/apps/q4os_system/bin/qapt_fix.sh Produced

dai@q4osamd64:~$ sudo sh /usr/share/apps/q4os_system/bin/qapt_fix.sh
[sudo] password for dai: 
Waiting for package system to be released ..
Seems ready, will be checked once more.
Now safe ready.
Done.
Checking package system ..
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package system ok.

I also ran a sudo apt-get dist-upgrade and pulled in the packages awaiting upgrade, all went well there too smile
All seems well now, thank you for that smile

Offline

#8 2016-04-16 12:08

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,502
Website

Re: samba updates unmet dependencies

There were recently a significant samba updates in Debian Jessie, so it have probably impacted your system. You had to forcibly remove samba packages to let the newer ones to be installed over. We didn't notice similar issues on our systems so far.

Offline

#9 2016-04-16 12:21

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

Re: samba updates unmet dependencies

I will update other systems today to see if they suffer similar issues, and will post back here if I find anything. Thank you.

Offline

#10 2016-04-16 13:57

izntmac
Member
Registered: 2016-03-17
Posts: 4

Re: samba updates unmet dependencies

I get the following message when I updated this morning. Error while installing package: trying to overwrite '/usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0', which is also in package samba 2 How do I fix it? It is probably related to the error above. Thanks! Love Q4OS!

Offline

#11 2016-04-16 14:23

Dai_trying
Member
From: UK
Registered: 2015-12-14
Posts: 2,993

Re: samba updates unmet dependencies

Use the steps posted in #6 and you should be good to go. smile

Offline

#12 2016-04-16 19:04

izntmac
Member
Registered: 2016-03-17
Posts: 4

Re: samba updates unmet dependencies

Thank you. It worked and all is now fine!

Offline

Board footer

Powered by FluxBB