I need to install Virtualbox in RHEL 8 which has a Developer Subscription. Since /etc/yum.repos.d/virtualbox.repo doesn't find http://download.virtualbox.org/virtualbox/rpm/el/8/$basearch I did download rpm directly from virtuallbox with link, http://download.virtualbox.org/virtualbox/rpm/rhel/7/x86_64/VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm.
But again I got this error saying,
Error:
Problem: conflicting requests
- nothing provides libpython2.6.so.1.0()(64bit) needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
- nothing provides python(abi) = 2.6 needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
I found out RHEL 8 supports Python2 and Python3 but no idea about Python. Is there anyway to install Virtualbox in RHEL 8?
Installing the RPM package requires to satisfy the dependencies. As you are downloading a single RPM file and don't have a repo from where to get the dependencies it won't work without some other steps.
The easier way, if you don't mind adding external third-party repositories, is to add the RPM Fusion repositories
What is RPM Fusion?
RPM Fusion is a repository of add-on packages for Fedora and EL+EPEL maintained by a group of volunteers. RPM Fusion is not a standalone repository, but an extension of Fedora. RPM Fusion distributes packages that have been deemed unacceptable to Fedora.
Enable RPM Fusion repositories in RHEL 8 or CentOS 8:
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
Install VirtualBox:
# notice the uppercase V and B
yum install VirtualBox
# add your user to the vboxusers group:
usermod -a -G vboxusers $username
Alternative: Use Virt-Manager with KVM
Check the following article in Red Hat Developers portal on how to configure Virt-Manager and KVM for virtual machines. It's just as easy as VirtualBox and better supported, as this is how real Virtual Machines run in servers.
You can read more about the RPM Fusion repository here.
If you want to try Virt-Manager and need a hand, leave me a comment.
Related
I'm trying to get the hg-git extension to work with TortoiseHg (v5.8 on Win10). I have enabled the "hggit" extension in the settings. But when I try to push to github I get an error:
*** failed to import extension hggit: No module named hggit
Searching my drives I only have on hg executable in the TortoiseHg directory but can not find any hggit or hg-git binaries. Is there something else one have to do to get the extension working?
UPDATE - a beta release of THG 6.1.2 apparently has restored hggit and is available now:
https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5752#note_185806
I haven't tried it yet myself.
That post also notes:
The plan is for a py3 installer to be available with the next major
release [in July 2022]
Original answer:
Apparently at the moment THG has the option to include hggit in the settings, but does not actually package hggit itself.
According to Matt Harbison, one of the contributors/maintainers of TortoiseHG:
I took [hggit] out because it was always lagging behind changes in core hg,
and its dependencies broke stuff.
He goes on to add:
install by simply running py -2 -m pip install hg-git --user if you
have python2 installed on your system.
Another person (Aurélien Campéas) states the following for using Python 3:
with python 3 and a plain "pip install mercurial hg-git" and it just
works
Further, this other post by Keith Turkowski describes a full installation of THG and hggit with Python3 on Windows:
Install python-3.9.2-amd64.exe (if you want to use Python 3 and have Python.exe in the path)
Install putty-0.74-installer.msi (for SSH support)
Install tortoisehg-5.7.0-x64.msi
Install python-2.7.18.amd64.msi (For current user, Python.exe not in path)
Win+R -> cmd (command prompt): py -2 -m pip install hg-git --user
Enable hggit in TortoiseHg Settings (Extensions)
I assume you could use newer versions of the THG, Python, etc. installers.
I'm struggling installing GDAL on ubuntu 16.04 to work with GeoDjango (Django 2.1, python3), so I need to understand what I'm actually installing.
What is the rôle of each library/package/module ?
apt
gdal-bin (A 'C' library containing the actual functions ?)
python-gdal (The same in python, or just some kind of bridge ?)
python3-gdal (see above, but for python3. Does it need python-gdal ?)
pip
gdal
pygdal
What is the link between pip modules and apt packages here ?
Every piece of info is available, if one is willing to search for it.
DEBs (installed system-wide):
gdal-bin ([Ubtu]: Package: gdal-bin) - a collection of gdal related binaries (tools and utilities)
python3-gdal ([Ubtu]: Package: python3-gdal) - Python 3 bindings, extensions (.sos) and some wrapper scripts, which enable gdal usage from Python
python-gdal - the same thing, but for Python 2 (totally unrelated to previous item)
WHLs (installed as Python modules to the interpreter used to launch pip):
GDAL ([PyPI]: GDAL) - the sources (.tar.gz) for #2. (and / or #3.). During pip install phase, they are built and installed for current Python
pygdal ([PyPI]: pygdal) - same thing (but for VEnv?) as previous item. It seems to be a lighter version (it doesn't contain the scripts)
But, all of the above depend on libgdal ([Ubtu]: Package: libgdal1i), which is the gdal library.
I upgraded my ansible to 2.4 and now I cannot manage my CentOS 5 hosts which are running python 2.4. How do I fix it?
http://docs.ansible.com/ansible/2.4/porting_guide_2.4.html says ansible 2.4 will not support any versions of python lower than 2.6
After I upgraded to ansible 2.4 I was not able to manage hosts running python 2.6+. These were CentOS 5 hosts and this is how I fixed the problem.
First, I installed python26 from epel repo. After enabling epel repo, yum install python26
Then in my hosts file, for the CentOS 5 hosts, I added ansible_python_interpreter=/usr/bin/python26 as the python interpreter.
To specify the python interpreter in the hosts file individually, it will be something like
centos5-database ansible_python_interpreter=/usr/bin/python26
And for a group of hosts, it will be something like
[centos5-www:vars]
ansible_python_interpreter=/usr/bin/python26
And what about python26-yum package? It is required to use yum module to install packages using Ansible.
My experience so far has been that anisible works (gather facts) but that some modules (in particular yum / package) do not because yum uses python 2.4.
I ended up using yum via command and shell modules (not pretty but works).
1) Before you can install python26 you need to fix the repos as CentOS5 is end of life:
( YumRepo Error: All mirror URLs are not using ftp, http[s] or file )
2) then you can install EPEL 5 and pthon26
( https://www.ansible.com/blog/using-ansible-to-manage-rhel-5-yesterday-today-and-tomorrow )
3) then you can use the command module to use yum:
( CentOS 5. ansible_python_interpreter=/usr/bin/python26. Still cannot use yum: module )
many newer ansible modules don't work either due to missing python dependencies.
My intent is just to use Ansible in CentOS5 (or RH 5) to facilitate the upgrade to something newer and supported. ;)
It appears that policycoreutils-python requires higher versions of
the packages : libsemanage-python, auditlibs-python and python-IPy, than the default versions of these packages I have installed on a Centos server (Rocks 6.1). I thought that updating the version of Python would help since the default Python version on the server is 2.6.6.
I installed Python 3.5 by following another answer:
yum install https://centos6.iuscommunity.org/ius-release.rpm
and then installing python35u through yum.
Since 3.5 is not default and only one of the python versions available, I am not sure how to make yum use this version while installing policycoreutils-python.
I am interested in installing policycoreutils-python because I want to update the version of GCC to >=4.7 through the developer toolset package
released by the Scientific Linux community.
My questions are therefore:
1. How do I get policycoreutuils-python installed?
2. Is it a good idea to update several different packages on the server, in the process? I am really new to Centos and I am not sure how to find packages
when yum reports that they are not available. What is the best practice - install from source?
1) CentOS 6.5 is too old to be updated. I.e. please run # yum update every week. CentOS 6.5 was released 'Dec 2013' ! ( And no 'yum install [package] will work anymore ? ? ).
2) Generally always use yum for any package install. And : policycoreutils-python is included in the *Base.repo http://mirror.centos.org/centos/6.8/os/x86_64/Packages/ . And : a package search should always be used : # yum search policycoreutils-python ... i.e. # yum search [name] , or [part of name] .
3) If your old CentOS 6.5 works anyway, the right policycoreutils-python etc. will be installed automatically when installing gcc-4.7 : # yum install devtoolset-1.1-gcc-c++ ... : You don't need to install the complete devtoolset-1.1 .
Important : The slc6-devtoolset.repo must be setup beforehand : # wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
Ref. http://linux.web.cern.ch/linux/devtoolset/
I'm trying to get nmap for Raspberry Pi, and running into errors. I'm following the instructions here:
http://nmap.org/book/inst-linux.html#inst-debian
I have alien installed. Next command was
rpm -vhU https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
But I get this error:
pi#raspberrypi ~ $ rpm -vhU https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Retrieving https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
error: Failed dependencies:
python >= 2.4 is needed by nmap-2:6.49BETA2-1.i386
But my version of Python is:
pi#raspberrypi ~ $ python --version
Python 2.7.3
What's going on here?
Just to explain the problem:
You have been using the wrong download:
nmap-6.49BETA2-1.i386.rpm
^^^ package format for RedHat not for Debian
^^^^ wrong architecture, the Rasberry pi is arm6 or arm7l
The package wasn't the right one but there is also the problem of dependencies. The RPM installer does not read the list of debian's installed packages properly. It is possible to ignore the dependencies by command line arguments, but in general it is better to
use a debian package
or compile from source if you need a version where there is no package for.