Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to recover from Tails errors with "Additional software" #446

Open
eloquence opened this issue May 16, 2023 · 4 comments
Open

Comments

@eloquence
Copy link
Member

As documented upstream in https://gitlab.tails.boum.org/tails/tails/-/issues/18620, Tails sometimes fails to install the "Additional software" (Debian packages) that users have previously requested to persist.

When this happens, securedrop-admin will no longer work correctly due to missing dependencies.

We should add troubleshooting instructions in our docs to help users recover from this issue.

@eloquence
Copy link
Member Author

I've opened this as a docs issue, but it might make sense to expose bootstrap.py's install_apt_dependencies as a securedrop-admin subcommand to aid in recovery. I'll poke to see if that recovers from a dirty state.

@zenmonkeykstop
Copy link
Contributor

Whould it work to just rerun securedrop-admin setup in that scenario?

@eloquence
Copy link
Member Author

By my read it currently only installs the apt dependencies if the venv does not exist:
https://github.com/freedomofpress/securedrop/blob/develop/admin/bootstrap.py#LL164C9-L164C21

@eloquence
Copy link
Member Author

@huertanix resolved this via the following steps:

  1. sudo rm /var/lib/apt/lists/*
  2. sudo apt update
  3. Remove installed "Additional software" packages via Synaptic

When I've encountered the issue, this was not necessary. I was able to resolve by installing packages with sudo apt install <missing-package>. Removing the admin/.venv3 directory and re-running securedrop-admin setup should have the same effect.

So far I've not been able to induce the broken state. It may sometimes occur due to a race condition or similar timing issue.

So I would suggest, next time anyone encounters this, try:

  1. cd ~/Persistent/securedrop
  2. rm -rf admin/.venv3
  3. ./securedrop-admin setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants