본문 바로가기

Linux

There are unfinished transactions remaining. You might consider running yum-complete-transaction 에러 해결 방법

There are unfinished transactions remaining. You might consider running yum-complete-transaction 에러 해결 방법

[실행 환경]

- CentOS 7 최소설치

 

 

[에러 내용]

There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).

 

 

[구글 번역]

완료되지 않은 거래가 남아 있습니다. yum-complete-transaction 또는 "yum-complete-transaction --cleanup-only" 및 "yum history redo last"를 먼저 실행하여 완료하는 것을 고려할 수 있습니다. 그래도 작동하지 않으면 패키지를 직접 제거/설치해야 합니다(패키지 정리가 도움이 될 수 있음).

 

 

[발생 원인]

yum 명령을 사용하여 패키지를 설치하는 도중에 중단된 transaction이 남아있음

 

 

[해결 방법]

- CentOS 7 최소 설치이기 때문에 기본적으로 yum-complete-transaction 명령어를 사용할 수 없음

- yum-complete-transaction 명령어는 yum-utils 패키지 설치 후 사용 가능

yum install yum-utils
yum-complete-transaction --cleanup-only

 

transaction이 깔끔하게 정리되고 yum 명령어를 통해 다시 패키지를 설치하면 해당 에러는 사라지는 것을 확인할 수 있음!