[Bug 1251671] [NEW] package nautilus-sendto-empathy 3.4.2.3-0ubuntu1 failed to install/upgrade: short read on buffer copy for backend dpkg-deb during `./usr/lib/nautilus-sendto/plugins/libnstempathy.s

2013-11-15 Thread John Edward Reed
Public bug reported:

This all started when I used Software Updater earlier this week. (I use once 
weekly to keep system up to date).
Looks as if update of GNOME multi protocol chat and call client (nautilus-send 
to plugin) nautilus-sendto-empathy initiated the problem. (I am not even aware 
that I use this software)
Got the message:
The package is broken:
The following packages have unmet dependencies:

nautilus-sendto-empathy: Depends: libgudev-1.0-0 (= 147) but 1:175-0ubuntu9.4 
is installed
 Depends: empathy-common (= 3.4.2.3-0ubuntu1) but 
3.4.2.3-0ubuntu1.1 is installed

I am not a linux software developer but tried to follow similar problems 
described on internet :
john@john-laptop:~$ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
john@john-laptop:~$ whoami
john
john@john-laptop:~$ groups
john adm dialout cdrom tape audio video plugdev ljohn@john-laptop:~$ sudo dpkg 
package.list
[sudo] password for john: 
dpkg: error: need an action option

Type dpkg --help for help about installing and un-installing packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
john@john-laptop:~$ sudo apt-get dselect-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.
 nautilus-sendto-empathy : Depends: empathy-common (= 3.4.2.3-0ubuntu1) but 
3.4.2.3-0ubuntu1.1 is installed
E: Unmet dependencies. Try using -f.
john@john-laptop:~$ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
john@john-laptop:~$ sudo rm /usr/share/doc/libjack-jackd2-0/buildinfo.gz
rm: cannot remove `/usr/share/doc/libjack-jackd2-0/buildinfo.gz': No such file 
or directory
john@john-laptop:~$ 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:
  linux-headers-3.2.0-36-generic-pae linux-headers-3.2.0-33-generic-pae
  gir1.2-ubuntuoneui-3.0 linux-headers-3.2.0-33 linux-headers-3.2.0-36
  libgtkhtml-4.0-0 kdesudo libevolution libubuntuoneui-3.0-1
  libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 linux-headers-3.2.0-33-generic
  libdb4.8 update-manager-kde libgnome-desktop-2-17
  linux-headers-3.2.0-36-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  nautilus-sendto-empathy
The following packages will be upgraded:
  nautilus-sendto-empathy
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/483 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 879631 files and directories currently installed.)
Preparing to replace nautilus-sendto-empathy 3.4.2.3-0ubuntu1 (using 
.../nautilus-sendto-empathy_3.4.2.3-0ubuntu1.1_i386.deb) ...
Unpacking replacement nautilus-sendto-empathy ...
dpkg-deb (subprocess): failed to read on buffer copy for failed to write to 
pipe in copy: Input/output error
dpkg-deb: error: subprocess paste returned error exit status 2
dpkg: error processing 
/var/cache/apt/archives/nautilus-sendto-empathy_3.4.2.3-0ubuntu1.1_i386.deb 
(--unpack):
 short read on buffer copy for backend dpkg-deb during 
`./usr/lib/nautilus-sendto/plugins/libnstempathy.so'
Errors were encountered while processing:
 /var/cache/apt/archives/nautilus-sendto-empathy_3.4.2.3-0ubuntu1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
john@john-laptop:~$padmin admin sambashare

But without success.
Fortunately, my other apps are working fine but I notice three other software 
updates are now waiting to be applied.
I tried applying the three new updates without the GNOME multi protocol chat 
update but still get same error. 
I am totally out of my comfort zone and appreciate any help that can be 
provided.
Thanks, John

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: nautilus-sendto-empathy 3.4.2.3-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-56.86-generic 3.2.51
Uname: Linux 3.2.0-56-generic i686
ApportVersion: 2.0.1-0ubuntu17.6
AptOrdering:
 nautilus-sendto-empathy: Install
 nautilus-sendto-empathy: Configure
Architecture: i386
Date: Fri Nov 15 15:19:07 2013
DuplicateSignature: package:nautilus-sendto-empathy:3.4.2.3-0ubuntu1:short read 
on buffer copy for backend dpkg-deb during 

Re: [Bug 1251671] Re: package nautilus-sendto-empathy 3.4.2.3-0ubuntu1 failed to install/upgrade: short read on buffer copy for backend dpkg-deb during `./usr/lib/nautilus-sendto/plugins/libnstempathy

