2008-06-26

iPhone hang, Cydia crash, and apt-get bus error

I wanted to install a new application through Cydia today. When I tapped Cydia's Install button, though, Cydia and the entire iPhone froze. The usual power off button didn't work, and I couldn't ssh into it. Thankfully, other people knew how to power off and reboot a hung iPhone.

I tried to run Cydia again, and it crashed immediately. I tried to reinstall Cydia, but there was a seemingly bigger problem:
mirex:~ root# apt-get install cydia
Bus errorackage lists... 0%
mirex:~ root#
andreev2001 had a good suggestion, but it had the same result:
mirex:~ root# apt-get update
Get:1 http://apt.saurik.com tangelo Release.gpg [189B]
Get:2 http://www.zodttd.com stable Release.gpg [189B]
Hit http://www.zodttd.com stable Release
Hit http://apt.saurik.com tangelo Release
Get:3 http://modmyifone.com stable Release.gpg [189B]
Ign http://www.zodttd.com stable/main Packages/DiffIndex
Get:4 http://repo.smxy.org xena Release.gpg [189B]
Hit http://modmyifone.com stable Release
Ign http://apt.bigboss.us.com stable Release.gpg
Ign http://www.zodttd.com stable/main Packages
Get:5 http://apt.bigboss.us.com stable Release [147B]
Hit http://repo.smxy.org xena Release
Ign http://apt.saurik.com tangelo/main Packages/DiffIndex
Hit http://www.zodttd.com stable/main Packages
Ign http://apt.bigboss.us.com stable/main Packages/DiffIndex
Ign http://modmyifone.com stable/main Packages/DiffIndex
Ign http://apt.saurik.com tangelo/main Packages
Ign http://modmyifone.com stable/main Packages
Ign http://apt.bigboss.us.com stable/main Packages
Hit http://modmyifone.com stable/main Packages
Ign http://repo.smxy.org xena/main Packages/DiffIndex
Hit http://apt.saurik.com tangelo/main Packages
Get:6 http://apt.bigboss.us.com stable/main Packages [30.5kB]
Ign http://repo.smxy.org xena/main Packages
Hit http://repo.smxy.org xena/main Packages
Fetched 30.8kB in 3s (9145B/s)
Bus errorackage lists... 0%
mirex:~ root#
Fedor had the definitive solution:
mirex:~ root# rm /var/cache/apt/*.bin
mirex:~ root# apt-get update
Get:1 http://modmyifone.com stable Release.gpg [189B]
Ign http://apt.bigboss.us.com stable Release.gpg
Get:2 http://apt.saurik.com tangelo Release.gpg [189B]
Get:3 http://www.zodttd.com stable Release.gpg [189B]
Get:4 http://repo.smxy.org xena Release.gpg [189B]
Get:5 http://apt.bigboss.us.com stable Release [147B]
Hit http://apt.saurik.com tangelo Release
Hit http://repo.smxy.org xena Release
Hit http://www.zodttd.com stable Release
Ign http://apt.bigboss.us.com stable/main Packages/DiffIndex
Ign http://apt.saurik.com tangelo/main Packages/DiffIndex
Ign http://apt.saurik.com tangelo/main Packages
Ign http://repo.smxy.org xena/main Packages/DiffIndex
Ign http://apt.bigboss.us.com stable/main Packages
Ign http://www.zodttd.com stable/main Packages/DiffIndex
Hit http://apt.saurik.com tangelo/main Packages
Ign http://repo.smxy.org xena/main Packages
Get:6 http://apt.bigboss.us.com stable/main Packages [30.5kB]
Ign http://www.zodttd.com stable/main Packages
Hit http://repo.smxy.org xena/main Packages
Hit http://www.zodttd.com stable/main Packages
Hit http://modmyifone.com stable Release
Ign http://modmyifone.com stable/main Packages/DiffIndex
Ign http://modmyifone.com stable/main Packages
Hit http://modmyifone.com stable/main Packages
Fetched 30.8kB in 4s (7324B/s)
Reading package lists... Done
mirex:~ root#
Problem solved. Cydia ran properly again, and I installed the new application.

10 comments:

Anonymous said...

Thanks from Italy, too!
I've tried to uninstall the iFon client from my iPhone with Cydia, but phone freezes... hard reboot and get your messages via shell/console/ssh or cydia crashes.

This morning, a simple:
$ ssh -l root@iPhone
# rm /var/cache/apt/*bin
# apt-get update

then launch cydia with my middle finger !

:^)

works great!!!

bye.

--
cacao74
Slack? Smack!

Anonymous said...

Thanks from Italy, too!
I've tried to uninstall the iFon client from my iPhone with Cydia, but phone freezes... hard reboot and get your messages via shell/console/ssh or cydia crashes.

This morning, a simple:
$ ssh -l root@iPhone
# rm /var/cache/apt/*bin
# apt-get update

then launch cydia with my middle finger !

:^)

works great!!!

bye.

--
cacao74
Slack? Smack!

Josh said...

Cheers for the helpful post Richard. It also helped me fix a broken Cydia installation. Cydia was just crashing when it started up. Opening the Terminal app, su to root, then executing apt-get update did some jiggy stuff. I got some complaint about something related to Cydia, but even so when I tried starting up Cydia again up it came, right as rain :)) That's me happy.

Cheerio, Josh

Greguti said...

Doesn't work for me. "apt-get install cydia" says there's some package missing that needs to be re-installed (a "chromium" pack for Winterboard).

Whatever I try to do with the terminall, I always end with this boring message about an archive missing.

I can run "apt-get update", it works well, but then, Cydia still crashes again.

Is there any way to tell apt-get (or Cydia) to forget about the "chromium" package?

Richard said...

Hmmm, how about:

apt-get remove chromium

?

Greguti said...

Thanks Richard for the quick reply.

WHen I try "apt-get remove chromium", I also get that message:

E: The package com.custom.chromium-systemtheme needs to be reinstalled, but I can't find an archive for it.

Same thing with "apt-get remove com.custom.chromium-systemtheme" or even with "apt-get install cydia"

Seems like I'm stuck with a crashing Cydia... I'm sure there's a way to fix it, but I can't find it. I'd like to avoid re-jailbreaking my iPhone and install everything once again :)

Regards

Greg from Paris

Anonymous said...

i got an error "FATAL -> Failed to fork


any ideas?? thanks!!

Anonymous said...

Hi,

I have the same problem but I did not install OpenSSH so I don't know how I can run these commands.

Can you help me please?

Thx.

Richard said...

One way or another, you need to repair your apt database. One way is to install OpenSSH and type some apt-get commands on your iPhone's command line. Another way might be to restore an old firmware and re-jailbreak your phone.

Andrew said...

OMG thank you so much. Im on Ubuntu 10.10 and just went through a bunch of crap to get vid card working and when it works and I reboot and try to run apt-get in terminal I got the bus error on Reading Packages List. rm /var/cache/apt/*.bin fixed that problem right away.

LinkWithin

Related Posts with Thumbnails