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

Can't install / upgrade on tails 6.3 ? #7169

Open
vincib opened this issue May 27, 2024 · 3 comments
Open

Can't install / upgrade on tails 6.3 ? #7169

vincib opened this issue May 27, 2024 · 3 comments

Comments

@vincib
Copy link

vincib commented May 27, 2024

Description

I have a securedrop 2.6 on tails 5.14
I reinstalled a new tails key on 6.3 with the same Persistence

I tried to upgrade to 2.8 as follow :

cd Persistence/securedrop
git fetch ... checkout 2.8.0 
./securedrop-admin setup

the setup removed the old venv and failed like this:

amnesia@amnesia:~/Persistent/securedrop$ ./securedrop-admin setup
INFO: Checking apt dependencies are installed
INFO: Setting up virtualenv
ERROR: Unable to create virtualenv. Check network settings and try again.

Expected Behavior

I expected setup to install the required packages

Actual Behavior

An error appeared

Comments

I found a way to finish setup, by :

sudo apt update
sudo apt install python3-virtualenv python3-yaml python3-pip virtualenv libffi-dev libssl-dev libpython3-dev sq-keyring-linter

and then the setup and tailsconfig worked perfectly

amnesia@amnesia:~/Persistent/securedrop$ ./securedrop-admin setup
INFO: Checking apt dependencies are installed
INFO: Setting up virtualenv
INFO: Checking Python dependencies for securedrop-admin
INFO: Python dependencies for securedrop-admin upgraded
INFO: Finished installing SecureDrop dependencies
amnesia@amnesia:~/Persistent/securedrop$ ./securedrop-admin tailsconfig
INFO: Checking for SecureDrop updates...
INFO: All updates applied
INFO: Configuring Tails workstation environment
INFO: You'll be prompted for the temporary Tails admin password, which was set on Tails login screen
...

Do you know if 2.8.0 is compatible with Tails 6.3 ?

@vincib
Copy link
Author

vincib commented May 27, 2024

Note: I have a copy of the key before those tests so I can redo it or answer any tech question regarding the setup.

Thanks for your help (no hurry since it's working ;) )

@zenmonkeykstop
Copy link
Contributor

Hi @vincib , thank you and we'll try replicating this. Initial testing against 6.3 didn't hit the same issue, but the Tor network is getting hammered for the past few weeks, so it's possible it's a legit network timeout.

@nathandyer
Copy link
Contributor

I just tried to replicate this using Tails 6.3 on my primary test Admin Workstation for my QA environment, and was not able to do so. When I check out the 2.8.0 release of SecureDrop I am able to run ./securedrop-admin setup and create the virtualenv as expected.

For the sake of being thorough I tried checking out the 2.6.0 release, resetting my venv, and then trying the setup there. I never was able to get 2.6.0 to set up the virtual environment successfully, but checking out 2.8.0 always worked consistently for me.

Full troubleshooting details
cd ~/Persistent/securedrop
git checkout 2.6.0
./securedrop-admin setup
# RESULT: "Error: Failed to install Python dependencies. Check network connection and try again."

# Clear out previous .venv3
rm -rf admin/.venv3
./securedrop-admin setup
# RESULT: "Error: Failed to install Python dependenceis. Check network connection and try again."

# Specifically a 2.6.0 issue?
git checkout 2.8.0
./securedrop-admin setup
# RESULT: "INFO: Finished installing SecureDrop dependencies"

# 2.8.0 is OK, investigate 2.6.0 further
git checkout 2.6.0
rm -rf admin/.venv3
./securedrop-admin setup #confirm issue still present
# RESULT: "Error: Failed to install Python dependencies. Check network connection and try again."

# See if apt-related issue fixed in recent releases
sudo apt update
./securedrop-admin setup
# RESULT: "Error: Failed to install Python dependencies. Check network connection and try again."

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

3 participants