What package provides file xyz?

David Symons ubuntu at liberatedcomputing.net
Sun Apr 9 10:27:56 UTC 2006

On Sun, 2006-04-09 at 11:06 +0100, Daniel Carrera wrote:
> daniel at Agape:~$ sudo dpkg -S /usr/bin/java
> dpkg: /usr/bin/java not found.
> This means that my java was not provided by any package?

My /usr/bin/java is a symlink that points to /etc/alternatives/java.
This is most likely set up by a postinstall script so won't work with
'dpkg -S'.

> How can I find out what files are provided by the package java-common?

dpkg -L java-common   ( </LPI> :P )

> There's something strange going on here. I think I might have two or 
> more Javas installed.

Try a 'sudo update-alternatives --config java' to see what they are (and
choose between them).

Cheers, Dave.
David Symons

More information about the ubuntu-users mailing list