How to deinstall pakages?

Hallo,
how i can deinstall pakages? I want deinstall the Last.fm and Couch Surfer Pro.
but how
Please help anybody :-)
Thanks Robi 

Highlight the unwanted item in Maintenance --> Manage Extras and press the right arrow (>>).

Easy peasy.

Are you familiar with the UNIX apt-get and dpkg command ? While you are logging as root with ssh into your aTV, you can remove a package using this command: "apt-get remove package-name". You can find all the package that are actually installed into you aTV with this command: "dpkg --get-selections > myapps.txt" (the package name will be into the myapps.txt file). For example, you can uninstall Last.FM package like this: "apt-get remove com.firecore.lastfm".

Hope that will help you.

OH ! so easy :-) Nice and Thanks

but Removal Failed!
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Now i will taste it. 

I have do what you said!
AppleTV:/var root# dpkg --get-selections > myapps.txt

and in the myapps.txt stay this ?

AppleTV:/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
AppleTV:/var root# 

Edit:

Ok i have make a dpkg --configure -a

after restart, its now going with the uninstall over the aTV Flash desktop
Thanks 

Okay, this is all way beyond me, not really understanding what that all means.  I’m trying to remove packages and I get the “Removal Failed!” error:

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? 

Any suggestions on the route to take to fix this?  

I have had exactly the same problem when I tried to uninstall XBMC after all the recent updates. I ended up restoring my AppleTV Black back to factory settings. I am giving up with aTV/SeasOnPass until it comes out of beta - I’ll miss the browser but for now I’ll just convert my AVI files to Apple TV format 

The first version I installed a couple of weeks ago which contained MediaPlayer 0.6 all worked flawlessly for me but all the recent updates have crippled what was a great version. I think it is ridiculous that you can’t restore back to a version that was known to be stable - I don’t think it is too much to ask for an archive to made available of previous versions.

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

Try restarting the AppleTV?

After restarting de uninstaller will run but the removing stalls and the atv reboots and if you try again the file is locked again. So there is a problem with xbmc. Is there another way to remove it?

Hmmm - by chance did you have the 4.3.4 version of Remote HD installed?

 

Nope I haven’t got remote HD installed.

 

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.

I didn’t really investigate further to see why rm was hanging on certain files, but it may be something to look into.

Thanks this worked!

 

The easiest and fastest way to remove the directory is using FileZilla and just SFTP into the device then delete XBMC.frappliance in /Applications. I finally did that after doing rm -rfv /Applications/XBMC.frappliance about 20 times and feeling like I wasn’t getting anywhere.

And for those who, like me, have no idea HOW to sftp into your Apple TV 2 I will refer you to an explanation on

http://support.firecore.com/entries/259317-connecting-via-ssh-and-sftp#overview

But please note: username/password on the Apple TV 2 is NOT ‘frontrow/frontrow’ but ‘root/alpine’ (1). Also, you’ll have a hell of a time locating that folder (3), so using Filezilla (2) is nice because it saves a LOT of typing. Also, don’t be alarmed, there are hundreds of files that will be deleted (in the xbmc directory referenced in the post above). You will need to restart the ATV2.

(1) Found that here: http://forum.xbmc.org/showthread.php?t=99904

(2) Free ftp software, available on all platforms. Settings should be as below:

[[wysiwyg_imageupload:99:]]

 

 

 

 

 

 

 

 

 

 

 

 

(3) When you connect you start in /Private/Var/Root so you should go BACK to / and then to /Applications

It is also worth noting you don’t need to have your ATV2 connected via USB, you can do it over the network, even over wifi. Get the IP from the settings menu on your ATV.

Gentlemen, I yield to no-one in my admiration for your technical expertise but seriously, spare a thought for those who DON’T routinely sftp into servers all day…