Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yum fails with - There are no enabled repos.

I'm trying to install "libstdc++.i686" with

yum install libstdc++.i686 

but it failes beacuse of this error:

qa@qa-teamcity01:/usr/local/nsis/nsis-2.46-src$ sudo yum install libstdc++.i686

[sudo] password for qa:

There are no enabled repos. **Run "yum repolist all" to see the repos you have.

You can enable repos with yum-config-manager --enable


I've looked at my repos.d directory (/etc/yum/repos.d) and its empty, and opend yum.conf file and didn't see any repositories.

How do i get the repositery that i need?

like image 671
Shahar Hamuzim Rajuan Avatar asked Nov 21 '13 12:11

Shahar Hamuzim Rajuan


People also ask

How do you fix there are no enabled repos?

It simply means that in order to get system updates and also to install new software you need to configure package repositories. One way to remedy this issue, as well as the most obvious way, is to use subscription-manager and follow the instructions to register your RHEL system and thus also enable RHEL's repos.

How do I enable yum repository?

To enable all repositories run "yum-config-manager --enable \*". --disable Disable the specified repos (automatically saves). To disable all repositories run "yum-config-manager --disable \*". --add-repo=ADDREPO Add (and enable) the repo from the specified file or url.

How do I enable Gpgcheck in yum?

1 — Enable GPG signature-checking on all packages in all repositories, including local package installation. gpgcheck=1 is the default, and thus all packages' signatures are checked. If this option is set in the [main] section of the /etc/yum. conf file, it sets the GPG-checking rule for all repositories.

How do I know if yum repo is enabled?

Run command yum repolist and it will show you all repositories configured under YUM and enabled for use on that server. To view, disabled repositories or all repositories refer below section in this article.


1 Answers

ok, so my problem was that I tried to install the package with yum which is the primary tool for getting, installing, deleting, querying, and managing Red Hat Enterprise Linux RPM software packages from official Red Hat software repositories, as well as other third-party repositories.

But I'm using ubuntu and The usual way to install packages on the command line in Ubuntu is with apt-get. so the right command was:

sudo apt-get install libstdc++.i686 
like image 143
Shahar Hamuzim Rajuan Avatar answered Sep 18 '22 22:09

Shahar Hamuzim Rajuan