패키지가 있어야 할 때 YUM은 "패키지 XXX 없음"을 표시합니다.

패키지가 있어야 할 때 YUM은 "패키지 XXX 없음"을 표시합니다.

지난 며칠 동안 동일한 라이브 USB에서 Centos 7을 두 번 다시 설치했습니다.

처음에는 다음과 같은 (일반적인) 방식으로 필요한 여러 패키지를 설치했습니다. sudo yum install XXX여기서 XXX패키지는 ntfs-3g, qemu또는 입니다 geany. 이번에 받았어요No package XXX available.

내가 말했듯이, 나는 같은 컴퓨터에서 같은 라이브 USB를 사용하고 있습니다. 나는 이것을 sudo yum update두 번 실행했다고 확신합니다(여러 커널 버전을 설치했기 때문에 확실히 이 설치를 수행했습니다).

다음은 도움이 될 수 있는 몇 가지 정보입니다.

센토스 버전

$ cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core) 

활성화된 저장소

$ yum repolist enabled
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: mirror.hmc.edu
repo id                             repo name                             status
base/7/x86_64                       CentOS-7 - Base                       9,007
extras/7/x86_64                     CentOS-7 - Extras                       264
updates/7/x86_64                    CentOS-7 - Updates                    1,213
repolist: 10,484

장황한 것 빼고는 똑같습니다.

$ yum repolist enabled -v
Loading "fastestmirror" plugin
Loading "langpacks" plugin
Adding en_US to language list
Config time: 0.008
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: mirror.hmc.edu
Setting up Package Sacks
pkgsack time: 0.004
Repo-id      : base/7/x86_64
Repo-name    : CentOS-7 - Base
Repo-revision: 1449700451
Repo-updated : Wed Dec  9 14:35:45 2015
Repo-pkgs    : 9,007
Repo-size    : 6.5 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
Repo-baseurl : http://centos.sonn.com/7.2.1511/os/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Sun Apr  3 13:07:31 2016)
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id      : extras/7/x86_64
Repo-name    : CentOS-7 - Extras
Repo-revision: 1459508613
Repo-updated : Fri Apr  1 04:03:51 2016
Repo-pkgs    : 264
Repo-size    : 704 M
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock
Repo-baseurl : http://mirror.tocici.com/centos/7.2.1511/extras/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Sun Apr  3 13:07:31 2016)
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id      : updates/7/x86_64
Repo-name    : CentOS-7 - Updates
Repo-revision: 1459456033
Repo-updated : Thu Mar 31 13:30:30 2016
Repo-pkgs    : 1,213
Repo-size    : 3.3 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock
Repo-baseurl : http://mirror.hmc.edu/centos/7.2.1511/updates/x86_64/ (9 more)
Repo-expire  : 21,600 second(s) (last: Sun Apr  3 13:07:31 2016)
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 10,484

모든 창고

$ yum repolist all
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: mirror.hmc.edu
repo id                         repo name                         status
C7.0.1406-base/x86_64           CentOS-7.0.1406 - Base            disabled
C7.0.1406-centosplus/x86_64     CentOS-7.0.1406 - CentOSPlus      disabled
C7.0.1406-extras/x86_64         CentOS-7.0.1406 - Extras          disabled
C7.0.1406-fasttrack/x86_64      CentOS-7.0.1406 - CentOSPlus      disabled
C7.0.1406-updates/x86_64        CentOS-7.0.1406 - Updates         disabled
C7.1.1503-base/x86_64           CentOS-7.1.1503 - Base            disabled
C7.1.1503-centosplus/x86_64     CentOS-7.1.1503 - CentOSPlus      disabled
C7.1.1503-extras/x86_64         CentOS-7.1.1503 - Extras          disabled
C7.1.1503-fasttrack/x86_64      CentOS-7.1.1503 - CentOSPlus      disabled
C7.1.1503-updates/x86_64        CentOS-7.1.1503 - Updates         disabled
base/7/x86_64                   CentOS-7 - Base                   enabled: 9,007
base-debuginfo/x86_64           CentOS-7 - Debuginfo              disabled
base-source/7                   CentOS-7 - Base Sources           disabled
c7-media                        CentOS-7 - Media                  disabled
centosplus/7/x86_64             CentOS-7 - Plus                   disabled
centosplus-source/7             CentOS-7 - Plus Sources           disabled
cr/7/x86_64                     CentOS-7 - cr                     disabled
extras/7/x86_64                 CentOS-7 - Extras                 enabled:   264
extras-source/7                 CentOS-7 - Extras Sources         disabled
fasttrack/7/x86_64              CentOS-7 - fasttrack              disabled
updates/7/x86_64                CentOS-7 - Updates                enabled: 1,213
updates-source/7                CentOS-7 - Updates Sources        disabled
repolist: 10,484

지니를 찾고 있어요

yum search geany
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: mirror.hmc.edu
Warning: No matches found for: geany
No matches found

qemu 검색

$ yum search qemu
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: mirror.hmc.edu
============================== N/S matched: qemu ===============================
centos-release-qemu-ev.noarch : QEMU Enterprise Virtualization packages from the
                              : CentOS Virtualization SIG repository
ipxe-roms-qemu.noarch : Network boot loader roms supported by QEMU, .rom format
libvirt-daemon-driver-qemu.x86_64 : Qemu driver plugin for the libvirtd daemon
qemu-guest-agent.x86_64 : QEMU guest agent
qemu-img.x86_64 : QEMU command line tool for manipulating disk images
qemu-kvm.x86_64 : QEMU is a FAST! processor emulator
qemu-kvm-common.x86_64 : QEMU common files needed by all QEMU targets
libvirt-lock-sanlock.x86_64 : Sanlock lock manager plugin for QEMU driver
qemu-kvm-tools.x86_64 : KVM debugging and diagnostics tools

  Name and summary matches only, use "search all" for everything.

이것은 몇 가지 히트작이 있지만 yum install qemu작동하고 많은 qemu 패키지를 설치한 것을 기억합니다.

설치하는 중qemu

$ sudo yum install qemu
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * extras: mirror.tocici.com
 * updates: centos.eecs.wsu.edu
No package qemu available.
Error: Nothing to do

아이러니하게도 이 모든 것 때문에 비밀번호 관리자 종속성을 해결할 수 없어 SE 계정에 로그인할 수 없습니다.

저장소를 추가/활성화하는 것만큼 간단하게 이 문제를 해결할 수 있나요?

답변1

qemuEPEL에는 패키지가 있습니다(Enterprise Linux용 추가 패키지). 리포지토리를 나열할 때 CentOS는 "Extras"로 표시되지 않습니다.

RPM 파인더는 EPEL에 있는지 확인하는 데 유용합니다.

관련 정보