5

I get this error while running sudo apt-get update

Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:1 http://mirrordirector.raspbian.org wheezy/main armhf Packages [7379 kB]
100% [1 Packages 7379 kB/7379 kB 100%]Failed to exec method /usr/lib/apt/methods/bzip2
E: Method bzip2 has died unexpectedly!
E: Sub-process bzip2 returned an error code (100)
E: Method /usr/lib/apt/methods/bzip2 did not start correctly

What can it be? This is what I have in my /etc/apt/sources.list

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
Ghanima
  • 15,958
  • 17
  • 65
  • 125
G3z
  • 161
  • 1
  • 6

1 Answers1

1

In the end it was a filesystem issue! I ended up repairing the FS in ubuntu with fsck -y /dev/sdb and then reinstalling apt manualy as plugwash from RaspberryPi Forum suggested

sudo wget http://archive.raspbian.org/raspbian/pool/main/a/apt/libapt-pkg4.12_0.9.7.6+rpi1_armhf.deb
sudo wget http://archive.raspbian.org/raspbian/pool/main/a/apt/apt_0.9.7.6+rpi1_armhf.deb
sudo dpkg -i libapt-pkg4.12_0.9.7.6+rpi1_armhf.deb apt_0.9.7.6+rpi1_armhf.deb
sudo apt-get update 
Ghanima
  • 15,958
  • 17
  • 65
  • 125
G3z
  • 161
  • 1
  • 6