Cannot install or uninstall packages
Lately i installed sun java in my ubuntu 11.04, after that when ever i try to install or uninstall a package from software center
or synaptic the following message comes :
Traceback (most recent call last):
File "/usr/lib/
trans.
File "/usr/lib/
return depends, self._cache.
File "/usr/lib/
pm.
SystemError: E:I wasn't able to locate file for the sun-java6-bin package. This might mean you need to manually fix this package.
also in the terminal if i try the following message comes :
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
esound-common libesd0 libaudiofile0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
sun-java6-bin sun-java6-jre
Suggested packages:
sun-java6-plugin ia32-sun-
ttf-sazanami-
Recommended packages:
gsfonts-x11
The following packages will be REMOVED:
firefox firefox-globalmenu
The following packages will be upgraded:
sun-java6-bin sun-java6-jre
2 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
2 not fully installed or removed.
E: Could not get lock /var/cache/
E: Unable to lock directory /var/cache/
please help me...!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Odoardo Maria Calamai
- Solved:
- Last query:
- Last reply: