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.

Netflix to Stream Films From Paramount, Lions Gate, MGM

I probably watch more streaming films than discs from my Netflix account now.  So far, I have been a bit dissatisfied with the number of films available and quite often, they were ‘the films you never heard of.’
Looks like that is about to change (September 1, 2010)
A new deal will give Netflix the right to stream feature films from Paramount Pictures, like “Iron Man 2,” Lions Gate and MGM far earlier than it does now.

Robert Downey Jr., left, as Tony Stark in “Iron Man 2.”

At a cost of nearly one billion dollars, Netflix on Tuesday said it would add films from Paramount Pictures, Lions Gate and MGM to its online subscription service.

It was a coup — albeit a costly one — for Netflix, which knows its needs to lock up the digital rights to films as customers stop receiving DVDs by mail and start receiving streams via the Internet. The deal will commence Sept. 1.

Ted Sarandos, the chief content officer for Netflix, said he is essentially taking the “huge pile of money” that Netflix pays in postage for DVDs by mail — about $600 million this year — “and starting to pay it to the studios and networks.”

Wall Street analysts estimated that Netflix would pay about $900 million over the course of five years to Epix, a fledgling competitor to HBO that holds the rights to the film output of Paramount, Lions Gate and MGM. Those payments are expected to help the money-losing Epix break even in the next fiscal year.

The Epix deal will add new releases like “Iron Man” and “The Curious Case of Benjamin Button” to Netflix’s catalog, greatly enhancing the “Watch Instantly” streaming service that the company markets to subscribers as part of an $8.99 package that also includes DVD deliveries. It was the second film deal for Netflix this summer, coming a month after a pact with Relativity Media, the firm run by Ryan Kavanaugh.

Netflix’s open checkbook demonstrates that Internet streaming is clearly coming to the forefront in Hollywood, but in a carefully controlled manner. Mr. Sarandos said in an interview Tuesday that the content deals were part of “our continued commitment to making streaming a better and better proposition for our subscribers.”

Netflix’s future depends in large part on cutting financial deals that keep those streams in place.

The company first took on the likes of Blockbuster with DVDs by mail. Then, in 2007, it set its sights on online streaming, but existing deals with pay TV operators like HBO made it impossible to stream many of the biggest film releases. These deals preserve what is called the pay television window, which opens up about a year after a film is first released in theaters and gives HBO, Showtime or Starz about 18 months of screening (and, more recently, Web streaming) time.

Pay TV arrangements are important contributors to the bottom lines of Hollywood studios, helping them wring more money out of both blockbusters and flops. These arrangements rely on cable and satellite carriers to collect monthly payments.

Accordingly, the movies that were initially available on the “Watch Instantly” service were mostly ones “you’ve never heard of,” Mr. Sarandos said. But the company in 2008 cut an important deal with Starz that allowed access to high-profile films from Sony and The Walt Disney Company. Now it is adding more films through the payments to Epix.

In doing so, it is essentially creating a brand new window for movie viewing, one that does not depend on cable or satellite carriers. “If you own content, you want to sell it to as many people as possible without blowing up your existing revenue streams,” said the Morgan Stanley analyst Benjamin Swinburne.

At the same time, having Netflix in the marketplace puts pressure on cable and satellite providers “because you’ve got another bidder out there,” he said.

The 2-year-old Epix is invisible to most consumers because it has had trouble gaining space on those carriers’ systems. But it is preserving the deals it does have by carving out a three-month TV window for films before they are available to Netflix subscribers.

Jon Feltheimer, the chief executive of Lions Gate, told analysts Tuesday that “by creating this groundbreaking new window for their streaming service, we both protect our traditional MSO customers and create a significant and guaranteed new revenue stream for our service.” MSO is an abbreviation for cable and satellite carriers.

The Los Angeles Times first reported the pending deal on Monday.

Netflix says it prefers to be a distributor for pay TV — not a competitor to it — and wants to license content from HBO and Showtime. HBO has the rights to Fox, Universal and Warner films for at least the next four years.

Asked about the giant amount of content that Netflix was lacking due to HBO’s deals, Mr. Sarandos seemed to take a long-term view. “Every deal expires,” he said, “and every deal has to be renewed.”

some text from NYTimes Online