Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

After upgrade problems with samba in Jessie Bpi

Featured Replies

First of all sorry for my bad english and my limited knoledge of linux. 

 

After run apt-get update // apt-get upgrade my Bpi didin´t share folders over 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+deb8u3) but 2:4.2.14+dfsg-0+deb8u2 is installed
E: Unmet dependencies. Try using -f.
banana@bananapi:~$
 

 

When I put the command apt-get -f install the console returns this 

 

 

banana@bananapi:~$ sudo apt-get -f install                                    

[sudo] password for banana:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  python-samba
The following packages will be upgraded:
  python-samba
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/861 kB of archives.
After this operation, 9.216 B of additional disk space will be used.
Do you want to continue? [Y/n]
 

 

 

Type the Y and get this 

 

 

Do you want to continue? [Y/n] y

(Reading database ... 59900 files and directories currently installed.)
Preparing to unpack .../python-samba_2%3a4.2.14+dfsg-0+deb8u2_armhf.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/struct.py", line 1, in <module>
    from _struct import *
ValueError: module functions cannot set METH_CLASS or METH_STATIC
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/struct.py", line 1, in <module>
    from _struct import *
ValueError: module functions cannot set METH_CLASS or METH_STATIC
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.2.14+dfsg-0+deb8u2_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 27, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/struct.py", line 1, in <module>
    from _struct import *
ValueError: module functions cannot set METH_CLASS or METH_STATIC
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-samba_2%3a4.2.14+dfsg-0+deb8u2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
banana@bananapi:~$
 

 

So I think to remove entire samba and this is what i get 
 

 

banana@bananapi:~$ sudo apt-get purge 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+deb8u3) but 2:4.2.14+dfsg-0+deb8u2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
banana@bananapi:~$
 

 

 

I´m stuck and I don´t know how to solve this, can you give me any help or advice.

 

Thanks  

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.