Errors were encountered while processing: /var/cache/apt/archives/python-samba

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Errors were encountered while processing: /var/cache/apt/archives/python-samba

      Logging in to PuTTY there was a remark to run apt-get update. This gave the error below. Do I need to worry?

      Source Code

      1. Errors were encountered while processing:
      2. /var/cache/apt/archives/python-samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb
      3. E: Sub-process /usr/bin/dpkg returned an error code (1)
      I tried a few Google suggestions (below) but none removed the error:

      Source Code

      1. apt-get clean
      2. apt-get update && apt-get upgrade
      3. dpkg --configure -a
      4. apt-get -f install
      5. mount -t proc proc /proc
      The full text of the response to apt-get update && apt-get upgrade is:

      Source Code

      1. Traceback (most recent call last):
      2. File "/usr/bin/pyclean", line 32, in <module>
      3. from debpython.namespace import add_namespace_files
      4. File "/usr/share/python/debpython/namespace.py", line 28, in <module>
      5. from debpython.pydist import PUBLIC_DIR_RE
      6. File "/usr/share/python/debpython/pydist.py", line 29, in <module>
      7. from debpython.version import vrepr, getver, get_requested_versions
      8. File "/usr/share/python/debpython/version.py", line 24, in <module>
      9. from ConfigParser import SafeConfigParser
      10. ValueError: bad marshal data (unknown type code)
      11. dpkg: warning: subprocess old pre-removal script returned error exit status 1
      12. dpkg: trying script from the new package instead ...
      13. Traceback (most recent call last):
      14. File "/usr/bin/pyclean", line 32, in <module>
      15. from debpython.namespace import add_namespace_files
      16. File "/usr/share/python/debpython/namespace.py", line 28, in <module>
      17. from debpython.pydist import PUBLIC_DIR_RE
      18. File "/usr/share/python/debpython/pydist.py", line 29, in <module>
      19. from debpython.version import vrepr, getver, get_requested_versions
      20. File "/usr/share/python/debpython/version.py", line 24, in <module>
      21. from ConfigParser import SafeConfigParser
      22. ValueError: bad marshal data (unknown type code)
      23. dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb (--unpack):
      24. subprocess new pre-removal script returned error exit status 1
      25. Traceback (most recent call last):
      26. File "/usr/bin/pycompile", line 35, in <module>
      27. from debpython.version import SUPPORTED, debsorted, vrepr, \
      28. File "/usr/share/python/debpython/version.py", line 24, in <module>
      29. from ConfigParser import SafeConfigParser
      30. ValueError: bad marshal data (unknown type code)
      31. dpkg: error while cleaning up:
      32. subprocess installed post-installation script returned error exit status 1
      33. Errors were encountered while processing:
      34. /var/cache/apt/archives/python-samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb
      35. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
      Thanks.
      OMV 3.0.99
      Rock64, 1Gb
      Logitech Media Server 7.9.2
      (Linux 4.4.120-rockchip-ayufan-201)
    • Backslash Backslash wrote:

      OMV 3.0.59 ... Raspberry Pi 3 model B
      Running from SD card? Maybe it got corrupted already (all SD cards die, just a question of time). I would do a

      Source Code

      1. dpkg --verify
      first, maybe it's time for a new card and restoring last backup (to interpret the results use the forum search with 'dpkg verify')
    • Thanks for the reply. Interestingly the SD card is only about 3 months old so I'd be surprised if it were wearing out already.

      I ran dpkg --verify. I don't know how to interpret the results (given below) - I'm guessing that since it didn't post any errors that things are ok?


      # dpkg --verify
      ??5?????? c /etc/netatalk/afp.conf
      ??5?????? c /etc/cron-apt/action.d/3-download
      ??5?????? c /etc/cron-apt/config
      ??5?????? /usr/share/doc/python3.4-minimal/changelog.Debian.gz
      ??5?????? /usr/share/doc/python3.4-minimal/copyright
      ??5?????? /usr/share/doc/quotatool/README
      ??5?????? /sbin/mkfs.xfs
      ??5?????? /usr/share/unicode/extracted/DerivedCombiningClass.txt
      ??5?????? /usr/share/doc/python3/copyright
      ??5?????? c /etc/watchdog.conf
      ??5?????? /usr/lib/arm-linux-gnueabihf/libdbus-glib-1.so.2.2.2
      ??5?????? /usr/share/doc/socat/README.gz
      ??5?????? /usr/share/doc/socat/socat-openssltunnel.html
      ??5?????? c /etc/default/monit
      ??5?????? c /etc/monit/monitrc
      ??5?????? c /etc/ntp.conf
      ??5?????? c /etc/collectd/collectd.conf
      ??5?????? c /etc/updatedb.conf
      ??5?????? c /etc/hdparm.conf
      ??5?????? /usr/share/doc/python3-gi/changelog.gz
      ??5?????? c /etc/default/smartmontools
      ??5?????? c /etc/smartd.conf
      ??5?????? /var/lib/smartmontools/drivedb/drivedb.h
      ??5?????? /usr/share/doc/tar/changelog.gz
      ??5?????? c /etc/cron.daily/mdadm
      ??5?????? /sbin/mdmon
      ??5?????? /usr/share/doc/rsync/changelog.gz
      ??5?????? c /etc/sysctl.conf
      ??5?????? c /etc/default/avahi-daemon
      ??5?????? c /etc/avahi/avahi-daemon.conf
      ??5?????? c /etc/issue
      ??5?????? c /etc/default/acpid
      ??5?????? c /etc/default/collectd
      ??5?????? /usr/share/doc/python3-software-properties/changelog.gz
      ??5?????? c /etc/default/rrdcached
      ??5?????? c /etc/init.d/rrdcached
      ??5?????? /usr/bin/armbianmonitor
      ??5?????? /etc/init.d/armhwinfo
      ??5?????? /etc/cron.daily/log2ram
      ??5?????? /etc/armbian-release
      ??5?????? /etc/default/cpufrequtils
      ??5?????? /etc/update-motd.d/41-armbian-config
      ??5?????? /etc/update-motd.d/99-point-to-faq
      ??5?????? /etc/update-motd.d/10-header
      ??5?????? /usr/lib/python2.7/collections.py
      ??5?????? c /etc/default/openmediavault
      ??5?????? /usr/lib/python2.7/argparse.py
      ??5?????? /usr/share/doc/software-properties-common/changelog.gz
      #
      OMV 3.0.99
      Rock64, 1Gb
      Logitech Media Server 7.9.2
      (Linux 4.4.120-rockchip-ayufan-201)
    • Backslash Backslash wrote:

      I'm guessing that since it didn't post any errors that things are ok?
      No, massive data corruption for whatever reasons or an update that has been interrupted in between. There's stuff corrupted below /sbin/ und /usr/lib/ and I doubt you'll get this fixed.

      I would start from scratch and follow closely the remarks how to deal with SD cards (quoting the announcement thread)
      • For satisfying results burn it only with Etcher (no need to decompress, Etcher will verify burning process and save you from some common SD card troubles). It's strongly recommended to always test your SD card with either F3 or H2testw first to check for counterfeit/broken cards.
      In case you followed already these advises then it's still possible that your SD card died. SD card crappiness is the main reason why I often think about stopping to work with single board computers that lack onboard storage (and this part of the documentation of the other project I contribute too is the most important one saving us from all those useless support hassles that are only related to SD cards failing)