LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-13-2019, 12:31 PM   #1
hallomoto
Member
 
Registered: Nov 2018
Posts: 30

Rep: Reputation: Disabled
yum update stuck


yum is stuck here. I have already:
Code:
yum clean all
rm -rf /var/cache/yum 
rpm --rebuilddb
rpm -Va --nofiles --nodigest
rebooted

Code:
This system is receiving updates from RHN Classic or Red Hat Satellite.
Determining fastest mirrors
 * base: mirror.genesisadaptive.com
 * extras: centos.den.host-engine.com
 * updates: mirror.wdc1.us.leaseweb.net
base                                                                                                     | 3.6 kB  00:00:00
extras                                                                                                   | 3.4 kB  00:00:00
google-chrome                                                                                            | 1.3 kB  00:00:00
updates                                                                                                  | 3.4 kB  00:00:00
(1/5): base/7/x86_64/group_gz                                                                            | 166 kB  00:00:00
(2/5): extras/7/x86_64/primary_db                                                                        | 157 kB  00:00:00
(3/5): google-chrome/x86_64/primary                                                                      | 1.7 kB  00:00:00
(4/5): updates/7/x86_64/primary_db                                                                       | 2.4 MB  00:00:01
(5/5): base/7/x86_64/primary_db                                                                          | 6.0 MB  00:00:02
 
Old 02-13-2019, 07:30 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hallomoto View Post
yum is stuck here. I have already:
Code:
yum clean all
rm -rf /var/cache/yum 
rpm --rebuilddb
rpm -Va --nofiles --nodigest
rebooted

Code:
This system is receiving updates from RHN Classic or Red Hat Satellite.
Determining fastest mirrors
 * base: mirror.genesisadaptive.com
 * extras: centos.den.host-engine.com
 * updates: mirror.wdc1.us.leaseweb.net
base                                                                                                     | 3.6 kB  00:00:00
extras                                                                                                   | 3.4 kB  00:00:00
google-chrome                                                                                            | 1.3 kB  00:00:00
updates                                                                                                  | 3.4 kB  00:00:00
(1/5): base/7/x86_64/group_gz                                                                            | 166 kB  00:00:00
(2/5): extras/7/x86_64/primary_db                                                                        | 157 kB  00:00:00
(3/5): google-chrome/x86_64/primary                                                                      | 1.7 kB  00:00:00
(4/5): updates/7/x86_64/primary_db                                                                       | 2.4 MB  00:00:01
(5/5): base/7/x86_64/primary_db                                                                          | 6.0 MB  00:00:02
First of all, it seems from your output that you are using RHEL, therefore you should be contacting them for help.

Second of all, you have not given the command you entered for your second output, so it's difficult to say what's going on without us knowing what that command was.

I think you should contact Red Hat for help, or at least provide the above information, and also exactly what it is you're trying to do.
 
Old 02-14-2019, 11:41 AM   #3
hallomoto
Member
 
Registered: Nov 2018
Posts: 30

Original Poster
Rep: Reputation: Disabled
yum update was the command.
yum update is what i'm trying to do.

pcscd was locking yum. killing that process let yum resume
 
Old 02-17-2019, 03:16 AM   #4
newhmagon
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: 0
first run the command "top" and find out the process ID of yum.

now kill the process using the below command:

kill (process ID)

then reboot the system and after login run yum update.
 
Old 02-15-2021, 10:16 AM   #5
sprasant10
LQ Newbie
 
Registered: Feb 2021
Posts: 1

Rep: Reputation: Disabled
Its purely a memory issue

Hi All,

I came here to find solution and followed the mentioned previous steps, which eventually couldnt resolve my issue. please find my observations below to resolve the same.

1- Its purely a memory issues and generally happen on smaller machine i.e. 1GB RAM so
--> to validate its memory issue , open a new session by duplicating the same and run #yum update all and on other #top command
--> you will see how this command is draining memory and when free memory left <50mb you receive "Killed" output

Now solution Part:
1- Either increase the instance size
2- configure swap space, double to configured memory

swapon --show
fallocate -l 2G /swapfile
swapon --show
dd if=/dev/zero of=/swapfile bs=2048 count=1048576
swapon --show
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon --show
vi /etc/fstab (Copy this content "/swapfile swap swap defaults 0 0")
swapon --show
free -h
yum install ntp* -y
 
  


Reply

Tags
centos7, linux, patching, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
after yum update, can't yum update yet, some error occured novelbean Linux - Newbie 5 04-03-2013 08:13 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
I'm Stuck, so Stuck. basttrax Linux - General 3 11-14-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration