LinuxQuestions.org
Review your favorite Linux distribution.
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 10-23-2014, 03:53 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
PC boots, but not to GUI after software packages removed. How to fix?


After moving some files around on my Centos 6.5, 64 bit machine. I rebooted it.

After the three progress lines (one white and two blue) reached to the lower right side of the startup screen, everything halted.

I then hit ctrl-alt-delete and it rebooted again.

When the the aforementioned progeress bars where moving acorss the bottom of the screen, I hit the esc key.

Now I got a semi-detailed massage:

bash: cannot set terminal process group (-1): Inaapropriate ioctl for device
bash: no job control in the shell

This is a command line computer now. I can also boot into the grub menu. I am root.

I just want to get my gui back. What do I do to get it back?

Thanks in advance.


R,

jyunker
 
Old 10-23-2014, 04:13 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What did you move something in /usr or /?
 
Old 10-23-2014, 08:44 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
If you can remember what files you moved, I would say move them back. Depending on what exact functionality you have lost, you might have to boot to a live CD of something to do so.

If the command line still works, you might be able to verify what files you moved by looking in the ~/.bash_history file; the commands should be recent enough to be still present there. https://www.digitalocean.com/communi...on-a-linux-vps

Last edited by frankbell; 10-23-2014 at 08:45 PM.
 
Old 10-24-2014, 08:12 AM   #4
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
What I moved was binutils. I took it off. I want to install and use binutils 2.23, but I keep getting binutils 2.20 installed even when I specifically try to install binutils 2.23.

So I thought well why not start with a clean slate and just moved binutils off the system. I had used my Centos 6.5, 64 bit system before
without binutils and it worked fine. Of course some of the programs that require binutils would not work with binutils missing.

It took the command:

sudo yum remove binutils

to get binutils off and all of its supporting programs. These were programs that only binutils required and with binutils gone
they were not needed.


Well upon reboot I am in the situation that I described above.


So I guess that I should put binutils back on even if it is version 2.20.


Binutils version 2.23 is a bug fixed version of binutils 2.20. I realy am trying to install it, but it is a challenge.


Thanks in advance.


R,


jyunker
 
Old 10-24-2014, 12:54 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Well that explains why you can't install anything. You're going to have to either chroot with live-cd or reinstall.
 
Old 10-24-2014, 02:02 PM   #6
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
Is it possible to reinstall and still keep old Centos installed apps? Can I do this on Linux rescue? I do not want to do a complete reinstall.

R,

jyunker
 
Old 10-24-2014, 02:18 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by jyunker View Post
Binutils version 2.23 is a bug fixed version of binutils 2.20. I realy am trying to install it, but it is a challenge.
CentOS back-ports bug fixes. For example, it's still running BASH 4.1.2, but it includes the 4.3 patches for the recent shellshock vulnerability. Do you have reason to believe that the CentOS 2.20 version of binutils doesn't include the 2.23 bug fixes?
 
Old 10-24-2014, 03:27 PM   #8
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
binutils 2.20 vs 2.23

Yes, I want to run a later version of gcc, say 4.72, and it requires binutils 2.23. When I install devtoolset-1.1, binutil 2.23 should be also installed.

It is not installed on my system only binutils 2.20 is, I cannot get the 2.23 version on my system.

My biggest concern now is to get my GUI back, however. I think that removing binutil 2.20 (though I used the package manager) accidentally took off some needed Centos files.


So I will try to get them back. I am hoping that Centos rescue can do it.

R,

jyunker
 
Old 10-24-2014, 06:41 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you want to use gcc 4.7 or 4.8 or 4.9
then WHY are you using CentOS 6.5 ????????

install centos 7.0
or use fedora 21
 
Old 10-24-2014, 06:58 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
It's dead trivial to install a later version of gcc on CentOS 6.5 -- the trick is to just install it in an alternate directory (e.g. /opt/gcc-4.8.2) and then set the $PATH and $LD_LIBRARY_PATH to point at that directory. This is commonly done, e.g. at high performance computing centers that want a stable OS but need more recent compiler versions. The trick is to not touch any of the system-bundled software, but instead to install newer versions in alternate locations and use $PATH and $LD_LIBRARY_PATH to use them. As you've seen, the system is highly dependent on the version of the C library and toolchain that comes bundled. Attempting to remove or replace it will usually lead to woe.

In your case, if all you moved was binutils stuff, you can probably boot of a LiveCD into rescue, chroot into your system, and do a forcible reinstallation of the correct binutils package (you'll need to use --force to rpm because the package database will still show the old binutils installed). Moving files tracked by the package manager around is generally not a good idea for system stability...

Incidentally, I routinely run gcc 4.7-4.9 on my Scientific Linux 6.5 systems (Scientific is another rebuild of RHEL, like CentOS), and I've never had to play with binutils. I did have to install the gpc and mpfs libraries, though.
 
Old 10-24-2014, 07:40 PM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I just thought about it. If you only moved binutils all you have to do is move it back. Where did you move it to?
I had the same problem when I was moving /usr to /.
I ended up not being able to complete transaction without live-cd. Which all I had to do was mount the partitions i.stead of chroot.
 
Old 10-27-2014, 07:47 AM   #12
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
Cannot get my gui.

I was having so much trouble geeting binutil 2.23 to install - as I said it always defaulted to binutils 2.20. I thought a complete removal of all and a install of binutils 2.23 binutil files would at least point me in the rigt direction.

That is what I did and the computer is now not giving me a no GUI on boot up. Thge three progress bars make their way across the screen and then they and the computer halt. Zip! Zero!

If I press esc key then I will get the command

bash: cannot set the terminal process group (-1): inappropriate ioclt for device
bash: no job control control in this shell

That is there error that I am now seeing.

when I type whoami, I learn that am root.

If I precede any command with sudo then it tell me:

sudo: sorry, you must have a tty to run sudo.

I am going to tyr next to chroot into my system using a LiveCD.

Any other suggestions appreciated.


R,


jyunker

Last edited by jyunker; 10-27-2014 at 07:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Help I removed 119 packages I need. anon079 Linux - Newbie 4 09-02-2012 01:09 AM
Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru murtyvonna Ubuntu 2 08-11-2009 12:19 PM
Mozilla packages to be removed satimis Linux - General 6 04-10-2005 07:48 PM
dselect, removed necessary packages accidently eggsally Debian 3 06-02-2004 03:46 PM
removed packages / add mail lappen Slackware 3 12-22-2003 12:12 AM

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

All times are GMT -5. The time now is 03:00 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