Yarn: Yarn Debian ν‚€ 만료 λ‚ μ§œ μ—…λ°μ΄νŠΈ 됨 (EXPKEYSIG 23E7166788B63E1E)

에 λ§Œλ“  2020λ…„ 02μ›” 02일  Β·  30μ½”λ©˜νŠΈ  Β·  좜처: yarnpkg/yarn

λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ ν‘œμ‹œλ˜λŠ” 경우 :

The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>

λ˜λŠ” λ‹€μŒκ³Ό 같이 :

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease  The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>

μ΄λŠ” Yarn λ¦΄λ¦¬μŠ€μ— μ„œλͺ…ν•˜λŠ” 데 μ‚¬μš© 된 GPG ν‚€μ˜ 이전 버전이 μ—¬μ „νžˆ μžˆμŒμ„ μ˜λ―Έν•©λ‹ˆλ‹€. 이 ν‚€μ˜ 만료 λ‚ μ§œλŠ” 2020 λ…„μ—μ„œ 2021 λ…„μœΌλ‘œ μ—°μž₯λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ—…λ°μ΄νŠΈ 된 ν‚€λ₯Ό μ–»μœΌλ €λ©΄ λ‹€μŒμ„ μ‹€ν–‰ν•˜μ‹­μ‹œμ˜€.

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

이것은 λ―Έλž˜μ— μžλ™ν™” 될 κ²ƒμž…λ‹ˆλ‹€.

bug-distrib os-linux

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

λͺ¨λ“  30 λŒ“κΈ€

λ‹€μ‹œ μžλ™ν™”ν•˜λ©΄ λ°°ν¬νŒμ—λŠ” 일반적으둜 μƒˆλ‘œμš΄ ν‚€λ‘œ μ—…λ°μ΄νŠΈ ν•  μˆ˜μžˆλŠ” -keyring νŒ¨ν‚€μ§€κ°€ μžˆμŠ΅λ‹ˆλ‹€.이 νŒ¨ν‚€μ§€λ₯Ό μ‚΄νŽ΄λ³΄κ³  μ‹ΆμŠ΅λ‹ˆκΉŒ? 예 : https://packages.debian.org/buster/debian-archive-keyring

@ dario23 그래, 그게 λ‚΄κ°€ν•˜λ €κ³ ν–ˆλ˜ μΌμ΄μ§€λ§Œ λ‚˜λŠ” 그것에 λŒ€ν•΄ μ΄ν•΄ν•˜μ§€ λͺ»ν–ˆμŠ΅λ‹ˆλ‹€. 우리 μ €μž₯μ†Œμ— yarn-keyring νŒ¨ν‚€μ§€λ₯Ό μΆ”κ°€ν•˜κ³ , yarn νŒ¨ν‚€μ§€μ˜ μ’…μ†μ„±μœΌλ‘œ μΆ”κ°€ν•˜κ³  (λͺ¨λ“  μ‚¬λžŒμ΄ 그것을 가지고 μžˆλŠ”μ§€ ν™•μΈν•˜κΈ° μœ„ν•΄), ν‚€λ₯Ό λ³€κ²½ν•  λ•Œλ§ˆλ‹€ ν•΄λ‹Ή νŒ¨ν‚€μ§€λ₯Ό μ—…λ°μ΄νŠΈ ν•  수 μžˆλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

κ°μ‚¬ν•©λ‹ˆλ‹€ @alexcdot! 이 λͺ…령은 νŒ¨ν‚€μ§€ μ €μž₯μ†Œ κ΄€λ¦¬μžκ°€ 곡개 ν‚€λ₯Ό Ubuntu ν‚€ μ„œλ²„μ— μ—…λ‘œλ“œν•˜λŠ” 데 μ˜μ‘΄ν•˜μ§€λ§Œ λŒ€λΆ€λΆ„μ€ κ·Έλ ‡κ²Œν•˜λ―€λ‘œ 일반적으둜 λ¬Έμ œκ°€λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. :)

κ°μ‚¬ν•©λ‹ˆλ‹€! λΏ‘λΏ‘

_sudo apt-key add -_ λͺ…λ Ή 후에 아무 일도 μΌμ–΄λ‚˜μ§€ μ•ŠλŠ” μ΄μœ λŠ” λ¬΄μ—‡μž…λ‹ˆκΉŒ? 벌써 λͺ‡ 뢄을 기닀리고 μžˆμŠ΅λ‹ˆλ‹€. μ‹œμŠ€ν…œμ΄ 무언가λ₯Ό κΈ°λ‹€λ¦¬κ³ μžˆλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€ ...

image

@Shekelme λͺ…령을 λΆ„ν• ν•˜μ—¬ μž…λ ₯을 기닀리고 μžˆμŠ΅λ‹ˆλ‹€. λͺ…령은 curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

λŒ€λ‹¨νžˆ κ°μ‚¬ν•©λ‹ˆλ‹€. 이제 λ„μ›€μ΄λ˜μ—ˆμŠ΅λ‹ˆλ‹€!

λ°λΉ„μ•ˆμ—μ„œ 1.22.0을 μ‚¬μš©ν•  수 μžˆμ–΄μ•Όν•©λ‹ˆκΉŒ?

@millette μ£„μ†‘ν•©λ‹ˆλ‹€. Yarn v1 μ‚¬μ΄νŠΈκ°€ classic.yarnpkg.com으둜 μ΄λ™ν–ˆμ„ λ•Œ μžλ™ μ—…λ°μ΄νŠΈ μŠ€ν¬λ¦½νŠΈκ°€ μ€‘λ‹¨λ˜μ—ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” 그것을 고치고 1.22.0을 배포 ν•  것이닀!

@millette μ§€κΈˆ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€ : https://github.com/yarnpkg/releases/commit/3f7f2c766d64da64f41ff62d63c126112981ee63

λ‚΄ ν…ŒμŠ€νŠΈ λ¨Έμ‹  쀑 ν•˜λ‚˜μ—μ„œ ν…ŒμŠ€νŠΈν–ˆλŠ”λ° μ œλŒ€λ‘œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

% sudo apt install yarn
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  yarn
1 upgraded, 0 newly installed, 0 to remove and 323 not upgraded.
Need to get 891 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 http://dl.yarnpkg.com/debian stable/main amd64 yarn all 1.22.0-1 [891 kB]
Fetched 891 kB in 0s (2,328 kB/s)
Reading changelogs... Done
(Reading database ... 261276 files and directories currently installed.)
Preparing to unpack .../archives/yarn_1.22.0-1_all.deb ...
Unpacking yarn (1.22.0-1) over (1.21.1-1) ...
Setting up yarn (1.22.0-1) ...

15:19 daniel<strong i="9">@vps03</strong> /home/daniel
% yarn --version
1.22.0

λ‚˜λ„ κ°μ‚¬ν•©λ‹ˆλ‹€ @ Daniel15

Windows 10μ—μ„œ Ubuntuμ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.
Linux AVPHR-3HD87Y2-L 4.4.0-17134-Microsoft # 1130-Microsoft Thu Nov 07 15:21:00 PST 2019 x86_64 x86_64 x86_64 GNU / Linux.

κ°μ‚¬ν•©λ‹ˆλ‹€ @ Daniel15

해결책이 ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

λ‹€μŒμœΌλ‘œ 잘 μ—…λ°μ΄νŠΈλ˜μ—ˆμŠ΅λ‹ˆλ‹€. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key μΆ”κ°€-

이 λ¬Έμ œλŠ” μΆ©λΆ„νžˆ μ˜€λž«λ™μ•ˆ μ—΄λ € μžˆμœΌλ―€λ‘œμ΄ 문제λ₯Ό μ’…λ£Œν•©λ‹ˆλ‹€.

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

@alexcdot 의 ꢌμž₯ μˆ˜μ • μ‹œκ°„μ΄ 초과되면 포트 80을 톡해 hkpλ₯Ό κ°•μ œλ‘œ μ‹œλ„ν•˜μ‹­μ‹œμ˜€.

sudo apt-key adv --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

이 λͺ…령은 AWS EC2 Ubuntu 18.04μ—μ„œ λ†€λžλ„λ‘ μž‘λ™ν•©λ‹ˆλ‹€.

ubuntu<strong i="9">@demo</strong>:~$ sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
Executing: /tmp/apt-key-gpghome.yhsIc98R5A/gpg.1.sh --refresh-keys --keyserver keyserver.ubuntu.com
gpg: refreshing 6 keys from hkp://keyserver.ubuntu.com
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: key 871920D1991BC93C: "Ubuntu Archive Automatic Signing Key (2018) <[email protected]>" not changed
gpg: key D94AA3F0EFE21092: 2 duplicate signatures removed
gpg: key D94AA3F0EFE21092: 62 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>" 59 new signatures
gpg: key 3B4FE6ACC0B21F32: 21 signatures not checked due to missing keys
gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" 18 new signatures
gpg: key 4F4EA0AAE5267A6C: "Launchpad PPA for OndΕ™ej SurΓ½" not changed
gpg: key 4F4EA0AAE5267A6C: "Launchpad PPA for OndΕ™ej SurΓ½" not changed
gpg: key 1646B01B86E50310: 3 signatures not checked due to missing keys
gpg: key 1646B01B86E50310: "Yarn Packaging <[email protected]>" 5 new signatures
gpg: Total number processed: 6
gpg:              unchanged: 3
gpg:         new signatures: 82
Executing: /tmp/apt-key-gpghome.N4svD19CdM/gpg.1.sh --refresh-keys --keyserver keyserver.ubuntu.com:80
gpg: refreshing 11 keys from keyserver.ubuntu.com:80
gpg: keyserver refresh failed: No keyserver available

@joesixpack Ubuntu ν‚€ μ„œλ²„μ— λŒ€ν•œ μ—°κ²° λ¬Έμ œκ°€ μžˆκ±°λ‚˜ λ‹€μš΄λ˜μ—ˆμŠ΅λ‹ˆλ‹€ (예 : μœ μ§€ 관리). λ‹€λ₯Έ ν‚€ μ„œλ²„λ₯Ό μ‚¬μš©ν•΄ λ³Ό 수 μžˆμŠ΅λ‹ˆλ‹€.

μ •ν™•ν•œ 였λ₯˜ λ©”μ‹œμ§€ λ•Œλ¬Έμ— 여기에 μ™”μŠ΅λ‹ˆλ‹€. Raspbian μ‚¬μš©. λͺ‡ λΆ„ 전에 @ Daniel15 의 μ œμ•ˆμ„ μ‹œλ„ν•˜κ³  λ‹€μŒμ„ μ–»μ—ˆμŠ΅λ‹ˆλ‹€ ( sudo 및 μ œμ™Έ).

:~ $ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
gpg: no valid OpenPGP data found.

μ–΄λ–€ μ œμ•ˆ?

@luisfrocha λŠ” ca-certificates νŒ¨ν‚€μ§€κ°€ μ„€μΉ˜λ˜μ–΄ μžˆλŠ”μ§€ ν™•μΈν•˜μ‹­μ‹œμ˜€. 그렇지 μ•ŠμœΌλ©΄ λͺ¨λ“  SSL / TLS 연결이 μ‹€νŒ¨ν•©λ‹ˆλ‹€.

ν—‰ν—‰

:~ $ sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20190110).
0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.

κΈ€μŽ„μš”, μ €λŠ” μ›ν•˜μ§€ μ•Šμ•˜μ§€λ§Œ κ²°κ΅­ν•΄μ•Όν–ˆμŠ΅λ‹ˆλ‹€. curl λͺ…령을 μˆ˜ν–‰ν•˜κ³  -k ν”Œλž˜κ·Έλ₯Ό μΆ”κ°€ν–ˆλŠ”λ° μ œλŒ€λ‘œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

이것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€. 감사 :)

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

κ°μ‚¬ν•©λ‹ˆλ‹€

λ‚˜λŠ” 싀을 μ„€μΉ˜ν•˜λ €κ³  λ…Έλ ₯ν•˜κ³  있으며 μ£Όμš” λ¬Έμ œλ„ λ°œμƒν•©λ‹ˆλ‹€.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - 은 λ‹€μŒκ³Ό 같은 좜λ ₯을 μ œκ³΅ν•©λ‹ˆλ‹€.

gpg: invalid key resource URL '/tmp/apt-key-gpghome.gq2UKui5Xm/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 17
gpg:       skipped new keys: 17

λ‹€μŒ sudo apt update && sudo apt install yarn 좜λ ₯

W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

이미 sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com μ‹œλ„ν–ˆμ§€λ§Œ λΉ„μŠ·ν•œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

gpg: invalid key resource URL '/tmp/apt-key-gpghome.FtkPocMoE3/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 16
gpg:       skipped new keys: 16

무엇이 잘λͺ» 될 수 μžˆλŠ”μ§€ μ–΄λ–€ 아이디어라도 λŒ€λ‹¨νžˆ κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€. μ €λŠ” νŒ¨ν‚€μ§€ κ΄€λ¦¬μžμ— λŒ€ν•œ κ²½ν—˜μ΄ λ§Žμ§€ μ•ŠμœΌλ©° μœ„μ˜ μ œμ•ˆμ΄ λ„μ›€μ΄λ˜μ§€ μ•ŠλŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

μ΅œμ‹  정보:
μ£„μ†‘ν•©λ‹ˆλ‹€. ν‚€ 였λ₯˜κ°€ 싀이 μ•„λ‹Œ λ‹€λ₯Έ νŒ¨ν‚€μ§€μ—μ„œ λ°œμƒν•œ 것 κ°™μŠ΅λ‹ˆλ‹€. 이제 잘 μ„€μΉ˜λ˜μ—ˆμŠ΅λ‹ˆλ‹€!

@LukasSchaefer κ·Έ 였λ₯˜μ˜ GPG ν‚€κ°€ Yarn GPG 킀라고 μƒκ°ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μ΄λŸ¬ν•œ ν‚€μ˜ μš©λ„λ₯Ό νŒŒμ•…ν•˜κ³  μˆ˜μ •ν•΄μ•Ό ν•  μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

sudo apt update μ—μ„œ 얻은 전체 좜λ ₯은 λ¬΄μ—‡μž…λ‹ˆκΉŒ?

@ Daniel15 κ·Έ νžŒνŠΈμ— κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€. ν‚€ 였λ₯˜κ°€ λ‹€λ₯Έ νŒ¨ν‚€μ§€μ—μ„œ μ˜¨λ‹€λŠ” 사싀을 μ™„μ „νžˆ λ†“μ³€μŠ΅λ‹ˆλ‹€. 이 였λ₯˜λ₯Ό μˆ˜μ • ν•œ ν›„ μœ„μ—μ„œ μ–ΈκΈ‰ ν•œ λͺ…λ ΉμœΌλ‘œ 싀이 μ œλŒ€λ‘œ μ„€μΉ˜λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ£„μ†‘ν•©λ‹ˆλ‹€!

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com 은 (λŠ”)이 λ¬Έμ œκ°€μžˆλŠ” μ—¬λŸ¬ νŒ¨ν‚€μ§€μ— λŒ€ν•΄μ΄ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ μž‘λ™ν•©λ‹ˆλ‹€.

그것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν•©λ‹ˆλ‹€. κ°μ‚¬ν•©λ‹ˆλ‹€!

λ‚˜μ—κ²Œλ„ ν•΄κ²°λ˜μ—ˆμ§€λ§Œ μ†”λ£¨μ…˜μ„ ν™•μΈν•˜λŠ” 데 μ•½κ°„μ˜ μ‹œκ°„μ΄ κ±Έλ ΈμŠ΅λ‹ˆλ‹€. κ³ λ§ˆμ›Œ!

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