Forum Discussion

Baski's avatar
Baski
New Contributor
14 days ago
Solved

1Password linux install proxy fail

Hello,

While installing 1Password on linux (Ubuntu 24.04), following the official guide (using .deb method here: https://support.1password.com/install-linux/#debian-or-ubuntu) and with a corporate proxy to access public internet, the installation fails at the end (1Password app configuration step):

sudo apt upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] O
Paramétrage de 1password (8.11.4) ...
Installing the debian auto-update channel
curl: (28) Failed to connect to downloads.1password.com port 443 after 300004 ms: Timeout was reached
gpg: aucune donnée OpenPGP valable n'a été trouvée.
dpkg: erreur de traitement du paquet 1password (--configure) :
 le sous-processus paquet 1password script post-installation installé a renvoyé un état de sortie d'erreur 2
Des erreurs ont été rencontrées pendant l'exécution :
 1password
E: Sub-process /usr/bin/dpkg returned an error code (1)

My proxy is defined in the system configuration, variables HTTP|S_PROXY are set and I also have the proxy conf for apt in /etc/apt/apt.conf.d/proxy.conf

  • Hi Baski​,

    Thanks for providing those logs. This is a common issue when installing software on a machine that's behind a corporate proxy.

    The problem is that while you've correctly configured apt to use the proxy, the 1Password installation script (which runs with sudo) doesn't know about those settings. The solution is to pass your proxy settings to the sudo command.

    Here are the steps to resolve this. Just run these commands in your terminal.

    1. Set the proxy variables for your current terminal session. (Be sure to replace http://proxy.yourcompany.com:8080 with your actual proxy address).
      Bash
      export http_proxy="http://proxy.yourcompany.com:8080"
      export https_proxy="http://proxy.yourcompany.com:8080"
    2. Clean up the previous failed installation. This command will fix any packages that were left in a broken state.
      Bash
      sudo apt --fix-broken install
    3. Run the upgrade again using the -E flag. This is the most important step. The -E flag tells sudo to preserve your environment variables (including the proxy settings), allowing the installation script to connect to the internet.
      Bash
      sudo -E apt upgrade

    That should get 1Password installed successfully for you. Let us know if that works!

3 Replies

  • Baski's avatar
    Baski
    New Contributor

    Hello 1P_SimonH​ I've removed 1password from my computer (I could install it before using a network without the Proxy) and then installed it with your method on the proxy network and it works thank you.

     

    @AJCxZ0

    My proxy was configured both, system wide and for apt, but the installation still failed. The flag "-E" for sudo could be reminded in the official installation doc I think

  • AJCxZ0's avatar
    AJCxZ0
    Bronze Expert

    While 1P_SimonH​'s workaround should help in the short term, you should configure your system to work behind a proxy.

    Since this isn't the place for a full breakdown of all the places and methods and quality resources can be found elsewhere, I'll address just apt by pointing you to apt.conf(5) and apt-transport-http(1) for configuring apt(8). If you are a Pro, the see also How to configure a proxy.

  • 1P_SimonH's avatar
    1P_SimonH
    Icon for Community Manager rankCommunity Manager

    Hi Baski​,

    Thanks for providing those logs. This is a common issue when installing software on a machine that's behind a corporate proxy.

    The problem is that while you've correctly configured apt to use the proxy, the 1Password installation script (which runs with sudo) doesn't know about those settings. The solution is to pass your proxy settings to the sudo command.

    Here are the steps to resolve this. Just run these commands in your terminal.

    1. Set the proxy variables for your current terminal session. (Be sure to replace http://proxy.yourcompany.com:8080 with your actual proxy address).
      Bash
      export http_proxy="http://proxy.yourcompany.com:8080"
      export https_proxy="http://proxy.yourcompany.com:8080"
    2. Clean up the previous failed installation. This command will fix any packages that were left in a broken state.
      Bash
      sudo apt --fix-broken install
    3. Run the upgrade again using the -E flag. This is the most important step. The -E flag tells sudo to preserve your environment variables (including the proxy settings), allowing the installation script to connect to the internet.
      Bash
      sudo -E apt upgrade

    That should get 1Password installed successfully for you. Let us know if that works!