Solved: Broken pipe fix?
|
24th Apr, 2016, 06:43 PM
Post: #1
|
|||
|
|||
Broken pipe fix?
Upgrading pi1 gives a problem as below.
Terminal xbian@kitchen ~ $ sudo apt-get -f install 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: libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libsmbclient python-samba samba samba-common-bin samba-dsdb-modules samba-libs Suggested packages: bind9 bind9utils ctdb ldb-tools smbldap-tools winbind heimdal-clients Recommended packages: attr samba-vfs-modules The following packages will be upgraded: libsmbclient python-samba samba samba-common-bin samba-dsdb-modules samba-libs 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/7,000 kB of archives. After this operation, 2,989 kB of additional disk space will be used. Do you want to continue? [Y/n] y Create a snapshot of '/run/btrfs-snap/root/@' in '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2016-04-24-0929' Delete subvolume (no-commit): '/run/btrfs-snap/root/@last_good_known' Create a snapshot of '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2016-04-24-0929' in '/run/btrfs-snap/root/@last_good_known' Delete subvolume (no-commit): '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2016-04-23-2014' @btrfs-auto-snap_apt-run-2016-04-24-0929, 1 created snapshots, 1 destroyed snapshots, 0 warnings. (Reading database ... 30322 files and directories currently installed.) Preparing to unpack .../samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb ... Unpacking samba-libs:armhf (2:4.2.10+dfsg-0+deb8u2) over (2:4.1.17+dfsg-2+deb8u2) ... dpkg: error processing archive /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb (--unpack): trying to overwrite '/usr/lib/arm-linux-gnueabihf/samba/process_model/onefork.so', which is also in package samba 2:4.1.17+dfsg-2+deb8u2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1) I have tried apt-get autoremove, that gives similar error. Apt-get -f install gives the above and even apt-get install samba-common won't install....I tried installing each package one at a time and still have the issue. This happens on both pi1 installs, so not isolated to one pi (one pi has 6 upgrade packages and the other 10 upgrade packages). Can anyone tell me how to fix this please? |
|||
24th Apr, 2016, 08:24 PM
Post: #2
|
|||
|
|||
RE: Broken pipe fix?
Had the same issue. The only way is to rollback to an older btrfs snapshot. Look at the wiki at http://wiki.xbian.org/doku.php/snapshots.
|
|||
24th Apr, 2016, 09:46 PM
(This post was last modified: 25th Apr, 2016 01:34 AM by Nachteule.)
Post: #3
|
|||
|
|||
RE: Broken pipe fix?
(24th Apr, 2016 06:43 PM)Skywatch Wrote: Can anyone tell me how to fix this please? This is not XBian issue. Raspbian built Samba packages with broken dependencies. Had same issue, can be solved by hard way: 1) remove all samba* packages Terminal sudo dpkg -r --force-all python-samba samba samba-common-bin samba-common samba-dsdb-modules samba-libs:armhf 2) Reinstall Samba and lib Terminal sudo apt-get install samba python-samba samba-common-bin samba-common samba-dsdb-modules samba-libs libsmbclient libldb1 python-ldb |
|||
24th Apr, 2016, 09:52 PM
Post: #4
|
|||
|
|||
RE: Broken pipe fix?
Thank you! - I'll give that a go!
It needed an apt-get -f install in between those commands to get it done, but seems OK now! - Cheers! |
|||
24th Apr, 2016, 10:37 PM
Post: #5
|
|||
|
|||
RE: Broken pipe fix?
Seems that Raspbian guys were too fast releasing Samba packages. They switched to 4.2 whereas standard Debian still using 4.1
|
|||
25th Apr, 2016, 12:58 AM
Post: #6
|
|||
|
|||
RE: Broken pipe fix?
HAh! - Luckily we have you to help us out then!
It also removed a huge locked cifs file on the server that I had been trying to get rid of for an hour! Ciao. |
|||
25th Apr, 2016, 01:36 AM
Post: #7
|
|||
|
|||
RE: Broken pipe fix?
Marked as solved
|
|||
29th Apr, 2016, 04:21 AM
Post: #8
|
|||
|
|||
RE: Broken pipe fix?
Thank you mates Was starting to get frustrated with this "broken Pipe" problem. :) :) |
|||
« Next Oldest | Next Newest »
|