LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the problem to install this package (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-problem-to-install-this-package-4175631828/)

sub320 06-12-2018 11:56 PM

What is the problem to install this package
 
I just want to install the package jenkins by the command "yum -y install jenkins" , but got the below error , I think the package have downloaded but something have wrong when install , would advise how to fix it ?
thanks

============================================================================
# yum -y install jenkins
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: centos.01link.hk
* epel: del-mirrors.extreme-ix.org
* extras: centos.01link.hk
* updates: centos.01link.hk
https://rpm.packager.io/gh/pkgr/gogs...ta/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

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 jenkins.noarch 0:2.127-1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======
Package Arch Version Repository Size
======
Installing:
jenkins noarch 2.127-1.1 jenkins 71 M

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

Total size: 71 M
Installed size: 71 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/jenkins/packages/jenkins-2.127-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY


Public key for jenkins-2.127-1.1.noarch.rpm is not installed


===============================================================================

Honest Abe 06-13-2018 12:13 AM

try this -

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

As mentioned here

sub320 06-13-2018 02:46 AM

Quote:

Originally Posted by Honest Abe (Post 5866862)
try this -

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

As mentioned here

I got the below error

# rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key



curl: (7) Failed connect to pkg.jenkins.io:443; Connection timed out
error: https://pkg.jenkins.io/redhat/jenkins.io.key: import read failed(2).

jsbjsb001 06-13-2018 03:05 AM

Quote:

Originally Posted by sub320 (Post 5866885)
I got the below error

# rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key



curl: (7) Failed connect to pkg.jenkins.io:443; Connection timed out
error: https://pkg.jenkins.io/redhat/jenkins.io.key: import read failed(2).

I believe this is the same problem as in your other thread: https://www.linuxquestions.org/quest...pm-4175631751/

Honest Abe 06-13-2018 03:08 AM

Agree with jsbjsb001. You can try to manually download the key and import locally.
This is something the repo maintainer needs to fix.

sub320 06-13-2018 03:46 AM

Quote:

Originally Posted by Honest Abe (Post 5866889)
Agree with jsbjsb001. You can try to manually download the key and import locally.
This is something the repo maintainer needs to fix.

I can do it by first wget to dowanload and then import .

however I still wonder why I can't directly import ?

AwesomeMachine 06-13-2018 07:14 AM

There seems to be some problem in you name resolution. If wget works but curl does not, I suggest adding the '-v' flag to the curl command, and the '-d' flag to the wget command, so you can see in more detail the differences.


All times are GMT -5. The time now is 02:12 PM.