오라클 클라우드에 CentOS 8 stream 버전을 설치하고 yum 명령어를 사용하니 아래와 같은 에러 메시지가 표시되네요~

패키지 설치해주는 yum 명령어가 8버전 부터는 dnf 로 바뀌었나봅니다.

좀더 확실하게 관리를 해준다고 하네요.

 

[root@ivps ~]# dnf clean all
Failed loading plugin "osmsplugin": No module named 'librepo'
58 files removed
[root@ivps ~]# dnf install python3-librepo -y
Failed loading plugin "osmsplugin": No module named 'librepo'
CentOS Stream 8 - AppStream                      16 MB/s |  27 MB     00:01
CentOS Stream 8 - BaseOS                         15 MB/s |  26 MB     00:01
CentOS Stream 8 - Extras                        290  B/s |  18 kB     01:02
CentOS Stream 8 - Extras common packages         80  B/s | 5.2 kB     01:05
Extra Packages for Enterprise Linux 8 - x86_64  572 kB/s |  13 MB     00:23
Extra Packages for Enterprise Linux 8 - Next -  160 kB/s | 179 kB     00:01
Dependencies resolved.
================================================================================
 Package                Architecture  Version               Repository     Size
================================================================================
Installing:
 python3-librepo        x86_64        1.14.2-4.el8          baseos         54 k
Upgrading:
 librepo                x86_64        1.14.2-4.el8          baseos         93 k

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

Total download size: 147 k
Downloading Packages:
(1/2): python3-librepo-1.14.2-4.el8.x86_64.rpm  2.2 MB/s |  54 kB     00:00
(2/2): librepo-1.14.2-4.el8.x86_64.rpm          3.5 MB/s |  93 kB     00:00
--------------------------------------------------------------------------------
Total                                           399 kB/s | 147 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Upgrading        : librepo-1.14.2-4.el8.x86_64                            1/3
  Installing       : python3-librepo-1.14.2-4.el8.x86_64                    2/3
  Cleanup          : librepo-1.14.2-3.el8.x86_64                            3/3
  Running scriptlet: librepo-1.14.2-3.el8.x86_64                            3/3
  Verifying        : python3-librepo-1.14.2-4.el8.x86_64                    1/3
  Verifying        : librepo-1.14.2-4.el8.x86_64                            2/3
  Verifying        : librepo-1.14.2-3.el8.x86_64                            3/3

Upgraded:
  librepo-1.14.2-4.el8.x86_64
Installed:
  python3-librepo-1.14.2-4.el8.x86_64

Complete!
[root@ivps ~]# dnf clean all
49 files removed

 

버전이 바뀔때 마다 적응을 해야하는군요~

 

반응형
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

CentOS yum install 메모리 에러


vps 서버에 php mysql 을 설치하려고 하는데 아래 처럼 에러가 발생하네요~

아무래도 메모리 부족인 것 같습니다.

Error downloading packages:

  libX11-common-1.6.5-1.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  libX11-1.6.5-1.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-cli-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-mbstring-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-pdo-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  libzip-0.10.1-8.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  apr-util-1.5.2-6.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  perl-Data-Dumper-2.145-3.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-gd-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  autoconf-2.69-11.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  libXpm-3.5.12-1.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-mysql-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-fpm-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-devel-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  m4-1.4.16-10.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  mailcap-2.1.41-2.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  perl-Thread-Queue-3.02-2.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  php-common-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  automake-1.13.4-3.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  httpd-tools-2.4.6-80.el7.centos.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  libxcb-1.12-1.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  libXau-1.0.8-2.1.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  httpd-2.4.6-80.el7.centos.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  t1lib-5.1.2-14.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  apr-1.4.8-3.el7_4.1.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  libjpeg-turbo-1.2.90-5.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  php-5.4.16-45.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

  perl-Test-Harness-3.28-3.el7.noarch: [Errno 5] [Errno 12] Cannot allocate memory

  2:libpng-1.5.13-7.el7_2.x86_64: [Errno 5] [Errno 12] Cannot allocate memory

https://ivps.tistory.com/283 여기를 참고해서 스왑 메모리가 없다면 추가해 주면 됩니다.


스왑메모리를 1기가 정도 추가해주고 부터는 설치가 잘 되는군요~



반응형
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

CentOS 7.x yum update Error: rpmdb open failed



얼마전 디스크 용량이 꽉 차더니 아래처럼 yum update 시 에러가 나는군요~


[root@conoha ~]# yum update

error: db5 error(11) from dbenv->open: Resource temporarily unavailable

error: cannot open Packages index using db5 - Resource temporarily unavailable (11)

error: cannot open Packages database in /var/lib/rpm

CRITICAL:yum.main:


Error: rpmdb open failed


이럴때는 아래처럼 하면 해결이 됩니다.


[root@conoha /]# rpm --rebuilddb

[root@conoha /]# yum update

Loaded plugins: fastestmirror, langpacks

Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

base                                                     | 3.6 kB     00:00

epel/x86_64/metalink                                     | 3.8 kB     00:00

epel                                                     | 4.3 kB     00:00

extras                                                   | 3.4 kB     00:00

updates                                                  | 3.4 kB     00:00

(1/4): epel/x86_64/updateinfo                              | 807 kB   00:11

(2/4): extras/7/x86_64/primary_db                          | 167 kB   00:07

(3/4): epel/x86_64/primary_db                              | 4.7 MB   00:29

(4/4): updates/7/x86_64/primary_db                         | 5.6 MB   02:36

Determining fastest mirrors

 * base: www.ftp.ne.jp

 * epel: ftp.riken.jp

 * extras: www.ftp.ne.jp

 * updates: www.ftp.ne.jp

Resolving Dependencies


이제 잘 되는군요~


반응형
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

CentOS 6.x yum repository 문제로 동작이 안될때



yum update 했더니 아래 처럼 에러메시지가 나오는 경우가 있습니다.


# yum update

... 생략

http://ftp.daum.net/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

Trying other mirror.

To address this issue please refer to the below knowledge base article


https://access.redhat.com/articles/1320623


If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.


Error: Cannot retrieve repository metadata (repomd.xml) for repository: daum_base. Please verify its path and try again


daum 쪽 레포가 문제가 생긴거 같네요. Daum.repo 를 삭제합니다.


# ls -l /etc/yum.repos.d

-rw-r--r-- 1 root root 1991 Mar 28 19:25 CentOS-Base.repo

-rw-r--r-- 1 root root  647 Mar 28 19:25 CentOS-Debuginfo.repo

-rw-r--r-- 1 root root  289 Mar 28 19:25 CentOS-fasttrack.repo

-rw-r--r-- 1 root root  630 Mar 28 19:25 CentOS-Media.repo

-rw-r--r-- 1 root root 7989 Mar 28 19:25 CentOS-Vault.repo

-rw-r--r-- 1 root root  365 Jun 19  2014 Daum.repo

-rw-r--r-- 1 root root  957 Nov  5  2012 epel.repo

-rw-r--r-- 1 root root 1056 Nov  5  2012 epel-testing.repo

-rw-r--r-- 1 root root  739 Mar 20  2013 mirrors-rpmforge

-rw-r--r-- 1 root root  717 Mar 20  2013 mirrors-rpmforge-extras

-rw-r--r-- 1 root root  728 Mar 20  2013 mirrors-rpmforge-testing

-rw-r--r-- 1 root root 1128 Mar 20  2013 rpmforge.repo


# rm -rf Daum.repo


그리고 yum 캐시폴더도 삭제합니다.


# rm -rf /var/cache/yum/x86_64


# yum clean all


# yum update


이제 잘 됩니다.


반응형
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,