Deleting files

nocturn ulist at gs1.ubuntuforums.org
Wed Dec 22 09:30:40 UTC 2004


Jozsef Mak Wrote: 
> Hi,
> 
> When i download programs, Ubuntu places restrictions on the folders 
> preventing me to delete them. This is a great nuisance for me. I have
> close 
> to hundred files i don't need any longer and would like to delete them;
> but 
> i cannot. Could anyone tell how can i permanently disable this feature
> in 
> Ubuntu.  I want the system to allow me selecting folders graphically in
> my 
> Home directory and let me to delete them. Is there a possibility for
> this?
> 
> thanks
> jozsefmak
> 

I'm guessing here, but....

With, when you click your home directory, you mean the
filemanager/Nautilus I think.
In that, you navigate to the root directory (/) and from there to the
location of the packages where you hit delete.

This will not work because your user has no access rights to the
packages/folders that were created by root (in sudo).

To remove the packages, try this.

WARNING, be carefull with this, you can damage your system if you make
a mistake.

- From the filemanager (as before), determine the location of the
packages (somehting like /var/lib/packages - I'm not on a Ubuntu box
right now, so I can't check).
- open A root terminal (Programs / System I think)
- cd to the path by typing (replace the path, no quotes): 'cd
/var/lib/packages'
- delete the files or directories with (replace names):
- a file: 'rm package.deb'
- a dirctory: 'rm -rf packages'


-- 
nocturn




More information about the ubuntu-users mailing list