Apple TV root XBMC issue solved

I was having all kinds of difficulties with XBMC on my Apple TV2 and was trying to remove it and start all over.

It didn’t work out even when resorting to SSH through terminal.

Then I was able to find a solution over in the FireCore forums.

 

Basically required that I manually remove all the files.

Re: How to deinstall pakages?
liudgervr wrote:

please need some help. Got the same problem.

Apple-TV:~ root# apt-get remove org.xbmc.xbmc-atv2

E: Could not get lock /var/lib/dpkg/lock – open (35: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Apple-TV:~ root# cd var

-sh: cd: var: No such file or directory

Apple-TV:~ root# cd /var

Apple-TV:/var root# dpkg –get-selections > myapps.txt

Apple-TV:/var root# tail myapps.txt

shell-cmds install
sqlite3-lib install
syslogd install
system-cmds install
tar install

uikittools install
unzip install
wget install
zip install
zodttd install

Apple-TV:/var root# dpkg –configure -a
dpkg: status database area is locked by another process

 

What to do?

 

and for the same reason I am unable to install the maintenance update

 

I ran into this same problem tonight, and was able to solve it by removing the package directory manually. It turns out that `rm` was hanging on some files while removing the package directory, so when you try to uninstall again the lock is still in place. If you do a `ps -ef` you should see the offending processes at the bottom like this:

 

0 199 164 0 0:00.28 ttys001 0:00.94 apt-get remove org.xbmc.xbmc-atv2

0 200 199 0 0:00.06 ttys002 0:00.10 /usr/bin/dpkg –status-fd 18 –force-depends –force-remove-reinstreq –force-remove-ess

0 201 200 0 0:00.01 ttys002 0:00.02 /bin/sh /var/lib/dpkg/info/org.xbmc.xbmc-atv2.prerm remove

0 202 201 0 1:49.30 ttys002 2:02.82 rm -rf /Applications/XBMC.frappliance

 

 

To fix this, run `rm -rfv /Applications/XBMC.frappliance`. It will hang periodically on some files, so just pres [Ctrl + C] to terminate the command when you see it stop. Then just rerun the same command and it seems to take off again where the last one failed.

It took me about 10+ times of rerunning that command to remove all the files/directories. Once it’s all gone, you will need to kill the hung `rm` process so that apt-get can fail and remove it’s lock. Just do another `ps -ef` and locate the PID (the second number) for the rm -rf process (mine was 202 above). So I would run `kill 202` to stop the process. Finally just run `apt-get remove org.xbmc.xbmc-atv2` to make sure everything is removed OK, and restart your Apple TV.

Honeycomb for Google TV Leaked

Here is a walkthrough of the new OS that was leaked by GTVHacker

If you want to see the install, channelandroid has a video of that as well (click the link in the video)

I am going to wait for the official build to come out (later this month?) but I was excited to see what the interface is likely to look like.

If you are looking to actually do this yourself, here are the instructions (from GTV Hacker)

The full process on to install Honeycomb on the Revue has finally been leaked. The process doesn’t seem too complicated, especially for those who are familiar with rooting your Android handsets so here’s the complete how-to.

NOTE: You do this at your own risk. I, GTV Hacker and anybody else is not responsible for what may happen to your device. It is possible that doing this may prevent you from updating your device with any future official updates.

  • Copy the update.zip to a Fat32 formatted USB drive, place it in its root (ie /mnt/usb/update.zip or E:\update.zip)
  • Plug USB drive into Revue. Fully unplug revue. Plug it back in, count to One (a long one, say one mississippi), then hold down the connect button (keep it held). The Revue logo will come up, and the box will reboot, your tv will lose signal, and come back to the Revue logo. At this point, let go of the button.
  • The GTV logo will then show up, with an arrow and a horizontal “barbershop scroll”. At this point, on your Revue’s keyboard, press the FN key (in yellow) and the left arrow (to the left of the OK button). It will then come up to a recovery menu.
  • Hit “Apply update from sdcard:/update.zip”
  • The box will verify the update, and reboot. This is normal. It is installing an updated bootloader and recovery image (both, heavily encrypted).
  • Then, the box will come back on, and flash the latest kernel and system files. Once this is done, the box will reboot again.
  • This bootup may take a few minutes, at first you will see the Revue logo, then the Google TV logo, then the “new” logo (a grey tv over a ball glowing red). Just wait it out.

You can then begin setup, as normal. You may notice some crashes – this software is still beta, you should be able to force close and continue.