STUDY
MSYS2 `pacman -Syu` error 본문
1. MSYS2 설치 과정의 문제 해결
MSYS2를 설치한 후에 `packman -Syu` 명령으로 업데이트를 하자니 다음과 같은 에러가 계속 뜬다.
$ pacman -Syu
error: mingw32: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: mingw64: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: msys: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
:: Synchronizing package databases...
mingw32 452.7 KiB 828K/s 00:01 [#####################] 100%
mingw32.sig 119.0 B 0.00B/s 00:00 [#####################] 100%
error: mingw32: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
mingw64 454.9 KiB 1267K/s 00:00 [#####################] 100%
mingw64.sig 119.0 B 0.00B/s 00:00 [#####################] 100%
error: mingw64: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
msys 190.6 KiB 12.4M/s 00:00 [#####################] 100%
msys.sig 119.0 B 0.00B/s 00:00 [#####################] 100%
error: msys: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: failed to update msys (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases
검색을 해보니 다음의 명령을 차례로 실행한 후에 다시 해보니 된다.
pacman-key --init
pacman-key --populate msys2
pacman-key --refresh-keys
다음의 명령들을 차례로 실행한 후에, MYSY2 설치를 마친다.
$ pacman -Syu
$ pacman -Su
2. 의문들
- 만일 Cygwin을 이미 설치한 상태라면, MSYS2와 충돌하지 않을까?
- 만일 Cygwin과 MSYS2 모두에서 gcc를 설치하였다면, 그럼 명령창에서 gcc를 실행이 될까, 실행이 된다면 그 gcc는 Cygwin인가 아니면 MSYS2의 것인가?
'c' 카테고리의 다른 글
Pointer to 2-D Character Array, Type Conversion (0) | 2020.04.02 |
---|---|
raylib: GUI programming library (0) | 2020.02.18 |
Tiny C Compiler + vscode (0) | 2020.02.12 |
Installing C Compilers in Windows (0) | 2019.12.02 |
while(!feof(FILE *fp)) (0) | 2019.06.06 |
Comments