Error: Package: 2:nodejs-12.16.1-1nodesource.x86_64 on centos 6

#error
[root@localhost my-project]#  yum install -y nodejs
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: data.aonenetworks.kr
 * epel: mirrors.aliyun.com
 * extras: data.aonenetworks.kr
 * updates: mirror.navercorp.com
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:12.16.1-1nodesource will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: 2:nodejs-12.16.1-1nodesource.x86_64
--> Finished Dependency Resolution
Error: Package: 2:nodejs-12.16.1-1nodesource.x86_64 (nodesource)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
#solution
[root@localhost my-project]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras nodesource updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost my-project]# rm -rf /var/cache/yum/*
[root@localhost my-project]# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
epel/metalink                                                                                                            | 8.6 kB     00:00
 * base: mirror.kakao.com
 * epel: mirrors.yun-idc.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
base                                                                                                                     | 3.7 kB     00:00
base/primary_db                                                                                                          | 4.7 MB     00:00
epel                                                                                                                     | 4.7 kB     00:00
epel/primary_db                                                                                                          | 6.1 MB     00:01
extras                                                                                                                   | 3.4 kB     00:00
extras/primary_db                                                                                                        |  29 kB     00:00
nodesource                                                                                                               | 2.5 kB     00:00
nodesource/primary_db                                                                                                    |  43 kB     00:00
updates                                                                                                                  | 3.4 kB     00:00
updates/primary_db                                                                                                       | 8.9 MB     00:00
No Packages marked for Update
[root@localhost my-project]# rpm -e nodesource-release-el6-1.noarch
[root@localhost my-project]# curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash

## Installing the NodeSource Node.js 10.x repo...


## Inspecting system...

+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
+ uname -m

## Confirming "el6-x86_64" is supported...

+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_10.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm'

## Downloading release setup RPM...

+ mktemp
+ curl -sL -o '/tmp/tmp.vcUtEEt26G' 'https://rpm.nodesource.com/pub_10.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm'

## Installing release setup RPM...

+ rpm -i --nosignature --force '/tmp/tmp.vcUtEEt26G'

## Cleaning up...

+ rm -f '/tmp/tmp.vcUtEEt26G'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `sudo yum install -y nodejs` to install Node.js 10.x and npm.
## You may also need development tools to build native addons:
     sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
     sudo yum install yarn

#install nodejs 10.x
[root@localhost my-project]#  yum install -y nodejs
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * epel: mirrors.yun-idc.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:10.19.0-1nodesource will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================
 Package                      Arch                         Version                                       Repository                        Size
================================================================================================================================================
Installing:
 nodejs                       x86_64                       2:10.19.0-1nodesource                         nodesource                        20 M

Transaction Summary
================================================================================================================================================
Install       1 Package(s)

Total download size: 20 M
Installed size: 61 M
Downloading Packages:
nodejs-10.19.0-1nodesource.x86_64.rpm                                                                                    |  20 MB     00:01
경고: rpmts_HdrFromFdno: Header V4 RSA/SHA512 Signature, key ID 34fa74dd: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Importing GPG key 0x34FA74DD:
 Userid : NodeSource <gpg-rpm@nodesource.com>
 Package: nodesource-release-el6-1.noarch (installed)
 From   : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : 2:nodejs-10.19.0-1nodesource.x86_64                                                                                          1/1
  Verifying  : 2:nodejs-10.19.0-1nodesource.x86_64                                                                                          1/1

Installed:
  nodejs.x86_64 2:10.19.0-1nodesource

Complete!
[root@localhost my-project]#



댓글

이 블로그의 인기 게시물

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL

starcraft map

Data Analysis with Superset - boardless chart