This issue doesn't happen if you don't execute..
sudo apt update sudo apt -y upgrade
...in the chroot environment?
This issue doesn't happen if you don't execute..
sudo apt update
sudo apt -y upgrade
...in the chroot environment?