[BBB Buster] compiling gcc after flashing image on SD card

Hello all again,
I flashed an SD card with bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz, copied my code from a backup source (code was running from the eMMC and uses gtk) but when i compile I get:

Package gtk±3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk±3.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘gtk±3.0’ found
part1.c:18:10: fatal error: gtk/gtk.h: No such file or directory
#include <gtk/gtk.h>
^~~~~~~~~~~
compilation terminated.

I find that gtk±3.0.pc is in ./media/root/rootfs/usr/lib/arm-linux-gnueabihf/pkgconfig/gtk±3.0.pc but pkg-config is looking for it in
root@beaglebone:# pkg-config --variable pc_path pkg-config
/usr/local/lib/arm-linux-gnueabihf/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig

My questions are: why is it now in /media/root/rootfs? I have not mounted the eMMC yet. Do i just copy the files to /usr/local/lib ? Or should i change pkg-config to look for it in /media/root/rootfs/lib ?

Have a Blessed day!
Don

sudo apt update
sudo apt install libgtk-3-dev

The Default desktop might have auto-mounted that, just ignore it and use apt to install the correct one…

Regards,

Thank you for the reply. But when I apt update I get

root@beaglebone:/usr/DonCode# apt update
Get:1 http://deb.debian.org/debian buster InRelease [5,548 B]               
Get:2 http://deb.debian.org/debian buster-updates InRelease [5,548 B]
Get:3 http://deb.debian.org/debian-security buster/updates InRelease [5,548 B]
Get:4 http://repos.rcn-ee.com/debian buster InRelease [5,548 B]
Err:1 http://deb.debian.org/debian buster InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:2 http://deb.debian.org/debian buster-updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:3 http://deb.debian.org/debian-security buster/updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:4 http://repos.rcn-ee.com/debian buster InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done  
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://deb.debian.org/debian buster InRelease' is no longer signed.
E: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is no longer signed.
E: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://deb.debian.org/debian-security buster/updates InRelease' is no longer signed.
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: Failed to fetch http://repos.rcn-ee.com/debian/dists/buster/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://repos.rcn-ee.com/debian buster InRelease' is no longer signed.
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.

Is this related to my problem and post on certificate problem with git? Strange problem I am seeing with this Debian.

Have a Blessed day!
Don

Smells like an issue in your network? Do you normally use a Network proxy?

Regards,

No proxy, speed test shows about 150 download 80 upload, latency 12 - 141ms average 74 ms. Could something like CloudFlare be screwing with it? The BBB is having trouble with certificates, I think its related somehow. Its odd having trouble with certificates and possibly authentication at the same time. I had no trouble running from the eMMC with a slightly older Debian. This is the first time running this image.

Have a Blessed day!
Don

Sorry, idk… that was the first time i’ve seen that error from apt… When searching google, it looks to be a proxy/dns issue…

You could try the latest snapshot, to see if that fixes anything? Debian 11.x (Bullseye) - Monthly Snapshots

Regards,

Thank you RobertCNelson,
I got the image am335x-debian-11.6-iot-armhf-2023-01-02-4gb from the link you provided and it is working - compiling, apt update and cloning the cookbook all work.

I think the image bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz from the official site is broken. Am I the only one to see these problems? I tried flashing it several times to see if the flashing was the problem. Maybe in the downloading from the official site it got broken.

Have a Blessed day!
Don

Nope, just ‘old’… Lots of things like encryption keys/routines/etc, got old and expired…

Regards,