after install python 2.7.3 yum is broken [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i installed libxml2-2.9.0 and libxslt-1.1.27 then yum is broken any yum command that i ran i got the result of :
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
then i thought python version is way too old and install python 2.7.3 and install it from scratch, after some wrong trials it got worse and worse, now when i run 'python -V' i got version 'Python 2.7.3', when i run '/usr/bin/python -V', it returned 'python-2.4.3-24.el5', and no matter what i did the yum is still broken with that message. how can i get yum back?
my os is: linux 2.6.18-164.11.1.el5 x86_64 GNU/Linux

See the FAQ:
In pre-2.3.? yum This error message is often misleading. To see the
real error, run python from the command line, and type import yum. The
problem probably isn't with your version of python at all, but with a
missing libxml2-python, python-sqlite, or python-elementtree package.
Yum 2.4.x provides a different error with the module import errors, so
this will become less confusing.
It also includes a directive to send the error to the mailing list.
Really, you should figure out what rpm provides the module that was
missing and try to install that.
If you are getting a message that yum itself is the missing module
then you probably installed it incorreclty (or installed the source
rpm using make/make install). If possible, find a prebuilt rpm that
will work for your system like one from Fedora or CentOS. Or, you can
download the srpm and do a
rpmbuild --rebuild yum*.src.rpm
So, if else fails, you can get the yum package somewhere like this.

Related

Problem with installing python-gi-cairo on Linux [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
When I'm running this code in Bash:
sudo apt-get install -y python-gi-cairo
I get this message från Bash:
"Some packages could not be installed. This may mean that you have requested an impossible situation, or if you are using an unstable distribution that some required packages have not yet been created or been moved out of Incomming.
The following information may help to solve the situation:
The following packages have unmet dependencies:
python-gi-cairo : Depends: python-gi (= 3.36.0-3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages."
I'm using a Raspberry pi3
What I have done before I tried to install python-gi-cairo:
Downloaded and installed missing keys for APT.
Updated APT
Grateful for help /Felix
Seems like the default Python is 2.7.
No worries I had the same issue.
But Fixed it with python3.
Try:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
Let me know if it works!

Yum command is not working in fedora, when i removed the libacl package? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
During updating fedora, due to error: multilib protected version found, i tried to remove and install libacl package, but when i remove libacl package using rpm --erase --nodeps libacl, yum commands stops working and i am unable to install libacl again , running yum gives this error:-
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
libacl.so.1: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Not only yum but when i fire any command in the terminal it gives this error:-
error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory
Due to this I am not able to install any package manually using rpm command, Someone please give me some ideas?
Manually download libacl RPM and do rpm2cpio packagefile.rpm | cpio -div and then manually copy libacl.so.1 to where it should be. Then install the RPM properly. After that, don't use --nodeps again, unless you're sure you know what you're doing! ;)

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

how to install yum package on linux RHEL 4? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
when i run root#localhost# yum install package_name command on linux terminal it gives:
bash: yum: command not found
because i don't have yello update and modifier package install on my linux . for that i mount my linux iso disc.and write command
root#localhost# cd /meida/RHEL_4/i386/ Disk/ 1/
root#localhost RHEL_4 i386 Disk 1# ls
but there is no package directory. and i didn't find any http url form downloading(wget) yum.x.x.x.rpm. i have linux RHEL 4 AS version installed. plz help
Yum is not compatible with RHEL 4 (FOR RHN Stuff). They don't officially ship yum with rhel4 instead use legacy 'up2date' utility. up2date is similar to yum but far less featured package management utility but good in dependency resolution. It resolves the packages dependencies in same way, yum do.
Anyway, You can get the rpm package here, http://dl.fedoraproject.org/pub/epel...oview/yum.html. Just download it and install using rpm -ivh command. don't expect, yum will download the packages from RHN. to sync with rhn you still have to use up2date.

Ubuntu package management (basic): sudo apt-get upgrade firefox [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Just wanted to update firefox from 11.0 to 13.0 on the latest
ubuntu so did the following:
$ sudo apt-get upgrade firefox
thinking that my firefox would be upgraded.
Instead ubuntu started to update every single package in the
whole system it seems. Now I cannot stop the process for fear
that if I do it might leave the system in an inconsistent state.
Where have I gone wrong in issuing the right command for upgrading
a single package in the command line. OK, thankfully 15 minutes
later the command returned successfully.
What is the difference between upgrade and update?
Thanks,
John Goche
Taken directly from the apt-get man page:
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
Update is used to update the apt-get package list, upgrade is used to install updates for all packages. To update just one package, use install.
sudo apt-get install firefox
Try this:
apt-get update
apt-get install firefox
You must use install command to install and to update package also.
From man apt-get:
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated
in
/etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded
(...)
install
install is followed by one or more packages desired for installation or upgrading.
(...)

Resources