LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-24-2006, 02:45 PM   #1
soar747
LQ Newbie
 
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18

Rep: Reputation: 0
Question reinstall apps without reformat or synaptic


Been having trouble ever since I installed Kubuntu and then tried to use ClamAV, in which case the system crashed and I had severe filesystem errors. Those were fixed by running fsck from the LiveCD, however many of the symlinks were destroyed.

I can boot into recovery mode, kdm doesn't work, so I use gdm instead. The windows wouldn't open in KDE and gnome wouldn't run a single app when I started its session in failsafe, leaving me with nothing but a blank colored orangish screen. Many error messages popped up, indicating the failure of every single necessary gnome component. I absolutely will not reformat with a clean install because I am stubborn.

What method should I use to reinstall gnome and all its associated packages? Is there a list of all packages necessary for it to function? Remember, I cannot use any graphical means...command line only. Unless, of course, there is a way to install synaptic packages from the LiveCD to the hard drive device.
 
Old 11-24-2006, 02:56 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well, synaptic is just a graphical front-end for apt, your package manager. So it's not a problem if you just know what you like to install

Code:
apt-get install packagename
will install packagename, and if it has dependencies, it resolves, downloads and installs them too. Just like Synaptic, but on command-line. Of course you need to know what to install, but I assume you'll either know or find it out quickly. Apt can also handle reinstalling:

Code:
apt-get install --reinstall packagename
should do it for you. If you wish to use your cd, you can either install packages one by one using

Code:
dpkg install /path/to/packagename.deb
or just define your CD as one reposity for apt-get. I suggest you use apt-get with a normal internet connection (if it's working, is it?)

Having no graphical user interface doesn't prevent you from doing something (well, maybe photo editing is a bit difficult task then), you'll just have to know the commands -- and you should, really take a look at linuxcommand.org for the basics. Oh, and read man pages whenever you need more information about something:

Code:
man -k keyword
man commandname
should help -- the -k-option searches for manpages for a given keyword, and plain man command displays man-page for the given commandname (for example), if it exists.

Last edited by b0uncer; 11-24-2006 at 02:57 PM.
 
Old 11-24-2006, 03:03 PM   #3
soar747
LQ Newbie
 
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18

Original Poster
Rep: Reputation: 0
ah

thank you. I had a feeling it was something like that. I'm used to the command line, I've just never installed using apt before. I also have a need to do things the hard way, but no matter. I appreciate the help (for without it, I would probably have fretted a very simply problem...considering I've used Linux for nearly a year and a half now, lol) I suppose all I have to do is get a list of files that I need to reinstall, shouldn't be too hard.
 
Old 11-24-2006, 03:34 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
let apt do the hard work. apt-get install --reinstall kde (or gnome) _should_ sort out all the files and dependencies for you. you may want to add your cd('s) to your sources list before hand to minimize the amount you have to download. "apt-cdrom add" with the cd in the drive.
 
Old 11-24-2006, 03:35 PM   #5
soar747
LQ Newbie
 
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18

Original Poster
Rep: Reputation: 0
ok, I tried apt-get install --reinstall...and got this error message

Code:
/usr/lib/apt/methods/http:error while loading shared libraries:bKGD:cannot open shared object file:No such file or directory
This is weird because it worked when I reinstalled kdm, but then stopped working afterward.

Last edited by soar747; 11-24-2006 at 03:42 PM.
 
Old 11-24-2006, 03:41 PM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
can you do "ldconfig" as root then try again?
 
Old 11-24-2006, 03:52 PM   #7
soar747
LQ Newbie
 
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18

Original Poster
Rep: Reputation: 0
just tried it, same result
 
Old 11-25-2006, 07:59 AM   #8
devghai
LQ Newbie
 
Registered: Jul 2006
Location: New Delhi, India
Distribution: Kubuntu 8.10
Posts: 24

Rep: Reputation: 15
been into linux since a few months only... so please disregard the ignorance if any...

1) use dselect or aptitude to get a interface for installing packages from command line.

2) no need to redefine the apt list if u can sudo and copy the packages from disc to /var/cache/apt/archives. The said path is the first place where apt based apps look when they have to install anything.

If i have to follow the above steps, I'll do the second one first. your system doesn't even have the basic libs, or they are corrupted, so u end up with an Http lib error... I am recommending this solution because this way you will be able to do an offline installation, circumventing the need to use HTTP libs. Worth a shot??
 
Old 11-26-2006, 07:34 PM   #9
soar747
LQ Newbie
 
Registered: Dec 2005
Distribution: Edgy Eft
Posts: 18

Original Poster
Rep: Reputation: 0
well, yes, except I got quite anxious and finally decided to reformat..

I really appreciate the advice though, the next time this happens, if it happens again, I'll certainly know what to do.

(should mention, I decided to put /home on a separate partition this time so I wouldn't lose anything if it happens again.)

thanks again everyone.
 
  


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
Synaptic upgrade from stable to newer apps - remove all? RedNovember Debian 7 09-02-2006 03:36 PM
Synaptic Gui ver on Suse 10.0 - error message : "command synaptic not found" suse2166 Linux - Newbie 6 04-04-2006 01:58 AM
What type of apps can be installed with Synaptic? leupi Ubuntu 7 01-14-2006 09:24 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Should I reformat? dareino Fedora 2 06-15-2004 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration