IT/linux

우분투 리눅스 'E: 잠금 파일 /var/lib/dpkg/lock-frontend 파일을 열 수 없습니다 - open (13: 허가 거부)'

멘탈오브스틸 2024. 12. 3. 10:44
반응형

사용하던 우분투를 업테이크 하려고 명령어를 날렸다.

 

# sudo apt update && apt upgrade

 

하지만 돌아오는 것은...

 

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nginx.org/packages/mainline/ubuntu focal InRelease: 다음 서명이 올바르지 않습니다: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com></signing-key@nginx.com>
W: http://nginx.org/packages/mainline/ubuntu/dists/focal/InRelease 파일을 받는데 실패했습니다  다음 서명이 올바르지 않습니다: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com></signing-key@nginx.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: 잠금 파일 /var/lib/dpkg/lock-frontend 파일을 열 수 없습니다 - open (13: 허가 거부)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

 

잘 되던게 왜 안돼지?

 

정답은 맨 마지막 ' are you root?' 에 있었다.

 

su - root 하고 root 권한으로 시도 하니 잘 되었다.

sudo apt update && apt upgrade

 

반응형

'IT > linux' 카테고리의 다른 글

PHP 재시작 방법  (0) 2024.05.28
'ukuu'를 이용한 우분투 커널 업데이트  (0) 2019.08.14
db가 죽은줄 알았더니... 아니었던 삽질  (0) 2018.09.07