gdbserver install failed

67 views
Skip to first unread message

georgew...@gmail.com

unread,
Mar 22, 2019, 5:37:31 PM3/22/19
to BeagleBoard
Hi All,

I need to install gdbserver to my beaglebone board for remote debug. But failed.
here is my board info:
root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2018-01-28
root@beaglebone:~# uname -ar
Linux beaglebone 4.9.78-ti-r94 #1 SMP PREEMPT Fri Jan 26 21:26:24 UTC 2018 armv7l GNU/Linux
root@beaglebone:~# lscpu
Architecture:          armv7l
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Model:                 2
Model name:            ARMv7 Processor rev 2 (v7l)
CPU max MHz:           1000.0000
CPU min MHz:           300.0000
BogoMIPS:              995.32
Flags:                 half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32

I used the latest image: "Debian 9.5 2018-10-07 4GB SD IoT"

here are the errors when I tried to install gdbserver:

root@beaglebone:~# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gdbserver:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libgpiod0 libllvm5.0 ti-c6000-cgt-v8.1.x-installer
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libtiopencl1
The following NEW packages will be installed:
  libtiopencl1
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
192 not fully installed or removed.
Need to get 3,530 kB of archives.
After this operation, 14.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://repos.rcn-ee.com/debian stretch/main armhf libtiopencl1 armhf 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103 [3,530 kB]
Fetched 3,530 kB in 2s (1,712 kB/s)
(Reading database ... 74664 files and directories currently installed.)
Preparing to unpack .../libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb ...
Unpacking libtiopencl1 (01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) ...
dpkg: error processing archive /var/cache/apt/archives/libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb (--unpack):
 trying to overwrite '/usr/share/ti/opencl/clc.h', which is also in package libopencl1 01.01.15.03-r0.0rcnee7~stretch+20180809
Errors were encountered while processing:
 /var/cache/apt/archives/libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gdbserver:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:~#


Can anybody help?

Thanks.

George

Tarmo Kuuse

unread,
Mar 25, 2019, 7:29:16 AM3/25/19
to BeagleBoard
Hi George,

Firstly, I didn't see an "apt update" command in your listing. This updates the package lists and should be executed before installing any packages.
 
Unpacking libtiopencl1 (01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) ...
dpkg: error processing archive /var/cache/apt/archives/libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb (--unpack):
 trying to overwrite '/usr/share/ti/opencl/clc.h', which is also in package libopencl1 01.01.15.03-r0.0rcnee7~stretch+20180809

Secondly, there's a conflict between packages "libopencl1" and "libtiopencl1". You need to choose one or the other. Remove the other with "apt purge ...". 

--
Kind regards,
Tarmo

chunzhi wang

unread,
Mar 25, 2019, 1:34:43 PM3/25/19
to beagl...@googlegroups.com
I just tried. non of them is working.

root@beaglebone:/# apt update
Get:1 http://repos.rcn-ee.com/debian stretch InRelease [3,061 B]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Hit:5 http://deb.debian.org/debian stretch Release
Get:6 http://repos.rcn-ee.com/debian stretch/main armhf Packages [904 kB]
Get:7 http://deb.debian.org/debian-security stretch/updates/main i386 Packages [601 kB]
Get:8 http://deb.debian.org/debian-security stretch/updates/main amd64 Packages [601 kB]
Fetched 2,294 kB in 7s (314 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
13 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@beaglebone:/# apt purge libtiopencl1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libtiopencl1' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:/# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gdbserver:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:/#
root@beaglebone:/# apt purge libopencl1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:/#
root@beaglebone:/# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gdbserver:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:/#
root@beaglebone:/# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libgpiod0 libllvm5.0 ti-c6000-cgt-v8.1.x-installer
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libtiopencl1
The following NEW packages will be installed:
  libtiopencl1
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
192 not fully installed or removed.
Need to get 3,530 kB of archives.
After this operation, 14.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://repos.rcn-ee.com/debian stretch/main armhf libtiopencl1 armhf 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103 [3,530 kB]
Fetched 3,530 kB in 1s (2,803 kB/s)
(Reading database ... 74664 files and directories currently installed.)
Preparing to unpack .../libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb ...
Unpacking libtiopencl1 (01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) ...
dpkg: error processing archive /var/cache/apt/archives/libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb (--unpack):
 trying to overwrite '/usr/share/ti/opencl/clc.h', which is also in package libopencl1 01.01.15.03-r0.0rcnee7~stretch+20180809
Errors were encountered while processing:
 /var/cache/apt/archives/libtiopencl1_01.01.17.01-git20181129.0-0rcnee0~stretch+20190103_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@beaglebone:/#
root@beaglebone:/#
root@beaglebone:/# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gdbserver:i386 : Depends: libc6:i386 (>= 2.15) but it is not going to be installed
 ti-opencl : Depends: libtiopencl1 (= 01.01.17.01-git20181129.0-0rcnee0~stretch+20190103) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@beaglebone:/#

Thanks.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/rBEOoVoWptc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4b2ec493-3dee-4b97-a380-16d1072ab74f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chunzhi wang

unread,
Mar 25, 2019, 1:34:56 PM3/25/19
to beagl...@googlegroups.com
Hi,
gdbserver seems installed. after I do
apt-get upgrade following apt update

Thanks,

George
Reply all
Reply to author
Forward
0 new messages