Linux networking
No internet
Method 1
get network interface
ip a
bring up the interface
sudo ip link set INTERFACE_NAME up
sudo /sbin/dhclient INTERFACE_NAME
try connecting to the internet
ping 1.1.1.1
also check apt sources list
nano /etc/apt/sources.list
ensure sources are there
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware