Wednesday, May 23, 2012

E: Method rred has died unexpectedly!

I was stuck with the following message:

$ sudo pbuilder --update
...

Get:10 http://ftp.fr.debian.org sid/main 2012-05-19-0215.05.pdiff [2934 B]
E: Method rred has died unexpectedly!
E: Sub-process rred received a segmentation fault.

Easy work around:
$ sudo pbuilder login --save-after-login
# echo "Acquire::Pdiffs { "false"; };" > /etc/apt/apt.conf.d/nopdiff
that's all !

Wednesday, May 2, 2012

Pushing large git rep

I was getting an endless git issue:


$ git push origin master
Counting objects: 189, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (179/179), done.
Write failed: Broken pipe/189), 2.93 MiB | 19 KiB/s  
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: failed to push some refs to 'ssh://malat@jpeg.git.sourceforge.net/gitroot/jpeg/J2KP4files'

So I had to split this large commit into smaller ones and then do:

$ git rev-list --reverse master | xargs -I{} git push origin {}:refs/heads/master
Counting objects: 18, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (18/18), 12.67 MiB | 6 KiB/s, done.
Total 18 (delta 1), reused 0 (delta 0)
To ssh://malat@jpeg.git.sourceforge.net/gitroot/jpeg/J2KP4files
 * [new branch]      f9c67eb084015bcfac5c05d807b22cefbecb2008 -> master
[...]
Counting objects: 5, done.Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.64 KiB, done.
Total 4 (delta 1), reused 0 (delta 0)
To ssh://malat@jpeg.git.sourceforge.net/gitroot/jpeg/J2KP4files
   61b0752..b87df01  b87df014adaacd7a2286ee9b4471b4c10a77f091 -> master

woohoo !