Linux error failed dependencies

unixforum.org

Проблема с установкой пакета (оба пакета требуют друг друга для установки себя)

Проблема с установкой пакета

Сообщение ipservice » 13.09.2009 22:52

rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm error: Failed dependencies: rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch rpm-python is needed by yum-3.2.19-18.el5.centos.noarch yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch yum-metadata-parser >= 1.1.0 is needed by yum-3.2.19-18.el5.centos.noarch

значит надо нам новый рпм, хорошо, ставлю:

rpmbuild --rebuild rpm-4.4.2.3-9.el5.src.rpm Installing rpm-4.4.2.3-9.el5.src.rpm error: Failed build dependencies: elfutils-devel >= 0.112 is needed by rpm-4.4.2.3-9.i386

в итоге он у меня просит ельфутилы, ставлю их:

rpm -ivh elfutils-devel-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-devel-static-i386 = 0.137-3.el5 is needed by elfutils-devel-0.137-3.el5.i386 elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by elfutils-devel-0.137-3.el5.i386
rpm -ivh elfutils-devel-static-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-devel-i386 = 0.137-3.el5 is needed by elfutils-devel-static-0.137-3.el5.i386 elfutils-libelf-devel-static-i386 = 0.137-3.el5 is needed by elfutils-devel-static-0.137-3.el5.i386

и вот тут уже начинаются веселости, ему нужен пакет который до этого попросил этот пакет (elfutils-devel-i386), хорошо это откладываю и хочу поставить elfutils-libelf-devel-static-i386

rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by elfutils-libelf-devel-static-0.137-3.el5.i386

а вот тут вообще веселуха последним двум пакетам нужны друг другу и бех установленных вторых не ставятся:

rpm -ivh elfutils-libelf-devel-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-libelf-devel-static-i386 = 0.137-3.el5 is needed by elfutils-libelf-devel-0.137-3.el5.i386

и вот как с этим бороться. бьюсь уже несколько дней, гугел не помогает. что делать подскажите? переустанавливать систему не предлагайте — не вариант

uname -a Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux

Re: Проблема с установкой пакета

Сообщение vlakas » 13.09.2009 23:37

rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm error: Failed dependencies: rpm >= 0:4.4.2 is needed by yum-3.2.19-18.el5.centos.noarch rpm-python is needed by yum-3.2.19-18.el5.centos.noarch yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch yum-metadata-parser >= 1.1.0 is needed by yum-3.2.19-18.el5.centos.noarch

значит надо нам новый рпм, хорошо, ставлю:

rpmbuild --rebuild rpm-4.4.2.3-9.el5.src.rpm Installing rpm-4.4.2.3-9.el5.src.rpm error: Failed build dependencies: elfutils-devel >= 0.112 is needed by rpm-4.4.2.3-9.i386

в итоге он у меня просит ельфутилы, ставлю их:

rpm -ivh elfutils-devel-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-devel-static-i386 = 0.137-3.el5 is needed by elfutils-devel-0.137-3.el5.i386 elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by elfutils-devel-0.137-3.el5.i386
rpm -ivh elfutils-devel-static-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-devel-i386 = 0.137-3.el5 is needed by elfutils-devel-static-0.137-3.el5.i386 elfutils-libelf-devel-static-i386 = 0.137-3.el5 is needed by elfutils-devel-static-0.137-3.el5.i386

и вот тут уже начинаются веселости, ему нужен пакет который до этого попросил этот пакет (elfutils-devel-i386), хорошо это откладываю и хочу поставить elfutils-libelf-devel-static-i386

rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by elfutils-libelf-devel-static-0.137-3.el5.i386

а вот тут вообще веселуха последним двум пакетам нужны друг другу и бех установленных вторых не ставятся:

rpm -ivh elfutils-libelf-devel-0.137-3.el5.i386.rpm error: Failed dependencies: elfutils-libelf-devel-static-i386 = 0.137-3.el5 is needed by elfutils-libelf-devel-0.137-3.el5.i386

и вот как с этим бороться. бьюсь уже несколько дней, гугел не помогает. что делать подскажите? переустанавливать систему не предлагайте — не вариант

