I have to install Hadoop before installing Pig package. Hadoop requires a working Java 1.6.x installation.So I tried to run the following command to install sun-java6-jdk:
$ sudo apt-get install sun-java6-jdk
but I have problems and I obtain this error when trying to install any other package
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 968, in simulate trans.unauthenticated = self._simulate_helper(trans) File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1092, in _simulate_helper return depends, self._cache.required_download, File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 235, in required_download pm.get_archives(fetcher, self._list, self._records) SystemError: E:I wasn t able to locate a file for the sun-java6-bin package. This might mean you need to manually fix this package.
如何解决这一问题?