본문 바로가기

CentOS/Study

[Linux]Transaction check error

반응형

1. yum 명령어 시 아래와 같은 에러 발생

[root@localhost pcre-8.36]# yum -y install make
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
Resolving Dependencies
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).
--> Running transaction check
---> Package make.x86_64 1:3.82-21.el7 will be updated
---> Package make.x86_64 1:3.82-24.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package              Arch                   Version                         Repository            Size
========================================================================================================
Updating:
 make                 x86_64                 1:3.82-24.el7                   base                 421 k

Transaction Summary
========================================================================================================
Upgrade  1 Package

Total size: 421 k
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  package make-1:3.82-24.el7.x86_64 is already installed

Error Summary
-------------

 

[root@localhost pcre-8.36]# yum update make
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
Resolving Dependencies
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).
--> Running transaction check
---> Package make.x86_64 1:3.82-21.el7 will be updated
---> Package make.x86_64 1:3.82-24.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package              Arch                   Version                         Repository            Size
========================================================================================================
Updating:
 make                 x86_64                 1:3.82-24.el7                   base                 421 k

Transaction Summary
========================================================================================================
Upgrade  1 Package

Total size: 421 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  package make-1:3.82-24.el7.x86_64 is already installed

Error Summary
-------------

 

2. 에러 난 Package 삭제

[root@localhost pcre-8.36]# yum remove make-1:3.82-24.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
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).
--> Running transaction check
---> Package make.x86_64 1:3.82-24.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package             Arch                  Version                       Repository                Size
========================================================================================================
Removing:
 make                x86_64                1:3.82-24.el7                 installed                1.1 M

Transaction Summary
========================================================================================================
Remove  1 Package

Installed size: 1.1 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : 1:make-3.82-24.el7.x86_64                                                            1/1
  Verifying  : 1:make-3.82-24.el7.x86_64                                                            1/1

Removed:
  make.x86_64 1:3.82-24.el7

Complete!

 

3. Package 재설치

[root@localhost pcre-8.36]# yum -y install make
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
Resolving Dependencies
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).
--> Running transaction check
---> Package make.x86_64 1:3.82-21.el7 will be updated
---> Package make.x86_64 1:3.82-24.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package              Arch                   Version                         Repository            Size
========================================================================================================
Updating:
 make                 x86_64                 1:3.82-24.el7                   base                 421 k

Transaction Summary
========================================================================================================
Upgrade  1 Package

Total size: 421 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:make-3.82-24.el7.x86_64                                                            1/2
  Cleanup    : 1:make-3.82-21.el7.x86_64                                                            2/2
  Verifying  : 1:make-3.82-24.el7.x86_64                                                            1/2
  Verifying  : 1:make-3.82-21.el7.x86_64                                                            2/2

Updated:
  make.x86_64 1:3.82-24.el7

Complete!
반응형