Centos: yum install ffmpeg fails? - ffmpeg

I'm trying to install ffmpeg on my server.
The problem is that when i run the following command:
yum install ffmpeg
I get the following error:
http://apt.sw.be/redhat/el6/en/x86_64/dag/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again
I have this is in etc/yum.repos.d/CentOS-Base.repo
[dag]
name=Dag RPM Repository for Centos
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=1
I know the issue is the http://apt.sw.be as they are down...
I cannot find an alternative mirrors for it... could someone please let me know if there are any working mirrors for this?

Dag/rpmforge is dead. Just download a static binary of ffmpeg or compile ffmpeg instead of using an old, outdated repository.
Extract it from the archive file and move it to /usr/local/bin if you want it available to all users, or just ~/bin if you don't have superuser/root.

Related

HDP sanbox: yum install is throwing 403 error

I am trying to setup HDP sandbox and work on a big data project.But when trying to do yum install, I am getting below error
http://s3.amazonaws.com/dev.hortonworks.com/ambari/centos6/2.x/BUILDS/2.4.0.0-1225/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/solutions/69319
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: AMBARI.2.4.0.0-2.x. Please verify its path and try again
I tried below instructions:
in /etc/yum.repos.d/sandbox.repo, updated the enabled=0
yum clean all
yum update
But yum update gives me this error.I cannot even install any python related libraries to proceed with my work.Can someone give me solution for this error.
Thanks!!
I had the same problem, and in order to solve it, I backed up the repositories:
ambari.repo
HDP.repo
HDP-UTILS.repo
then I removed them from the /yum.repos.d folder.
Then I ran the following command:
yum clean all
After that the yum update worked, and I managed to install the things I needed.
** What I noticed, is that whenever I tried to use any YUM command, it gave preference to these repositories that I mentioned.

dnf broken: all mirrors were tried

I don't know how to describe my problem because I don't understand why it happen ... When i enter
sudo dnf install (any packet)
It return me this
Tor Project Repo 407 B/s | 264 B 00:00
Error: Failed to download metadata for repo 'Tor': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Its obvious that Tor is related to that mess but i don't know why.
I tried nothing because I'm afraid to do something wrong. I'm on fedora 30.
(english baguette)
It seems like you have a broken repository. Probably you will find this repository in:
ls /etc/yum.repos.d/
there will probably be a file named tor*.repo. If you remove that file (or edit it to contain enabled=0), then dnf should start working correctly again.
Failed to download metadata for repo ‘bintray–resin-io-redhat’: Cannot download repomd.xml: Cannot download repodata/repomd.xml
I was getting same error for kubernetes.repo. It got resolved by setting enabled=0 in /etc/yum.repos.d/kubernetes.repo. Now I can download other package (example Nginx that I was unable to download).
I tried this command and my problem fixed:
sudo rm -r /var/cache/dnf
This worked for me -
cd /etc/yum.repos.d
rm -rf .
yum upgrade
yum update
Note: redhat.repo will regenerate itself on the next yum run, and in the process some repositories will stay lost, be careful.

Unable to install dowloaded rpm package

I downloaded the rpm file from https://centos7.iuscommunity.org/ius-release.rpm to local.I want to install that dowloaded file in centos environment.
However when i give "yum -y install ius-release-1.0-15.ius.centos7.noarch.rpm" in my dockerfile,I am getting an error "error: open of ius-release-1.0-15.ius.centos7.noarch.rpm failed: No such file or directory".
Aim is to install the local rpm package which is resting in the directory where dockerfile is present.
Please help me !
Is it that i am not giving the right path of that rpm file?
The command needed would be yum -y localinstall <filename> but you will need to modify your Dockerfile to ADD the file to the docker image first.

Unable to install Search Guard plugin for Elasticsearch-5.x

Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard.
bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version>
However, I am able to install Search Guard successfully on a different network by running the above command.
Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation.
/usr/share/elasticsearch# bin/elasticsearch-plugin install file:///home/xxxx/xxxx/search-guard-5-5.2.0-10-sgadmin-standalone.zip
This one is failing with the below error.
-> Downloading file:///home/xxx/xxxx/search-guard-5-5.2.0-10- sgadmin-standalone.zip
[=================================================] 100%  
ERROR: `elasticsearch` directory is missing in the plugin zip
I downloaded zip/tar.gz from this maven repository of search gaurd.
Is anyone also facing the same issue. If not, kindly help in solving this one.
Download this file from maven to /home/xxxx:
https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.0-11/search-guard-5-5.2.0-11.zip
Install it:
bin/elasticsearch-plugin install -b file:///home/xxxx/search-guard-5-5.2.0-11.zip
Other releases are available here: https://oss.sonatype.org/content/repositories/releases/com/floragunn/

How do I fix my makefile?

I have been trying to install ffmpeg and ffmpeg-php for weeks without success. The latest error I got on my new server is:
[root]# make
make: *** No targets specified and no makefile found. Stop.
[root]#
After searching the web and stackoverflow, it seems that I need to fix my makefile?
I am running CentOS 5 32-bit.
Any help on this problem will be appreciated.
Thanks in advance!
You are going about installing ffmpeg the wrong way .. make would not work because you are not in the right directory
Easy way for installation add new repo at /etc/yum.repos.d
nano -w /etc/yum.repos.d/dag.repo
Inset
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Then Install
yum install ffmpeg ffmpeg-devel
its as easy as that ... to install ffmpeg-php
wget /path/to/this/file/ffmpeg-php-0.5.2.1.tbz2
tar -xjf ffmpeg-0.5.2.1.tbz2
phpize
./configure
make
make install
Can you see where you use make ??? After extracting the compressed file
Lastly PHP.INI
nano /etc/php.ini
[ffmpeg]
extension=ffmpeg.so
Sometimes you need to create new ffmpeg.ini file and php reads it automatically .. this depends on your confifuration
I hope this helps
Thanks
:)

Resources