Skip to content

APT is not configured to install packages from our repo

Packages are supposed to be pinned to our repo with pin priority 990 in config/chroot_apt/preferences:

Package: *
Pin: origin deb.tails.boum.org
Pin-Priority: 990

But this doesn’t work, because the origin is actually not deb.tails.boum.org but tor+http://jenw7xbd6tf7vfhp.onion.

That is because we replace the deb.tails.boum.org in /etc/apt/sources.list.d/tails.list in config/chroot_local-includes/lib/live/config/1500-reconfigure-APT:

### Custom APT repository

s{
   ^
   (deb(?:-src)?\s+)
   tor[+]https?://deb[.]tails[.]boum[.]org
   /?
   (\s+)
}{$1tor+http://jenw7xbd6tf7vfhp.onion/$2}xms;

' | perl -pi - /etc/apt/sources.list /etc/apt/sources.list.d/*.list

This script is executed at the end of the build of a Tails image, so when the packages are installed during the build, they are correctly installed from our repo.

To fix this, we could make config/chroot_local-includes/lib/live/config/1500-reconfigure-APT also replace the origin in the APT preferences.

Feature Branch: bugfix/15837-fix-apt-preferences+force-all-tests

Related issues

Original created by @segfault on 15837 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information