Strace on beaglebone balck rev C

Hi,

I am new to linux and kernel development. I am using beagle bone black rev C as target. I compiled linux kernel version 5.10.168 for target. I would like to use strace on my embedded HW.
When i issue command strace -V i get the following respones.
-bash: strace: command not found
When i try to install strace using sudo get-apt install strace i get the following.
E: package strace has no installation candidate.
I would appreciate any help to solve the issue.

Regards and thanks in advance

Are you able to connect to the package server?

$sudo apt update

If that works, then

$apt-cache search strace*
2 Likes

Thanks for the help. Like you pointed i was not able to connect to the package server.
I change deb to archives as describes on some forums. I have the strace working now.
Thanks and Best Regards,

Thanks for the quick response. i get the following responses seems like i can not access some of the IP addresses.
root@beaglebone:/home/debian# sudo apt update
Ign:1 deb .debian. org/debian stretch InRelease
Ign:2 deb .debian. org/debian stretch-updates InRelease
Ign:3 deb .debian. org/debian-security stretch/updates InRelease
Err:4 deb .debian.org/debian stretch Release
404 Not Found [IP: 146 .75.74.132 80]
Err:5 deb .debian. org/debian stretch-updates Release
404 Not Found [IP: 146 .75.74.132 80]
Err:6 deb. debian . org /debian-security stretch/updates Release
404 Not Found [IP: 146 .75.74.132 80]
Reading package lists… Done
E: The repository deb. debian.org /debian stretch Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘deb. debian.org/debian stretch-updates Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘deb. debian. org / debian-security stretch / updates Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The method driver /usr/lib/apt/methods could not be found.
N: Is the package apt-transport-https installed?

Internet connections works because i can ping google for e.g
root@beaglebone:/home/debian# ping google .com
PING google .com (209.85.203.100) 56(84) bytes of data.
64 bytes from dh- in-f100.1e100. net (209. 85.203.100): icmp_seq=1 ttl=107 time=14.3 ms
64 bytes from dh- in-f100.1e100. net (209. 85.203.100): icmp_seq=2 ttl=107 time=13.4 ms
^V64 bytes from dh- in-f100.1e100. net (209. 85.203.100): icmp_seq=3 ttl=107 time=16.1 ms

I removed http from log and added some spaces, it does not allow me to have more than 2 links
Thanks & Best Regards

Debian stretch has been eol for awhile, debian moved their package archive. Hence why you can not access it as-is.

https://wiki.debian.org/DebianStretch#FAQ

1 Like

Install the IoT flasher image, it works fine and strace will install. It is also on the 5.10.168 kernel. It almost looks like you bumped the kernel up and the apt system is still on the old settings.