Posts: 119
wildstar84
Joined: 31 May 2014
#1
Attempting to upgrade samba broke samba:

Code: Select all

Unpacking samba-common-bin (2:4.6.7+dfsg-2.0nosystemd1) over (2:4.6.7+dfsg-1.0nosystemd1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/samba-common-bin_2%3a4.6.7+dfsg-2.0nosystemd1_i386.deb (--unpack):
 cannot copy extracted data for './usr/share/man/man5/smbpasswd.5.gz' to '/usr/share/man/man5/smbpasswd.5.gz.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 /var/cache/apt/archives/samba-common-bin_2%3a4.6.7+dfsg-2.0nosystemd1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Regards,

Jim
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
Which repos? sid? testing? stable? More details needed.
Posts: 119
wildstar84
Joined: 31 May 2014
#3
I'm using testing repo, rolling release.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
I have managed to upgrade both 64 bit and 32 bit testing without issues. Perhaps at the time you upgraded, there was a glitch in the repos. Try again, maybe by purging all of samba if apt-get -f install does not help.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#5

Code: Select all

unexpected end of file or stream
Nuff said.
As instructed, I downloaded the file 4th time from atom.io, then the installation process finished and I can open atom.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://en.wikipedia.org/wiki/End-of-file"
linktext was:"https://en.wikipedia.org/wiki/End-of-file"
====================================
Posts: 119
wildstar84
Joined: 31 May 2014
#6
rokytnji wrote:

Code: Select all

unexpected end of file or stream
Nuff said.
As instructed, I downloaded the file 4th time from atom.io, then the installation process finished and I can open atom.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://en.wikipedia.org/wiki/End-of-file"
linktext was:"https://en.wikipedia.org/wiki/End-of-file"
====================================
Nope, I tried it TWICE orignally before posting.  I just tried it AGAIN this morning, SAME FAILURE.  I've upgraded MANY other packages in the meantime with NO ISSUES!  There HAS to be something wrong with THIS package!  I'm running 32bit Antix.

Here are my repositories:

deb
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://repo.antixlinux.com/testing/"
linktext was:"http://repo.antixlinux.com/testing/"
====================================
testing main nosystemd
deb
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.gr.debian.org/debian/"
linktext was:"http://ftp.gr.debian.org/debian/"
====================================
testing main contrib non-free
deb
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://security.debian.org/"
linktext was:"http://security.debian.org/"
====================================
testing/updates non-free contrib main
deb
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://liquorix.net/debian/"
linktext was:"http://liquorix.net/debian/"
====================================
sid main

Also tried downloading pkg. from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://iso.mxrepo.com/antix/testing/pool/nosystemd/s/samba/"
linktext was:"http://iso.mxrepo.com/antix/testing/poo ... d/s/samba/"
====================================


and ran:  root$>dpkg -i samba-common-bin_4.6.7+dfsg-2.0nosystemd1_i386.deb
(Reading database ... 333200 files and directories currently installed.)
Preparing to unpack samba-common-bin_4.6.7+dfsg-2.0nosystemd1_i386.deb ...
Unpacking samba-common-bin (2:4.6.7+dfsg-2.0nosystemd1) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive samba-common-bin_4.6.7+dfsg-2.0nosystemd1_i386.deb (--install):
 cannot copy extracted data for './usr/share/man/man5/smbpasswd.5.gz' to '/usr/share/man/man5/smbpasswd.5.gz.dpkg-new': unexpected end of file or stream
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 samba-common-bin_4.6.7+dfsg-2.0nosystemd1_i386.deb

I then ran dpkg --extract, and changed directories to:  /tmp/pkgs/extracted/usr/share/man/man5/ and manually ran:

gunzip smbpasswd.5.gz

result:

gzip: smbpasswd.5.gz: unexpected end of file

lPlease fix CORRUPTED file smbpasswd.5.gz 

Regards,

Jim
Last edited by wildstar84 on 30 Sep 2017, 14:37, edited 1 time in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#7
Ok.

Did you
maybe by purging all of samba if apt-get -f install does not help.
I used to have to do that myself back when I ran AntiX 11 with Testing. I'd use the locate command to find what I needed to purge.
Posts: 119
wildstar84
Joined: 31 May 2014
#8
I'm telling you, it's a CORRUPT smbpasswd.5.gz

Looking at the files in man5 shows:
1722 Sep 20 16:22 lmhosts.5.gz
104748 Sep 20 16:22 smb.conf.5.gz
 512 Sep 30 09:28 smbpasswd.5.gz  <---- CORRUPTED?!

whereas doing the same thing on the archived previous version of this package (samba-common-bin_2%3a4.6.7+dfsg-1.0nosystemd1_i386.deb) shows:

1723 Aug 16 21:43 lmhosts.5.gz
104753 Aug 16 21:43 smb.conf.5.gz
2854 Aug 16 21:43 smbpasswd.5.gz

Note that smbpasswd.5.gz DECREASED from 2854 to 512 bytes, the others only changed slightly between the two version!

Jim
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
OK - I see the problem now. Will fix as soon as I have time.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#10
Can you try installing the appropriate deb from the link below (using dpkg).
You might need an apt-get -f install after.

If this works the all I need to do is faulty deb in our repos with the place the correct ones.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://download.tuxfamily.org/antix/Testing/"
linktext was:"http://download.tuxfamily.org/antix/Testing/"
====================================
Posts: 119
wildstar84
Joined: 31 May 2014
#11
anticapitalista wrote: Can you try installing the appropriate deb from the link below (using dpkg).
You might need an apt-get -f install after.

If this works the all I need to do is faulty deb in our repos with the place the correct ones.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://download.tuxfamily.org/antix/Testing/"
linktext was:"http://download.tuxfamily.org/antix/Testing/"
====================================
Thank you Anti!
It was just easier to download the deb from your link above and run dpkg -i and it worked perfectly!

Thanks again,

Jim