Centos yum install hangs




















This is not a direct answer, but if none of the commands from the other answers helped then I'd check the command package-cleanup. All the proposed commands are for handling the RPM database, but it could be that there's something broken in the relation of some installed packages. I'd start with the command in the second example, I've used it before and it solved some weird issues I had in one of my CentOS machines which was related to yum clean. Sign up to join this community.

The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 9 years, 7 months ago. Active 9 months ago. Viewed 29k times. I have tried running: yum -v --noplugins clean all but I get no output at all. Doing strace -f yum -v --noplugins clean all produces quite a lot of output, but then stops with Improve this question. Itai Ganot Hamish Downer Hamish Downer 8, 6 6 gold badges 35 35 silver badges 49 49 bronze badges.

What does lsof reveal, if anything? There is a single root fs with plenty of space and then just proc, sysfs and tmpfs and tmpfs has plenty of space. I've killed that, and my yum, checked that lsof didn't show anything else accessing the file, and tried again, but I stop at the same place. I've also scanned through the full lsof output and not seen anything that looks likely.

Create a free Team What is Teams? Learn more. CentOS 7 - yum install not working Ask Question. Asked 5 years, 5 months ago. Active 29 days ago. Viewed k times. Error: Nothing to do [root cpanel1 etc] How do I make it work?

Improve this question. Rahul Kunok Kunok 1 1 gold badge 2 2 silver badges 8 8 bronze badges. The package name is correct? Kunok that's right, please change it and do yum update — Rahul. I'm curious, why did you disable all your repos? Kunok: Hmm, guess someone's trying to lock it down then. It might be worth contacting them and finding out why , before you break everything.

Show 8 more comments. Active Oldest Votes. Try to ensure you can resolve DNS records locally: nslookup google. Improve this answer. Garrett Garrett 4, 1 1 gold badge 21 21 silver badges 32 32 bronze badges. I did get an IP back from that command. I then reran my yum command. Unfortunately no success.

It's still hanging at the same place, "Determining fastest mirrors". If I run verbose, I get Loading "fastestmirror" plugin Config time: 0. To rule out an issue with the fastestmirror plugin, try running yum without any plugins: yum --noplugins check-update — Garrett. All of this did not work with me. Test with: yum --verbose --noplugins info You might get something like this: Config time: 0. If you are running csf ConfigServer Security and Firewall and lfd you can disable csf with: csf -x Try yum again and if it works, you'll have to reconfigure your csf.

Enable csf again with: csf -e And also check your proxy settings. RichVel 1 1 silver badge 15 15 bronze badges. Lots of good information here. Increasing the debugging level and running yum --verbose --noplugins info led me to find "Error: Cannot retrieve repository metadata repomd. Please verify its path and try again" which I am investigating now. My DNS is working so that should not be the problem.

An important point that seems to be missing in this answer is that yum check can take hours to complete! More info: centos. Database cleanup worked for me too — frostymarvelous. I had the same issue yum hanging with no no error message. After removing this file, yum worked again as expected. Show 1 more comment. Excellll Joe Sulkowski Joe Sulkowski 21 1 1 bronze badge.

Under Vagrant this can happen too. Sorry, don't have enough reputation to ask about this comment above: Trying this solution, I noticed that everything would run fine when using --noplugins.



0コメント

  • 1000 / 1000