lingon
Posts: 157
Joined: Fri Aug 26, 2011 7:31 am

Problem updating 512 MB Raspberry Pi

Thu May 02, 2013 7:05 pm

I have a 512 MB Raspberry Pi that has worked fine for months. For some reason I'm unable to update it. The SD-card seems to be OK because I can write to it.

Code: Select all

uname -a
Linux raspberrypi 3.6.11+ #403 PREEMPT Tue Apr 2 22:48:13 BST 2013 armv6l GNU/Linux

apt-get clean

apt-get update
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Error!
E: Problem parsing dependency Depends
E: Error occurred while processing libedit2 (NewVersion2)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.

rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
 *** Performing self-update
--2013-05-02 22:02:30--  https://github.com/Hexxeh/rpi-update/raw/master/rpi-update
Resolving github.com (github.com)... 204.232.175.90
Connecting to github.com (github.com)|204.232.175.90|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.github.com/Hexxeh/rpi-update/master/rpi-update [following]
--2013-05-02 22:02:36--  https://raw.github.com/Hexxeh/rpi-update/master/rpi-update
Resolving raw.github.com (raw.github.com)... 199.27.76.133
Connecting to raw.github.com (raw.github.com)|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6308 (6.2K) [text/plain]
Saving to: `/usr/bin/rpi-update.tmp'

100%[======================================>] 6,308       --.-K/s   in 0.002s  

2013-05-02 22:02:41 (3.64 MB/s) - `/usr/bin/rpi-update.tmp' saved [6308/6308]

 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
 *** ARM/GPU split is now defined in /boot/config.txt using the gpu_mem option!
 *** We're running for the first time
 *** Setting up firmware (this may take a few minutes)
/usr/bin/rpi-update: line 118:  2781 Segmentation fault      git clone "${FW_REPO}" "${FW_REPOLOCAL}" --depth=1 --branch ${BRANCH}
 !!! Failed to download new firmware files
Has anyone seen this problem?
How could I get the updates working again?

Andresen
Posts: 38
Joined: Tue Aug 14, 2012 10:25 pm

Re: Problem upgrading 512 MB Raspberry Pi

Fri May 03, 2013 4:48 pm

What do you get, if you run the following commands:

Code: Select all

df -h
df -i
mount
?

Regards,
Andresen

lingon
Posts: 157
Joined: Fri Aug 26, 2011 7:31 am

Re: Problem upgrading 512 MB Raspberry Pi

Sat May 04, 2013 10:15 am

This is what I get:
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 2.5G 12G 18% /
/dev/root 15G 2.5G 12G 18% /
devtmpfs 212M 0 212M 0% /dev
tmpfs 44M 248K 44M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 88M 0 88M 0% /run/shm
/dev/mmcblk0p1 56M 19M 38M 34% /boot

df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
rootfs 974848 72890 901958 8% /
/dev/root 974848 72890 901958 8% /
devtmpfs 54033 338 53695 1% /dev
tmpfs 56097 252 55845 1% /run
tmpfs 56097 1 56096 1% /run/lock
tmpfs 56097 2 56095 1% /run/shm
/dev/mmcblk0p1 0 0 0 - /boot
mount
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=216132k,nr_inodes=54033,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=44880k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=89740k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)

The partitions have free space and free inodes and they are mounted read/write so the filesystems look fine to me.

Andresen
Posts: 38
Joined: Tue Aug 14, 2012 10:25 pm

Re: Problem upgrading 512 MB Raspberry Pi

Sat May 04, 2013 2:35 pm

lingon wrote: The partitions have free space and free inodes and they are mounted read/write so the filesystems look fine to me.
I agree - that space, inodes and filesystem look fine.

I guess you have tried this to fix the issue http://www.raspberrypi.org/phpBB3/viewtopic.php?t=11824, so I does not have any other good suggestions :(

Regards,
Andresen

Return to “Troubleshooting”