Hi,
If you want to install programs in a template from the graphical package manager Software, we need to follow a few steps to circumvent a bug in that program.
/rw/config/rc.local
to add the snippet below at the end of the fileip link add dummy0 type dummy
ip link set dummy0 up
ip addr add 192.168.0.1/24 dev dummy0
ip route add default via 192.168.0.2 dev dummy0
Now, if you start Software in the template, it will be able to download and install packages 🙂 👌
This seems to be a "bug" of GNOME Software, it won't trigger the package installation if it can't find a default route. The hack here is to create a fake route that goes nowhere, in a virtual network interface connected to nothing.
Packages are downloaded through the proxy exactly like when using the command line. The template is not connected to the internet, the network added is totally fake (hence the name dummy) but enough to make the program happy.