uname -a Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux

Хм, интересно. А что за система-то?

Читайте также:  Viber on linux ubuntu

Один из вариантов в данном случае, если это все же redhat-подобный дистр — слить все пакеты и установить их всех скопом, типа

# rpm -ihv пакет1 пакет2 пакет3 . пакетN

Источник

Failed dependencies when installing Oracle XE to Ubuntu

I’m trying to follow the instructions in https://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm to install Oracle XE in my Ubuntu 15 virtual machine. But when running this command:

sudo rpm -ivh downloads/oracle-xe-11.2.0-1.0.x86_64.rpm 
error: Failed dependencies: glibc >= 2.3.4 is needed by oracle-xe-11.2.0-1.0.x86_64 libaio >= 0.3.104 is needed by oracle-xe-11.2.0-1.0.x86_64 /bin/sh is needed by oracle-xe-11.2.0-1.0.x86_64 
sudo apt-get install libc6 
sudo apt-get install libaio1 

See meandmyubuntulinux.blogspot.de/2012/05/…. Also, it looks like you don’t have the /bin/sh on your system (which is really strange) but you can create one by symlinking it bash or any other shell you like.

@Munir you should just add that comment to the answers, it’s a great guidance, although I just ended up using Oracle Linux instead of Ubuntu.

1 Answer 1

First, create a /bin/sh using ln -svf bash /bin/sh .
After that, you can follow the instructions at http://meandmyubuntulinux.blogspot.de/2012/05/installing-oracle-11g-r2-express.html

The gist of the instructions is:

unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip sudo apt-get install alien libaio1 unixodbc sudo alien --scripts -d oracle-xe-11.2.0-1.0.x86_64.rpm sudo vim /sbin/chkconfig 
#!/bin/bash # Oracle 11gR2 XE installer chkconfig hack for Ubuntu file=/etc/init.d/oracle-xe if [[ ! `tail -n1 $file | grep INIT` ]]; then echo >> $file echo '### BEGIN INIT INFO' >> $file echo '# Provides: OracleXE' >> $file echo '# Required-Start: $remote_fs $syslog' >> $file echo '# Required-Stop: $remote_fs $syslog' >> $file echo '# Default-Start: 2 3 4 5' >> $file echo '# Default-Stop: 0 1 6' >> $file echo '# Short-Description: Oracle 11g Express Edition' >> $file echo '### END INIT INFO' >> $file fi 
update-rc.d oracle-xe defaults 80 01 sudo chmod 755 /sbin/chkconfig sudo vim /etc/sysctl.d/60-oracle.conf 
# Oracle 11g XE kernel parameters fs.file-max=6815744 net.ipv4.ip_local_port_range=9000 65000 kernel.sem=250 32000 100 128 kernel.shmmax=536870912 
sudo service procps start sudo ln -s /usr/bin/awk /bin/awk mkdir /var/lock/subsys touch /var/lock/subsys/listener sudo dpkg --install oracle-xe_11.2.0-2_amd64.deb 

The blog has the full set of instructions and requirements for running Oracle. I have only provided the ones to install Oracle XE, since the question is about installation.

Читайте также:  Linux восстановление файлов ntfs

Источник

How to resolve “error: Failed dependencies:” error

Learn quickly how to resolve “error: Failed dependencies:” error. This error comes when you do not have installed the dependent packages on the server.

Error: While installing packages you must have come across following error:

error: Failed dependencies:

Sample output of the Error is below while installing kernel:

[root@ip-172-31-9-104 kernel_pkg]# rpm -ivh kernel-3.10.0-514.10.2.el7.x86_64.rpm error: Failed dependencies: linux-firmware >= 20160830-49 is needed by kernel-3.10.0-514.10.2.el7.x86_64 xfsprogs < 4.3.0 conflicts with kernel-3.10.0-514.10.2.el7.x86_64 kmod < 20-9 conflicts with kernel-3.10.0-514.10.2.el7.x86_64

In the above output while upgrading the kernel, system needs rpm packages mentioned in the output.

