How to make GNOME Software to work in templates revisions

Go back to topic: How to make GNOME Software to work in templates

  1. v4 anchor; v4 full version
  2. v3 anchor; v3 full version
  3. v2 anchor; v2 full version

Revision #4

Edited on
2024-02-25
Edited by user
solene
ip route add default via 127.0.0.1 ip route add default via 127.0.0.2

Revision #3

Edited on
2023-09-15
Edited by user
solene
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. 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. Tested on Debian 12 and Fedora 38.

Revision #2

Edited on
2023-09-14
Edited by user
solene
ip 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 ip route add default via 127.0.0.1
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. 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 on the loopback interface.
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.Packages are downloaded through the proxy exactly like when using the command line. The template is not connected to the internet, nothing changed except we added a false route that can't go anywhere.