오래전 이야기/Server

fefora에서 yum update시 에러 날때.

리눅스 엔지니어였던 2008. 9. 15. 14:04

[root@test ~]# yum update bzip2.i386

You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
    rpm --import public.gpg.key
For more information contact your distribution or package provider.


위와같은 에러발생시


[root@test ~]# rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora


해준후 다시 업데이트를 실행하면


[root@test ~]# yum update bzip2*
Setting up Update Process
Setting up Repo:  base
repomd.xml                100% |=========================| 1.1 kB    00:00    
Setting up Repo:  updates-released
repomd.xml                100% |=========================|  951 B    00:00    
Reading repository metadata in from local files
base      : ################################################## 2622/2622
updates-re: ################################################## 1019/1019
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for bzip2-libs to pack into transaction set.
bzip2-libs-1.0.2-13.FC3.1 100% |=========================| 5.6 kB    00:00    
---> Package bzip2-libs.i386 0:1.0.2-13.FC3.1 set to be updated
---> Downloading header for bzip2 to pack into transaction set.
bzip2-1.0.2-13.FC3.1.i386 100% |=========================| 8.1 kB    00:00    
---> Package bzip2.i386 0:1.0.2-13.FC3.1 set to be updated
---> Downloading header for bzip2-devel to pack into transaction set.
bzip2-devel-1.0.2-13.FC3. 100% |=========================| 5.5 kB    00:00    
---> Package bzip2-devel.i386 0:1.0.2-13.FC3.1 set to be updated
--> Running transaction check

Dependencies Resolved
Transaction Listing:
  Update: bzip2.i386 0:1.0.2-13.FC3.1
  Update: bzip2-devel.i386 0:1.0.2-13.FC3.1
  Update: bzip2-libs.i386 0:1.0.2-13.FC3.1
Is this ok [y/N]: y
Downloading Packages:
bzip2-libs-1.0.2-13.FC3.1 100% |=========================|  33 kB    00:00    
bzip2-1.0.2-13.FC3.1.i386 100% |=========================|  47 kB    00:00    
bzip2-devel-1.0.2-13.FC3. 100% |=========================|  35 kB    00:00    
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating: bzip2-libs 100 % done 1/6
Updating: bzip2 100 % done 2/6
Updating: bzip2-devel 100 % done 3/6
Completing update for bzip2-libs  - 4/6
Completing update for bzip2  - 5/6
Completing update for bzip2-devel  - 6/6

Updated: bzip2.i386 0:1.0.2-13.FC3.1 bzip2-devel.i386 0:1.0.2-13.FC3.1 bzip2-libs.i386 0:1.0.2-13.FC3.1
Complete!

정상적으로 실행이된다.


----------------------

2006.10.26


Fedora 5에서는 자동적으로 키를 불러오네요. 점점 편해지는..ㅎㅎ


warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Public key for vim-minimal-7.0.042-0.fc5.i386.rpm is not installed
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>"
Is this ok [y/N]: y
Key imported successfully