Skip to content

Commit 1406321

Browse files
committed
nodejs, rails7: workaround for signature verification failure
1 parent 5ab66fe commit 1406321

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

nodejs/build/scripts/03-yarn

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ echo "deb [signed-by=/etc/apt/keyrings/yarn-archive-keyring.asc] https://dl.yarn
1414
if etckeeper unclean 1>/dev/null 2>/dev/null; then
1515
etckeeper commit "add apt-line for yarn"
1616
fi
17-
apt-get update
17+
18+
## workaround: use gpgv because sqv fails signature verification
19+
##
20+
## --------------------------------------------------------------------------------
21+
## $ sudo apt-get update
22+
## Hit:1 http://deb.debian.org/debian sid InRelease
23+
## Get:2 http://dl.yarnpkg.com/debian stable InRelease
24+
## Err:2 http://dl.yarnpkg.com/debian stable InRelease
25+
## Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad: The subkey is not live because: Expired on 2023-01-24T19:06:41Z
26+
## Reading package lists... Done
27+
## W: OpenPGP signature verification failed: http://dl.yarnpkg.com/debian stable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad: The subkey is not live because: Expired on 2023-01-24T19:06:41Z
28+
## E: The repository 'http://dl.yarnpkg.com/debian stable InRelease' is not signed.
29+
## N: Updating from such a repository can't be done securely, and is therefore disabled by default.
30+
## N: See apt-secure(8) manpage for repository creation and user configuration details.
31+
## N: Some sources can be modernized. Run 'apt modernize-sources' to do so.
32+
## --------------------------------------------------------------------------------
33+
##
34+
apt-get install -y --no-install-recommends gpgv
35+
apt-get update -o Apt::Key::GPGVCommand=1
1836
apt-get install -y --no-install-recommends yarn
1937

38+
sed -i -e 's/^/# /g' /etc/apt/sources.list.d/yarn.list
39+
apt-get remove -y --purge --auto-remove gpgv

rails7/build/scripts/03-yarn

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ echo "deb [signed-by=/etc/apt/keyrings/yarn-archive-keyring.asc] https://dl.yarn
1414
if etckeeper unclean 1>/dev/null 2>/dev/null; then
1515
etckeeper commit "add apt-line for yarn"
1616
fi
17-
apt-get update
17+
18+
## workaround: use gpgv because sqv fails signature verification
19+
##
20+
## --------------------------------------------------------------------------------
21+
## $ sudo apt-get update
22+
## Hit:1 http://deb.debian.org/debian sid InRelease
23+
## Get:2 http://dl.yarnpkg.com/debian stable InRelease
24+
## Err:2 http://dl.yarnpkg.com/debian stable InRelease
25+
## Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad: The subkey is not live because: Expired on 2023-01-24T19:06:41Z
26+
## Reading package lists... Done
27+
## W: OpenPGP signature verification failed: http://dl.yarnpkg.com/debian stable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 72ECF46A56B4AD39C907BBB71646B01B86E50310 is bad: The subkey is not live because: Expired on 2023-01-24T19:06:41Z
28+
## E: The repository 'http://dl.yarnpkg.com/debian stable InRelease' is not signed.
29+
## N: Updating from such a repository can't be done securely, and is therefore disabled by default.
30+
## N: See apt-secure(8) manpage for repository creation and user configuration details.
31+
## N: Some sources can be modernized. Run 'apt modernize-sources' to do so.
32+
## --------------------------------------------------------------------------------
33+
##
34+
apt-get install -y --no-install-recommends gpgv
35+
apt-get update -o Apt::Key::GPGVCommand=1
1836
apt-get install -y --no-install-recommends yarn
1937

38+
sed -i -e 's/^/# /g' /etc/apt/sources.list.d/yarn.list
39+
apt-get remove -y --purge --auto-remove gpgv

0 commit comments

Comments
 (0)