yum unable to locate package

Issues related to applications and software problems
Post Reply
grittt
Posts: 10
Joined: 2018/01/27 16:37:46

yum unable to locate package

Post by grittt » 2018/04/09 16:24:37

I want to install VLC, but yum is unable to locate the package - see the Terminal output below.

How can i find out which repository contains the VLC package?
$ yum info vlc
\Loaded plugins: fastestmirror, langpacks
https://copr.fedorainfracloud.org/coprs ... repomd.xml: [Errno 14] HTTPS 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 create a bug on https://bugs.centos.org/

Loading mirror speeds from cached hostfile
* base: mirrors.hosting.in.th
* epel: mirror.dmmlabs.jp
* extras: mirrors.hosting.in.th
* updates: mirrors.hosting.in.th
Error: No matching Packages to list

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum unable to locate package

Post by TrevorH » 2018/04/09 16:27:53

You'll need to add a repo that supplies vlc if you want to install it. I know of 2: nux-dextop and possibly rpmfusion. I use the first. You can find more info in the wiki. Additional packages are often in 3rd party repos. Information on additional CentOS repos is available at http://wiki.centos.org/AdditionalResources/Repositories Pay attention to the reference on yum-priorities.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

grittt
Posts: 10
Joined: 2018/01/27 16:37:46

Re: yum unable to locate package

Post by grittt » 2018/04/10 02:48:46

Thanks for the info. However, I'm getting a transaction lock error when trying to add the nux-dextop repo (copied and pasted the command for EL7 from http://li.nux.ro/repos.html).

$ sudo yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
Loaded plugins: fastestmirror, langpacks
https://copr.fedorainfracloud.org/coprs ... repomd.xml: [Errno 14] HTTPS 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 create a bug on https://bugs.centos.org/
Loading mirror speeds from cached hostfile
* base: mirrors.hosting.in.th
* epel: mirrors.thzhost.com
* extras: mirrors.hosting.in.th
* updates: mirrors.hosting.in.th
Package epel-release-7-11.noarch already installed and latest version
Nothing to do
Retrieving http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
warning: /var/tmp/rpm-tmp.RyxdyK: Header V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
What is the -Uvh for?
Also, what is the correct URL - to replace https://copr.fedorainfracloud.org/coprs ... repomd.xml: ?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: yum unable to locate package

Post by hunter86_bg » 2018/04/10 03:58:04

Code: Select all

man rpm
Searching can be done via '/' and '?'.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum unable to locate package

Post by TrevorH » 2018/04/10 08:40:07

$ sudo yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
You ran sudo yum which makes yum run as root but your && rpm is not sudo'ed so runs as you and has no permission...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

grittt
Posts: 10
Joined: 2018/01/27 16:37:46

Re: yum unable to locate package

Post by grittt » 2018/04/10 17:17:25

hunter86_bg wrote:

Code: Select all

man rpm
Searching can be done via '/' and '?'.
Thanks, that helps.
TrevorH wrote:
$ sudo yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
You ran sudo yum which makes yuum run as root but your && rpm is not sudo'ed so runs as you and has no permission...
But if I don't run it as sudo, this happens:
$ yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el ... noarch.rpm
Loaded plugins: fastestmirror, langpacks
You need to be root to perform this command.
I'm not sure what this means: "your && rpm is not sudo'ed". Sorry, I'm still new to CentOS.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum unable to locate package

Post by TrevorH » 2018/04/10 17:21:12

You ran two commands like

sudo yum .... && rpm ...

and what you should have run was

sudo yum ... && sudo rpm ...

The && is a command separator and thus sudo applies to the first command (yum) but not to the 2nd (rpm).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

grittt
Posts: 10
Joined: 2018/01/27 16:37:46

Re: yum unable to locate package

Post by grittt » 2018/04/10 17:47:24

TrevorH wrote:You ran two commands like

sudo yum .... && rpm ...

and what you should have run was

sudo yum ... && sudo rpm ...

The && is a command separator and thus sudo applies to the first command (yum) but not to the 2nd (rpm).
I didn't understand the &&. Now I see that the epel-release is already installed on my system, so I've run the second command by itself, sudo rpm....... and the repo has installed ok. Cheers.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum unable to locate package

Post by TrevorH » 2018/04/10 17:50:50

They're two separate commands separated by && which is a bash command shell thing which says run this if the return code from the 1st says it worked. However, sudo ran the first one and the second one was run without sudo so didn't work.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: yum unable to locate package

Post by hunter86_bg » 2018/04/10 19:14:57

Try the following :

Code: Select all

sudo yum -y install epel-release && sudo yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Post Reply