1

Do I have to restart something?

Edit: sudo apt-get update has no effect.

When I search this on another machine with the SAME sources.list, it works. But, it still doesn't work on this machine.

sudo aptitude search sun-java6-jdk
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
Alex
  • 8,471
  • 26
  • 75
  • 99

3 Answers3

7

Maybe you forgot to run "apt-get update"...

Klemen
  • 224
  • 1
  • 2
3

After editing any configuration files in /etc/apt, you generally need to do an update;

apt-get update

This allows apt to update itself, it's configuration and the server(s) it queries for packages.

Michael Pobega
  • 934
  • 5
  • 12
1

You might want to double check that you've got the multiverse repository included. The sun packages are in that one. For example, if you've got:

deb http://www.gtlib.gatech.edu/pub/ubuntu/ jaunty main restricted

you can tack on multiverse to the end to add it.

deb http://www.gtlib.gatech.edu/pub/ubuntu/ jaunty main restricted multiverse

Hans Lawrenz
  • 196
  • 3