Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"yum update" command is not working.
IP information and relevant details below:
-------------------------------------------------------------------------
Here is the error message :
yum update
Loaded plugins: fastestmirror, langpacks
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
that command will be mostly useless
all it will show is the name of files in the folder
NOT!!! if they are turned OFF or turned ON
please use yum
Code:
su -
yum repolist all
also inform us as to what YOU did to the files in that folder
this issue is normally caused by the user manually editing the files in that folder
( some even have used MS's "notepad.exe" on windows to edit these files -- DO NOT do that)
In the area where you type your response there is a pound sign (#) above that area.
Click on the pound sign to post your terminal output in [code][code] tags.
I am newbie. No idea how to do that.. Guide me through please
I am using Putty.
When you make a post you have the general box with the white space where you write to us and above that box is a place where you can choose different fonts, a smiley face, and etc.
Click on the icon that is the pound sign (#).
Place your mouse pointer in between the code tags ([CODE]*[CODE] right click (after you've copied what you want)and than paste. Where the star (*) is; is where you place your cursor.
I'm running CentOS 7 too but I don't understand why your repositories are disabled.
I would imagine that the repo's need to be enabled. (guessing) Best to wait for JohnVV and follow his direction.
things that are NOT good!!
Base disabled
Extras disabled
Updates disabled
you manually added a file with a BAD url
base/7/x86_64 CentOS-7 - Base enabled: 0
you manually added a file with a BAD url
updates/7/x86_64 CentOS-7 - Updates enabled: 0
then who knows what else you did
as root make a folder in the folder called "backup"
and MOVE every repo file in there
( do not YET delete them just put them in a new folder as a BACK UP )
then there should OLNY be that folder in yum.repo.d folder
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.