2013-11-15 Thread John Edward Reed
Thank you. Your instructions have fixed the problem.

First I executed

/sudo apt-get clean/

Then I ran the software updater. It failed again:

The package system is broken

If you are using third party repositories then disable them, since
they are a common source of problems.
Now run the following command in a terminal: apt-get install -f

Details:
The following packages have unmet dependencies:

nautilus-sendto-empathy: Depends: libgudev-1.0-0 (= 147) but
1:175-0ubuntu9.4 is installed
  Depends: empathy-common (=
3.4.2.3-0ubuntu1) but 3.4.2.3-0ubuntu1.1 is installed


But this time when I ran /apt-get install -f/ the problem was fixed:

john@john-laptop:~$ /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:
   linux-headers-3.2.0-36-generic-pae linux-headers-3.2.0-33-generic-pae
   gir1.2-ubuntuoneui-3.0 linux-headers-3.2.0-33 linux-headers-3.2.0-36
   libgtkhtml-4.0-0 kdesudo libevolution libubuntuoneui-3.0-1
   libgtkhtml-4.0-common libgtkhtml-editor-4.0-0
linux-headers-3.2.0-33-generic
   libdb4.8 update-manager-kde libgnome-desktop-2-17
   linux-headers-3.2.0-36-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
   nautilus-sendto-empathy
The following packages will be upgraded:
   nautilus-sendto-empathy
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 483 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? /Y/
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main
nautilus-sendto-empathy i386 3.4.2.3-0ubuntu1.1 [483 kB]
Fetched 483 kB in 0s (641 kB/s)
(Reading database ... 879631 files and directories currently installed.)
Preparing to replace nautilus-sendto-empathy 3.4.2.3-0ubuntu1 (using
.../nautilus-sendto-empathy_3.4.2.3-0ubuntu1.1_i386.deb) ...
Unpacking replacement nautilus-sendto-empathy ...
Setting up nautilus-sendto-empathy (3.4.2.3-0ubuntu1.1) ...


Then when I ran software updater, all updates were applied successfully.

To finish off, I ran the auto remove mentioned in the above:

john@john-laptop:~$ sudo apt-get autoremove
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
   gir1.2-ubuntuoneui-3.0 kdesudo libdb4.8 libevolution
libgnome-desktop-2-17
   libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0
   libubuntuoneui-3.0-1 linux-headers-3.2.0-33
linux-headers-3.2.0-33-generic
   linux-headers-3.2.0-33-generic-pae linux-headers-3.2.0-36
   linux-headers-3.2.0-36-generic linux-headers-3.2.0-36-generic-pae
   update-manager-kde
0 upgraded, 0 newly installed, 16 to remove and 0 not upgraded.
After this operation, 168 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 879630 files and directories currently installed.)
Removing gir1.2-ubuntuoneui-3.0 ...
Removing update-manager-kde ...
Removing kdesudo ...
update-alternatives: using /usr/lib/kde4/libexec/kdesu-distrib/kdesu
to provide /usr/lib/kde4/libexec/kdesu (kdesu) in auto mode.
Removing libdb4.8 ...
Removing libevolution ...
Removing libgnome-desktop-2-17 ...
Removing libgtkhtml-editor-4.0-0 ...
Removing libgtkhtml-4.0-0 ...
Removing libgtkhtml-4.0-common ...
Removing libubuntuoneui-3.0-1 ...
Removing linux-headers-3.2.0-33-generic-pae ...
Removing linux-headers-3.2.0-33-generic ...
Removing linux-headers-3.2.0-33 ...
Removing linux-headers-3.2.0-36-generic-pae ...
Removing linux-headers-3.2.0-36-generic ...
Removing linux-headers-3.2.0-36 ...
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

I tried to run /fsck/ but was concerned about the messages and aborted 
the command:

john@john-laptop:~$ /fsck/
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda1 is mounted.


WARNING!!!  The filesystem is mounted.   If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.


Do you really want to continuen? no

check aborted.

At least my issue is resolved - thanks for all your help.

Regards
John



On 15/11/13 16:12, Ubuntu Foundations Team Bug Bot wrote:
 Thank you for taking the time to report this bug and helping to make
 Ubuntu better.  It seems that there was an error on your system when
 trying to install a particular package.  Please execute the following
 command, as it will clear your package cache, in a