Skip to content

Debian / Ubuntu

APT repository instructions for the core package. The current CI source defines Debian/Ubuntu verification legs; that is a declared test scope, not current proof for every derivative, architecture or published release.

Source instructions and release qualification

These instructions reflect the checked-in 1.8.0 package/service sources. Existing CI recipes and historical rehearsals are not proof that a particular published package, repository signature or installed host has passed current qualification. Select and verify the exact released version, architecture, SKU and installed binary; 1.8.0 publication and full package lifecycle evidence remain separate release gates.

Repository setup

Download and inspect the setup script before executing it with administrator privileges. Verify the approved revision and signing-key fingerprint through your release trust process; downloading over HTTPS is not independent signature qualification.

curl -fsSL https://pkg.trident-cache.com/setup -o trident-repo-setup.sh
# Review this file and verify the approved source before the next command.
sudo sh ./trident-repo-setup.sh

The script changes repository configuration and refreshes package metadata. It does not validate a candidate configuration or qualify the subsequent installation.

Then, after confirming the intended repository/version:

sudo apt-get install trident

Manual repository setup

Install prerequisites and fetch the source-defined /gpg key endpoint (not /gpg.key):

sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
curl -fsSL https://pkg.trident-cache.com/gpg -o trident-archive-key.asc
gpg --show-keys --fingerprint trident-archive-key.asc

Compare that fingerprint with the approved release key before trusting it. Then create the scoped keyring/repository:

gpg --dearmor --output trident-archive-keyring.gpg trident-archive-key.asc
sudo install -m 0644 trident-archive-keyring.gpg /usr/share/keyrings/trident-archive-keyring.gpg
printf '%s\n' 'deb [signed-by=/usr/share/keyrings/trident-archive-keyring.gpg] https://pkg.trident-cache.com/apt stable main' | sudo tee /etc/apt/sources.list.d/trident.list
sudo apt-get update
sudo apt-get install trident

Do not bypass APT signature failures. The selected repository's authenticated metadata, exact package checksums and intended version still need verification in the release process.

Installed paths and active configuration

Component Core package path
Daemon / tools /usr/bin/trident, /usr/bin/trident-cli, /usr/bin/trident-snap
Configuration files /etc/trident/config.toml and /etc/trident/config.json
Selected service configuration TRIDENT_CONFIG in /etc/default/trident; fresh package default is /etc/trident/config.toml
systemd service / socket files /usr/lib/systemd/system/trident.service, /usr/lib/systemd/system/trident.socket
State / logs /var/lib/trident, /var/log/trident, owned by trident:trident

The package creates the trident system user/group. Configuration and default-environment files are marked to preserve operator edits; inspect any package-manager replacement/default files during upgrades. Editing JSON does not change a service still selecting TOML. File extensions select the parser: JSON content belongs in .json, TOML in .toml.

A fresh systemd package install enables the service without starting it. Configure the actual backend/served Host allowlist, secrets and licence first. Validate with the candidate binary and the same user, environment and file access as the service, then follow Service Management. An intentionally stopped service should not be resurrected by an upgrade.

Verify the selected installation

/usr/bin/trident --version
/usr/bin/trident-cli --version
systemctl cat trident
systemctl show trident -p ExecStart -p User -p EnvironmentFiles

Do not paste environment files, tokens or licence contents into reports. The package config binds the proxy to port 8120 and admin to loopback port 6085; the in-code admin default is 9000. Target the address in the selected configuration, not a guessed default. Confirm exact installed-byte identity and complete MISS/HIT/private/purge bodies separately; a version string or active unit is insufficient.

Upgrade and rollback

Before any package-manager upgrade, retain the previous package and operator configuration, stage the exact candidate, verify its checksum and extracted binary, and run its --check against the active configuration with the required service environment and readable secrets/licence. Never use the old installed binary as the candidate preflight.

The first 1.7 → 1.8 hop is exceptional: the old package hook can stop the daemon before the new hook validates it. Refusal can leave the node down; this is not a zero-downtime procedure. Drain traffic as appropriate and retain a tested recovery path. On systemd, the source checked-upgrade procedure validates the exact staged package/binary pair before invoking the package manager. It requires Python 3.10+, correct tool dependencies and a new private evidence directory; it performs no automatic rollback and does not recreate the full service sandbox/environment.

An RPM %posttrans refusal can leave the service down even when the package manager exits zero. Inspect diagnostics, process identity and readiness. For Debian, a refused legacy hop may require correcting configuration and completing dpkg --configure -a. Do not treat package-manager success alone as service success.

Every 1.8 start and a rollback start is cold: do not expect old snapshots to restore cached entries. Roll back the reviewed package and compatible configuration, then verify process identity, readiness and exact bodies before returning traffic. See the source upgrade guide.

Next steps

  • Configuration: edit the file actually selected by the service.
  • Service Management: configure credentials/licence, preflight, readiness, start and boot policy.