Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoAPT repo recreated (on update / open)
I'm not sure exactly when this happened, but when updating 1Password through apt, i received messages informing me that the target is configured multiple times.
this occurred because I swapped all ...
FrankyO1P
1Password Team
3 years agoHi @the456gamer,
Thanks for bringing this to our attention. I'd like to ask, do you need any assistance with resolving the multiple target issue?
I understand you would also like to see a comment included in the sources. I'll go ahead and pass along your feedback and this request to the team.
Looking forward to hearing from you.
roy_orbison
6 days agoOccasional Contributor
An updated patch for completely seamless upgrades, and only when supported:
--- a/after-install.sh
+++ b/after-install.sh
@@ -20,11 +20,32 @@
curl -fsSo "$TEMPDIR/1password.pol" https://downloads.1password.com/linux/debian/debsig/1password.pol
# Setup apt repository
- cp "$TEMPDIR/1password.gpg" /usr/share/keyrings/1password-archive-keyring.gpg
- cat > /etc/apt/sources.list.d/1password.list <<-EOM
+ KEYRING=/usr/share/keyrings/1password-archive-keyring.gpg
+ cp "$TEMPDIR/1password.gpg" "$KEYRING"
+ TYPES=deb
+ ARCH=amd64
+ COMPONENTS=main
+ URI=https://downloads.1password.com/linux/debian/$ARCH
+ SOURCES=/etc/apt/sources.list.d/1password.sources
+ LIST=${SOURCES%.*}.list
+ if [ -e "$SOURCES" ] || aptSupportsSources; then
+ cat > "$SOURCES" <<- EOM
# This file is automatically added and configured by the 1Password package. Modifications may be overwritten.
-deb [arch=amd64 signed-by=/usr/share/keyrings/1password-archive-keyring.gpg] https://downloads.1password.com/linux/debian/amd64 ${CHANNEL} main
+Types: $TYPES
+URIs: $URI
+Suites: $CHANNEL
+Components: $COMPONENTS
+Architectures: $ARCH
+Signed-By: $KEYRING
EOM
+ ! [ -e "$LIST" ] || rm "$LIST"
+ else
+ cat > "$LIST" <<- EOM
+# This file is automatically added and configured by the 1Password package. Modifications may be overwritten.
+$TYPES [arch=$ARCH signed-by=$KEYRING] $URI $CHANNEL $COMPONENTS
+EOM
+ fi
+
# Setup debsig verification
mkdir -p /etc/debsig/policies/AC2D62742012EA22/
mv "$TEMPDIR/1password.pol" /etc/debsig/policies/AC2D62742012EA22/1password.pol
@@ -35,6 +56,11 @@
rm -rf "$TEMPDIR"
}
+aptSupportsSources() {
+ # Tests without making changes
+ apt modernize-sources --assume-no >/dev/null 2>&1
+}
+
installRpmChannel() {
case $CHANNEL in
"stable")
v "$TEMPDIR/1password.pol" /etc/debsig/policies/AC2D62742012EA22/1password.pol