gdbserver won't install (debian 8.4)

1,283 views
Skip to first unread message

parkerl...@gmail.com

unread,
Jun 22, 2016, 12:05:24 PM6/22/16
to BeagleBoard
Hi,

I'm trying to run ./gdbserver on the beaglebone black but I get:
 'No such file or directory'

The BBB is flashed with 8.4 (cat /etc/debian_version)

According to the excellent Derek Molloy videos, it should come pre-installed with debian:

Unfortunately, even trying to install it manually doesn't work:
"
root@beaglebone:~# apt-get install gdbserver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gdbserver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gdbserver' has no installation candidate
"

The /etc/apt/sources.list file looks like:
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb [arch=armhf] http://repos.rcn-ee.com/debian/ jessie main


Is there something I need to install first?

Thanks!
Ben


William Hermans

unread,
Jun 22, 2016, 12:07:27 PM6/22/16
to beagl...@googlegroups.com
No . . .gdb-server does not come preinstalled in Debian.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/7ac9d5d7-e1d0-49b2-b43f-0aa9923c326e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Nelson

unread,
Jun 22, 2016, 12:11:52 PM6/22/16
to Beagle Board, parkerl...@gmail.com
On Wed, Jun 22, 2016 at 10:35 AM, <parkerl...@gmail.com> wrote:
> Hi,
>
> I'm trying to run ./gdbserver on the beaglebone black but I get:
> 'No such file or directory'
>
> The BBB is flashed with 8.4 (cat /etc/debian_version)
>
> According to the excellent Derek Molloy videos, it should come pre-installed
> with debian:
> https://www.youtube.com/watch?v=T9yFyWsyyGk&t=31m2s
>
> Unfortunately, even trying to install it manually doesn't work:
> "
> root@beaglebone:~# apt-get install gdbserver
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package gdbserver is not available, but is referred to by another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
> E: Package 'gdbserver' has no installation candidate


sudo apt-get update
sudo apt-get install gdbserver

Regards,

--
Robert Nelson
https://rcn-ee.com/

William Hermans

unread,
Jun 22, 2016, 12:12:45 PM6/22/16
to beagl...@googlegroups.com
william@beaglebone:~$ dpkg -l | grep gdbserver
<no output>

william@beaglebone:~$ sudo apt-get update
. . .
william@beaglebone:~$ apt-cache search gdbserver
gdbserver - GNU Debugger (remote server)
gdbserver-c6x - TI gdb-server for Keystone 2 devices.

Ben Nguyen

unread,
Jun 23, 2016, 11:38:51 AM6/23/16
to Robert Nelson, Beagle Board

Thanks, I get the same install error...   However, there's a bunch of error messages* during apt-get update that weren't there when before (when I originally ran it after upgrading the flash from debian 7 to 8).

By the way, I tried posting this on the forum, but couldn't find it..   How did you see this?!

Thanks!
Ben


*
login as: root
Debian GNU/Linux 8

BeagleBoard.org Debian Image 2016-05-13


default username:password is [debian:temppwd]

Last login: Thu Jun 23 05:50:53 2016 from bbb.attlocal.net
root@beaglebone:~# sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Hit http://repos.rcn-ee.com jessie InRelease
Hit https://deb.nodesource.com jessie InRelease
Get:2 https://deb.nodesource.com jessie/main armhf Packages [976 B]
Get:3 http://repos.rcn-ee.com jessie/main armhf Packages [501 kB]
Ign http://httpredir.debian.org jessie InRelease
Get:4 http://httpredir.debian.org jessie-updates InRelease [142 kB]
Get:5 http://security.debian.org jessie/updates/main armhf Packages [345 kB]
Get:6 http://httpredir.debian.org jessie-updates InRelease [142 kB]
Get:7 http://security.debian.org jessie/updates/main armhf Packages [345 kB]
Get:8 http://repos.rcn-ee.com jessie/main armhf Packages [501 kB]
Get:9 http://security.debian.org jessie/updates/contrib armhf Packages [994 B]
Get:10 http://security.debian.org jessie/updates/non-free armhf Packages [20 B]
Get:11 http://httpredir.debian.org jessie Release.gpg [2373 B]
Get:12 http://repos.rcn-ee.com jessie/main armhf Packages [501 kB]
Err http://httpredir.debian.org jessie Release

Err http://httpredir.debian.org jessie-updates/contrib armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie-updates/main armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie-updates/non-free armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie/main armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie/contrib armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Err http://httpredir.debian.org jessie/non-free armhf Packages
  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]
Fetched 368 kB in 4min 37s (1324 B/s)
Reading package lists... Done
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/main/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/contrib/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/non-free/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]


W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/contrib/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/non-free/binary-armhf/Packages  Unable to connect to httpredir.debian.org:http: [IP: 2001:41c8:1000:21::21:35 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.
"




"
root@beaglebone:~# sudo apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdbserver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gdbserver' has no installation candidate
root@beaglebone:~#
"

William Hermans

unread,
Jun 23, 2016, 11:51:35 AM6/23/16
to beagl...@googlegroups.com
Try:

$ sudo apt-get update
$ sudo apt-get upgrade

You're using an older APT list file and hopefully apt-get upgrade will fix that. If not, then probably Robert will have to tell you what he's changed the list to most recently.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Jun 23, 2016, 11:54:38 AM6/23/16
to beagl...@googlegroups.com
By the way, When you're running as root. You do not have to use sudo.

William Hermans

unread,
Jun 23, 2016, 11:56:47 AM6/23/16
to beagl...@googlegroups.com
So, it works. Judging from your output, you may have lost internet in the middle of that command, or your providers DNS for the IP addresses listed in your output went south. It happens . . .

william@beaglebone:~$ sudo apt-get install gdbserver
[sudo] password for william:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  gdbserver
0 upgraded, 1 newly installed, 0 to remove and 28 not upgraded.
Need to get 203 kB of archives.
After this operation, 347 kB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian/ jessie/main gdbserver armhf 7.7.1+dfsg-5 [203 kB]
Fetched 203 kB in 1s (163 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package gdbserver.
(Reading database ... 40100 files and directories currently installed.)
Preparing to unpack .../gdbserver_7.7.1+dfsg-5_armhf.deb ...
Unpacking gdbserver (7.7.1+dfsg-5) ...
Setting up gdbserver (7.7.1+dfsg-5) ...


Reply all
Reply to author
Forward
0 new messages