Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Usually, you'd install things using your distribution's package management system. gdb is a standard piece of software, so I'd be very surprised if your distribution didn't have a package for it. If you need help with using the package manager, you'll need to tell us which distribution you're using.
apt-get is the lowest-common-denominator command-line package manager for Debian (and derived distros). There are other ways of managing software on Debian-likes (e.g. Synaptic Package Manager is a GUI frontend to apt), but apt-get is always there when all else fails.
Also, I don't really use Debian on a regular basis (save for a virtual machine I have for testing support suggestions ), so I don't know all the ins and outs of Debian's package management system; this is just advice from someone who's messed with Ubuntu in the past, as well as having a little bit of vanilla Debian experience.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gdb : Depends: gdbserver but it is not going to be installed
sun-java6-jre : Depends: sun-java6-bin (>= 6.26-0squeeze1) but it is not going to be installed or
ia32-sun-java6-bin (>= 6.26-0squeeze1) but it is not going to be installed
Recommends: gsfonts-x11 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I tried it with -f as well and it gave the same error, any idea?
The following NEW packages will be installed:
gdb gdbserver{a}
0 packages upgraded, 2 newly installed, 0 to remove and 190 not upgraded.
Need to get 0 B of archives. After unpacking 4,878 kB will be used.
Do you want to continue? [Y/n/?] Y
E: I wasn't able to locate file for the sun-java6-jre package. This might mean you need to manually fix this package.
E: I wasn't able to locate file for the sun-java6-jre package. This might mean you need to manually fix this package.
E: Internal error: couldn't generate list of packages to download
sudo apt-get install sun-java6-jre gives this error : (((((((((((((( I don't know what is wrong with my Linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package sun-java6-bin needs to be reinstalled, but I can't find an archive for it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.