Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
2
answers
64288
views
Unable to install yum / dnf on Ubuntu 20.04.3 LTS
I tried the following with root user but unable to install yum on my cloud server. I already read a similar issue here: https://unix.stackexchange.com/questions/673762/installing-yum-on-ubuntu root@localhost:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 2...
I tried the following with root user but unable to install yum on my cloud server.
I already read a similar issue here: https://unix.stackexchange.com/questions/673762/installing-yum-on-ubuntu
root@localhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
tried the following in vain to install yum.
1.
root@localhost:~# up2date
up2date: command not found
2.
apt-get update
apt-get install yum*
3.
apt-get install rpm -y
apt-get install yum*
4.
apt update -y
apt install -y yum-utils
Here is the error:
root@localhost:~# yum
Command 'yum' not found, did you mean:
command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
command 'zum' from deb perforate (1.2-5.1)
command 'num' from deb quickcal (2.4-1)
command 'sum' from deb coreutils (8.30-3ubuntu2)
Try: apt install
Error:
root@localhost:~# apt-get install yum -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package yum
I cant even get
dnf
installed nor do I know how to. I have a standard script that uses yum so getting yum to work would be great.
root@localhost:~# apt-get install dnf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dnf
root@localhost:~# apt install dnf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dnf
Ashar
(527 rep)
Nov 3, 2021, 10:46 AM
• Last activity: Aug 15, 2023, 08:52 AM
1
votes
2
answers
1723
views
Why does `pip` throw `ModuleNotFoundError` even though `setuptools` appears to be installed?
On an EC2 instance, I am attempting to install a Python package using `pip`, but receive an exception that states ```ModuleNotFoundError: No module named 'setuptools'```. For context, the command I run is ``` pip install --user mlflow ``` I attempt to resolve the issue my installing `setuptools` wit...
On an EC2 instance, I am attempting to install a Python package using
pip
, but receive an exception that states : No module named 'setuptools'
.
For context, the command I run is
pip install --user mlflow
I attempt to resolve the issue my installing setuptools
with the following command: yum install python36-setuptools
. Yet, the message returned indicates that setuptools
is already installed:
Package python36-setuptools-36.2.7-1.33.amzn1.noarch already installed and latest version
Nothing to do
Please advise.
**UPDATE**: After switching the EC2 instance from Amazon Linux AMI 2018.03.0
to Amazon Linux 2 AMI
I was able to successfully install mlflow
using pip
.
The question still remains - why was I able to successfully install using Amazon Linux 2 AMI
but not Amazon Linux AMI 2018.03.0
?
Jubbles
(145 rep)
Jul 27, 2020, 03:48 AM
• Last activity: Oct 14, 2020, 09:23 PM
2
votes
1
answers
442
views
Python command not found while installing debian 9 from iso
I have the following problem: I'm running debian 9 installation from a custom created iso with additional packages. One of the packages runs in the postinst script a python command defined in this packages, but the postinst script fails with error: ``` my-command command not found ``` therefore all...
I have the following problem:
I'm running debian 9 installation from a custom created iso with additional packages.
One of the packages runs in the postinst script a python command defined in this packages, but the postinst script fails with error:
I guess the problem is in python packages which are not properly installed during running my-package.postinst, but even moving them to pre-depend did not help.
Any ideas or directions? Any help will be appreciated.
Thank you in advance, Veronika The custom Debian 9 iso disc is created using simple-cdd. pkg-root/DEBIAN/control of my-package:
my-command command not found
therefore all software installation step fails.
**my-package.postinst**:
#!/bin/bash
my-command
When postinst is commented out all the process finishes successfully.
Even when the process failed ( dpkg -l return my_package in status iF) after a reboot, it is possible to run my-command from command line.I guess the problem is in python packages which are not properly installed during running my-package.postinst, but even moving them to pre-depend did not help.
Any ideas or directions? Any help will be appreciated.
Thank you in advance, Veronika The custom Debian 9 iso disc is created using simple-cdd. pkg-root/DEBIAN/control of my-package:
Package: my-package
Version: 1.0
Priority: optional
Architecture: all
Depends: geoip-bin, openssh-server, ntp, sshguard, lsb-release, vim, less, nload, iotop, logrotate, passwd, python-requests
Pre-depends: python, apt-transport-https, iproute2, python-setuptools
my-package/setup.py
from setuptools import setup
setup(
name='my-package',
version='1.0',
namespace_packages=['MyModules', 'MyModules.System'],
packages=['MyModules.System.Tools'],
entry_points={
"console_scripts": [
"my-command = MyModules.System.Tools:cli_my_command"
]
},
license='MyLicense'
)
during packaging the following command is run to create relevant entry_points,dependency_links, namespace_packages:
python setup.py install -f --install-layout=deb --prefix=/usr/local --root=pkg-root
Veronika U
(21 rep)
Jul 23, 2019, 03:50 PM
• Last activity: Aug 11, 2019, 11:05 AM
0
votes
1
answers
58
views
are these partition sizes good?
I was trying to dual boot with Windows 10 and Fedora and could not reclaim the disk that I had shrunk on windows. After a lot of trial and error, I just deleted everything and installed just Fedora. But let it automatically choose partition. After installation. This is what I see upon running fdisk....
I was trying to dual boot with Windows 10 and Fedora and could not reclaim the disk that I had shrunk on windows. After a lot of trial and error, I just deleted everything and installed just Fedora. But let it automatically choose partition. After installation. This is what I see upon running fdisk.
I am going to use this computer for java and other such application development, to install eclipse, tomcat , intellij etc. would this be a good disk partitioning configuration for such things?
I have always been a windows user so please let me know if there are important tools and applications I should install that will make my life easy on this platform. Any tips and suggestions are welcome.
/dev/sda1 2048 411647 409600 200M EFI System
/dev/sda2 411648 2508799 2097152 1G Linux filesystem
/dev/sda3 2508800 18874367 16365568 7.8G Linux swap
/dev/sda4 18874368 123731967 104857600 50G Linux filesystem
/dev/sda5 123731968 1953523711 1829791744 872.5G Linux filesystem
Kavitha
(3 rep)
Dec 21, 2017, 08:52 AM
• Last activity: Dec 22, 2017, 10:36 AM
3
votes
1
answers
1337
views
What does `console-setup/ask_detect` in a preseed config do?
I can't find anything on `ask_detect` in any of the man pages for setupcon and almost all my search results are examples of preseed files with it set to false; nothing useful at all. What does it actually do?
I can't find anything on
ask_detect
in any of the man pages for setupcon and almost all my search results are examples of preseed files with it set to false; nothing useful at all.
What does it actually do?
Bathmat
(151 rep)
Nov 22, 2016, 01:40 AM
• Last activity: Feb 7, 2017, 01:02 AM
1
votes
1
answers
2658
views
ImportError: No module named '_struct' when installing setuptools
I've installed separate Python versions on Centos 6.7 using the instructions listed [here][1], using a local install (not my package manager). When I tried to install [setuptools][2] (e.g. `python3.5 ez_setup.py`) to my new Python versions, I got the titular error message ("No module named '_struct'...
I've installed separate Python versions on Centos 6.7 using the instructions listed here , using a local install (not my package manager).
When I tried to install [setuptools] (e.g.
python3.5 ez_setup.py
) to my new Python versions, I got the titular error message ("No module named '_struct'"). I can't install versions of Python more recent than 2.6 using the package manager (a suggested solution to similar post ) due to priority protections.
Does anybody know a simpler solution that does not require messing with the package manager? Or, alternately, is there some obvious way to work around the priority protections that doesn't involve any risk to other programs?
Update: I avoided using setuptools entirely by installing [Anaconda], which worked like a dream.
nonadiabatic
(13 rep)
Feb 22, 2016, 03:42 PM
• Last activity: Feb 23, 2016, 10:57 PM
1
votes
1
answers
1279
views
Can't use Python3 Package Installer
I successfully installed Python3's Pip and SetupTool packages by: sudo apt-get install python3-pip but when I try to download/install any package for Python3 by: pip install It says that I don't have `python-pip`. It looks like OS's default is Python2 but I don't want to use it or install packages f...
I successfully installed Python3's Pip and SetupTool packages by:
sudo apt-get install python3-pip
but when I try to download/install any package for Python3 by:
pip install
It says that I don't have
python-pip
. It looks like OS's default is Python2 but I don't want to use it or install packages for it. How can I use my installed Python3-pip and change system's default to Python3?
PS:
Should I uninstall Ubuntu's default Python2? Would it help at all?
Vynylyn
(85 rep)
May 28, 2015, 08:26 PM
• Last activity: May 29, 2015, 04:10 AM
4
votes
3
answers
4905
views
What RPMs do I need for timeconfig?
I've got `setuptools` set up and have read through the list of what's in `/etc/setuptools.d` I'm interested in installing `timeconfig` as well, but I only need the TUI version (no GUI). Which RPMs do I need? (I'll be including these RPMs in a CentOS ISO installation)
I've got
setuptools
set up and have read through the list of what's in /etc/setuptools.d
I'm interested in installing timeconfig
as well, but I only need the TUI version (no GUI). Which RPMs do I need? (I'll be including these RPMs in a CentOS ISO installation)
Yon
(163 rep)
Sep 24, 2010, 07:14 PM
• Last activity: Apr 8, 2015, 11:28 PM
1
votes
1
answers
82
views
VM cloning VS scripted setup/configuration
Perhaps a question of ignorance but... I have long since documented the steps required to configure my servers (Apache, NGINX, Samba, Postfix, whatever). Reproducing a server setup is simply a matter of carrying out the steps one by one. My feeling is that most (if not all) could be automated via sc...
Perhaps a question of ignorance but...
I have long since documented the steps required to configure my servers (Apache, NGINX, Samba, Postfix, whatever).
Reproducing a server setup is simply a matter of carrying out the steps one by one. My feeling is that most (if not all) could be automated via scripting.
My sysadmin tells me this is not a practice of professionals (though he is far more Windows centric) and his preferred style is to configure and clone by using VM's or ISO's.
How common is it for nix pros to have a script for bringing servers up to speed quickly? Development environments varying significantly, installing xdebug or whatever tools.
I have multiple environments, a development server (installing my tools on Windows is such a PITA), a deployment/CI server, production servers, etc.
It would be nice to create a series of scripts which could get the ball rolling, modify required conf files, etc...all done programmatically making change in the future both clearly documented and re-producible.
What is your opinion on such a matter?
Other than a lot of work to get started I can't say I see much wrong with this approach...
Alex.Barylski
(191 rep)
Mar 11, 2015, 08:17 PM
• Last activity: Mar 11, 2015, 08:33 PM
0
votes
0
answers
1060
views
Why doesn't Red Hat detect hard drive on HP BL460C Gen 8?
EDIT: The server I am using is HP BL460C Gen 8 having real hardware RAID. I am trying to install Red Hat Enterprise x86_64 bit on an HP ProLiant (iLO 4) server with an Array of 2 hard drives configured as RAID1. The built in server manager allows me to change the setting and configuration of the sto...
EDIT: The server I am using is HP BL460C Gen 8 having real hardware RAID.
I am trying to install Red Hat Enterprise x86_64 bit on an HP ProLiant (iLO 4) server with an Array of 2 hard drives configured as RAID1.
The built in server manager allows me to change the setting and configuration of the storage array between RAID0 and RAID1
But RED HAT starts the process of the clean install, and i get to select the time, language, etc. but it stops because it could not detect a storage disk. All it can see is the virtual boot drive that it creates while booting to allow it to run (capacity 256 MB).
I tried to manually/custom add the storage setting but again, all available storage is 250 mb and all found devices is 1.
What am I doing wrong?
Ahmad
(101 rep)
Mar 3, 2015, 09:16 PM
• Last activity: Mar 4, 2015, 06:59 AM
1
votes
3
answers
4084
views
How to install easy_install using non-default Python Interpreter on CentOS?
I have downloaded, compiled and installed Python 2.7 on CentOS. I would like to download and install easy_install (and pip) for it but I am a little bit confused as to how to do that. How can I proceed to get setuptools and easy_install and pip using a non-default Python installation installed in `/...
I have downloaded, compiled and installed Python 2.7 on CentOS.
I would like to download and install easy_install (and pip) for it but I am a little bit confused as to how to do that.
How can I proceed to get setuptools and easy_install and pip using a non-default Python installation installed in
/usr/local/
?
Phil
(239 rep)
Dec 4, 2013, 07:02 PM
• Last activity: Dec 4, 2013, 07:53 PM
3
votes
1
answers
784
views
Wrapper for package managers
There are a lot of language-specific package managers like cpan for perl, cabal for haskell etc. When we want to install some software, it can sometimes be installed from a corresponding repo, with installation instruction just like (say, [Yaxy](https://github.com/Kolyaj/Yaxy)) `npm install yaxy` or...
There are a lot of language-specific package managers like cpan for perl, cabal for haskell etc. When we want to install some software, it can sometimes be installed from a corresponding repo, with installation instruction just like (say, [Yaxy](https://github.com/Kolyaj/Yaxy))
npm install yaxy
or cpan something
or cabal install something
.
These package managers have slightly different syntaxes, they all need root privileges and/or custom setup, or (in case of Yaxy) just a newer version of interpreter (nodejs packaged by Ubuntu was too old to run it).
Is there a wrapper for different package managers that unifies/automates setup for different package managers?
Edit: what I want is a way to execute installation command like that npm install yaxy
and make it working without manual installing system npm+nodejs, getting non-functional executable, finding the simplest way to install fresher nodejs on my system, reinstalling...
AvImd
(73 rep)
Jul 18, 2013, 12:17 PM
• Last activity: Jul 20, 2013, 03:53 AM
4
votes
1
answers
4764
views
How do I change my monitor's gamma settings?
How do I change my laptop monitor's gamma settings on Linux Mint 9 (preferably using a GUI interface)?
How do I change my laptop monitor's gamma settings on Linux Mint 9 (preferably using a GUI interface)?
Joshua Robison
(622 rep)
Apr 9, 2011, 03:56 AM
• Last activity: Apr 9, 2011, 08:02 AM
Showing page 1 of 13 total questions