How to resolve “error: Failed dependencies:”

  • You can also download the packages required manually using RHN connected system and then move it to your offline server. Below command given on the yum server which is connected to RHN network.

yumdownloader --resolve --destdir

e.g. In Our case for kernel packages

[root@ip-172-31-8-245 ~]# yumdownloader --resolve --destdir /var/tmp kernel Loaded plugins: amazon-id, rhui-lb --> Running transaction check ---> Package kernel.x86_64 0:3.10.0-514.10.2.el7 will be installed --> Processing Dependency: linux-firmware >= 20160830-49 for package: kernel-3.10.0-514.10.2.el7.x86_64 --> Running transaction check ---> Package linux-firmware.noarch 0:20160830-49.git7534e19.el7 will be installed --> Processing Conflict: kernel-3.10.0-514.10.2.el7.x86_64 conflicts kmod < 20-9 -->Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package kmod.x86_64 0:20-5.el7 will be updated ---> Package kmod.x86_64 0:20-9.el7 will be an update --> Processing Conflict: kernel-3.10.0-514.10.2.el7.x86_64 conflicts xfsprogs < 4.3.0 -->Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package xfsprogs.x86_64 0:3.2.2-2.el7 will be updated ---> Package xfsprogs.x86_64 0:4.5.0-9.el7_3 will be an update --> Finished Dependency Resolution Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/3): kmod-20-9.el7.x86_64.rpm | 115 kB 00:00:00 (2/3): xfsprogs-4.5.0-9.el7_3.x86_64.rpm | 895 kB 00:00:00 (3/3): linux-firmware-20160830-49.git7534e19.el7.noarch.rpm | 31 MB 00:00:00 [root@ip-172-31-8-245 ~]# cd /var/tmp [root@ip-172-31-8-245 tmp]# ll total 71372 -rw-r--r--. 1 root root 39080420 Mar 2 22:44 kernel-3.10.0-514.10.2.el7.x86_64.rpm -rw-r--r--. 1 root root 117328 Nov 6 11:02 kmod-20-9.el7.x86_64.rpm -rw-r--r--. 1 root root 32946308 Nov 6 11:02 linux-firmware-20160830-49.git7534e19.el7.noarch.rpm -rw-r--r--. 1 root root 916416 Jan 22 07:49 xfsprogs-4.5.0-9.el7_3.x86_64.rpm [root@ip-172-31-8-245 tmp]#

In our case we have downloaded all the dependent packages under the directory /var/tmp.

  • Once you moved the packages to offline system, go to that particular directory where packages are downloaded and give below command to resolve automatic dependency.
Читайте также:  Kali linux правильная установка

Источник

Failed dependencies

I searched , but I am not able to find these. I am running Centos 5.6 with linux kernel 2.6.18-238.el5.

$ rpm -q --provides python | grep -Fw 'python(abi)' python(abi) = 2.4 

As far as I searched, libtinfo.so.5 is a part of ncurses library now. But It is searching for that specific dependecy library.

My current python version is 2.4.3. If someone has any idea about installing these dependencies please help me out.

2 Answers 2

It seems that you are trying to install a binary RPM that was built for a different version of Linux.

It is quite possible that even if you satisfy the dependencies that RPM is complaining about that the resulting program still will not install or work correctly. RPM-based Linuxes are not mutually compatible in all respects. Python is a particular area of incompatibility because it is so widely used in a Red Hat-derived system like CentOS. Because of this, trying to upgrade or install a parallel version of Python to satisfy the dependencies is likely to cause a lot of other problems and still may not solve all of your RPM compatibility problems.

Instead, it will probably work out much better in the end for you to build the RPM from source, if at all possible. Ideally, from an SRPM. It would only be impossible if the package provider does not provide any form of source code or the package absolutely requires Python 2.5 and will not run on Python 2.4.

If you can get an SRPM, the rebuild process may be as simple as:

# rpmbuild --rebuild name-of-package.version.src.rpm 

The advantage of that is that the resulting binary RPM is built against the libraries on your system, so that if it builds, it is almost guaranteed to work.

Источник

Оцените статью
Adblock
detector